IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Getting the JDBC Connection Information

  • 1.  Getting the JDBC Connection Information

    Posted 10/21/04 10:48 PM

    How do i get the JDBC Connection information.


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 2.  RE: Getting the JDBC Connection Information

    Posted 10/25/04 01:10 PM

    Anuvasan,

    You may also find the services in wm.art.admin.connection useful, such as getResourceStatistics, getResourceState, … .
    Most of these service take the name of your JDBC Adapter connection as an input.

    Regards,

    Koen


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 3.  RE: Getting the JDBC Connection Information

    Posted 10/25/04 10:23 PM

    Christian,

    What packages do you need to import? Where is the JDBCConnPoolAdmin class located?

    Mark


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Getting the JDBC Connection Information

    Posted 10/26/04 08:24 AM

    Hi Mark

    All the classes you need are in the server.jar (which is in your classpath). You need to import the com.wm.app.b2b.server.* and com.wm.app.jdbc.*

    Good luck, Chris


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 5.  RE: Getting the JDBC Connection Information

    Posted 10/26/04 05:57 PM

    For those who dislike using wildcards on import statements, the fully qualified names of the classes that need to be imported are:

    • com.wm.app.b2b.server.JDBCConnectionManager [*]com.wm.app.jdbc.JDBCConnPoolAdmin

    Mark


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Getting the JDBC Connection Information

    Posted 10/27/04 07:52 AM

    Mark, thanks for that. Sometimes I rush a little too much to present these things properly :wink:


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 7.  RE: Getting the JDBC Connection Information

    Posted 12/20/18 08:00 AM

    Sorry for waking up this old thread, but could you elaborate a bit more (e.g. code snippet) on how to get a JDBC connection using those libraries, please?

    Best regards,
    Marcus


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 8.  RE: Getting the JDBC Connection Information

    Posted 02/04/19 03:55 AM

    Hi Marcus,

    Can you please explain what exact information you are trying to retrieve as there are many built-in service available now.

    Thanks!
    Baharul Islam


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 9.  RE: Getting the JDBC Connection Information

    Posted 02/04/19 06:22 PM

    For listing JDBC adapter connection alias names only, use the pub.art.connection:listAdapterConnections service with input “JDBCAdapter” in WmART


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 10.  RE: Getting the JDBC Connection Information

    Posted 02/12/19 07:43 AM

    @Mahesh and Baharul:
    Many thanks for your feedback so far!
    Regarding your question, I want connection handles from the connection manager for given JDBC connection names (as listed in the WmJDBCAdapter package) to query different databases in a Java service.

    Best regards,
    Marcus


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods