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
Expand all | Collapse all

Calling stored procedure from JAVA service...?

  • 1.  Calling stored procedure from JAVA service...?

    Posted Thu February 02, 2012 02:26 PM

    Hi Wm users,

    I have an urgent requirement like, we need to create a java service to call a stored procedure, as i haven’t developed any JAVA service till, could someone please explain how to write a JAVA service class to call a stored procedure.

    We knew using FLOW and JDBC…but we need to create a separate JAVA class.

    Thanks in Advance… Quick response would be appreciated


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


  • 2.  RE: Calling stored procedure from JAVA service...?

    Posted Thu February 02, 2012 03:37 PM

    :frowning:
    Please could someone send me the java service code to call stored procedure, it’s really helpful to me

    Thanks


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


  • 3.  RE: Calling stored procedure from JAVA service...?

    Posted Thu February 02, 2012 06:41 PM

    Why you need Java Svc to do the SP call any specific reason?


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


  • 4.  RE: Calling stored procedure from JAVA service...?

    Posted Thu February 02, 2012 06:46 PM

    Agree. Don’t use a Java Service. Just create a JDBC adapter service to do this.


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


  • 5.  RE: Calling stored procedure from JAVA service...?

    Posted Thu February 02, 2012 07:46 PM

    Calling a stored procedure from a Java service isn’t really a “requirement.” At best it is a design decision.

    In any case, the way to call a stored procedure from within Integration Server would be to use a JDBC adapter service. I don’t see any value/need in making the call from a Java service.


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


  • 6.  RE: Calling stored procedure from JAVA service...?

    Posted Fri February 03, 2012 08:36 AM

    Thank you RMG, Reamon & Mark for all your suggestions.

    I have actually developed WM service using JDBC adapter for stored procedure invocation and made my entire interface as web service as per client requirment. However, Interface is now in production and performence is really really slow.

    Hence, now i was asked to develop JDBC call or connecting to DB through java service and run stored procedure so i have no option other then developing a java service for the client now.

    Kindly advice few high level procedure to develop java service so i can proceed further.

    Thanks,
    Prabhakar.


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


  • 7.  RE: Calling stored procedure from JAVA service...?

    Posted Fri February 03, 2012 05:15 PM

    What leads you to conclude that it is the use of the JDBC adapter service is what makes it slow? IMO, it will not be any faster using a Java service. The slowness is likely to be somewhere else. Only profiling/testing will determine where the bottleneck is. Do not make assumptions.


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


  • 8.  RE: Calling stored procedure from JAVA service...?

    Posted Fri February 03, 2012 05:19 PM

    Yes I agree with Rob…Please check with your DBA about why SP slowness /response times and tune up the JDBC connection if necessary:

    HTH,
    RMG


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


  • 9.  RE: Calling stored procedure from JAVA service...?

    Posted Wed February 08, 2012 07:43 AM

    Hi RMG, reamon and mark

    we (project members)had somany interactive sessions/calls on this issue, Finally Business IM’s and DBA decided the main cause of this slow perfomance is not because of JDBC Adapters(weMethods) that we are using presently.

    Even I mention the words/suggestions from you people, it been really helpful.

    Now, we stick to JDBC Adapters service only, to call procedure,

    Thanks
    Prabhakar


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