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.

 View Only
  • 1.  Java service and threads

    Posted Thu May 21, 2009 01:45 PM

    Hello,

    I need to create java service that will spawns (pool) of threads (listeners). Is this allowed?

    Is it possible to leverage IS thread pool and use those threads?

    Thanks


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: Java service and threads

    Posted Thu May 21, 2009 03:28 PM

    Can I use

    com.wm.app.b2b.server.ThreadManager

    in java services without problems?


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Java service and threads

    Posted Thu May 21, 2009 03:31 PM

    What are you trying to accomplish by directly using the IS thread pool? I’m not sure ThreadManager is a public class to be used by customer code. If you describe your scenario perhaps we can come up with a way to do what you need using public facilities.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 4.  RE: Java service and threads

    Posted Thu May 21, 2009 09:22 PM

    Well I need to write an adapter that listens 3rd party middleware which does not have prepared adapter by webMethods or any other third party. Its a kind of a messaging system, I need to create message dispatchers that will deliver messages from other environment to webMethods (Broker). Thanks.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 5.  RE: Java service and threads

    Posted Thu May 21, 2009 09:28 PM

    Two approaches come to mind:

    • Use the ADK to create a proper adapter. Then developers can create adapter triggers, services and such to do whatever is appropriate with the messages–whether that is direct processing or publishing to Broker or writing to a DB or whatever.

    • Use the API of the middleware and the Broker API (or the JMS API with Broker as a provider) to create a message bridge between the two.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services