webMethods

webMethods

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 along with Threads

    Posted Tue June 05, 2007 12:00 PM

    Hi,

    I need to write a Java service, that involves threads.

    I need to invoke 2 flow service using a single thread.

    Its a urgent.

    Thank u


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


  • 2.  RE: Java Service along with Threads

    Posted Tue June 05, 2007 02:14 PM

    Please refer the webMethods JavaAPI in the Developer tool/Help section.You could use any of doInvoke or Threaded invoke API services that you are looking for.Also search this forum on the java thread services you should see some threads that are helpful.

    HTH,
    RMG


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


  • 3.  RE: Java Service along with Threads

    Posted Wed June 06, 2007 03:45 PM

    Can you give more information on what you are trying to accomplish

    Thanks


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


  • 4.  RE: Java Service along with Threads

    Posted Wed June 06, 2007 03:57 PM

    Use the wMUsers search function to search for posts containing “doThreadedInvoke”.

    Mark


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


  • 5.  RE: Java Service along with Threads

    Posted Wed June 06, 2007 05:41 PM

    A couple quick questions for you:

    • What leads you to “need to write a Java service?”

    • You mention that the service will “involve threads” but then follow up with “invoke 2 flow service using a single thread” which seems to be contradicatory. Do you mean, from one thread, start 2 new threads to run the services?

    • Are you attempting to address a performance issue?


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


  • 6.  RE: Java Service along with Threads

    Posted Thu June 07, 2007 05:36 AM

    Hi,

    Ur right… its regarding performance issue… I want two services running parallelly…

    Can i achieve this by using two ‘doThreadInvoke’ , callin to different service???

    Thanks in advance


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


  • 7.  RE: Java Service along with Threads

    Posted Thu June 07, 2007 04:41 PM

    Yes, calling doThreadInvoke twice will create two threads to run the services you specify. Refer to the IS Java API for details.

    I would advise to be cautious about assuming a performance gain when calling services in a threaded manner. Depending upon what the services do and how they are structured, it may or may not be faster.


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


  • 8.  RE: Java Service along with Threads

    Posted Fri June 08, 2007 10:14 AM