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.  Nature of public static final methods

    Posted Tue October 14, 2003 06:36 AM

    Given the fact all java services in IS are public static final, i have a question in this regard.
    If a java service is invoked by more than one clients at the same time, my understanding is that each client will ahve a thread and all these threads are going to access the SAME copy of the java service/method, since static methods are class memebers and not instance members.
    This poses a serious threat if a java service is exposed for client invokations.
    Is someway this taken care in webMethods arhitecture?

    Thanks
    DG


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


  • 2.  RE: Nature of public static final methods

    Posted Tue October 14, 2003 07:29 AM

    Good question.

    Threads receive their own copy of automatic var.s, regardless of whether or not the method is static.

    So, the data may differ, but the possibilities of behaviour will not.

    Client access security is handled by ACLs.

    Nick


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


  • 3.  RE: Nature of public static final methods

    Posted Tue October 14, 2003 04:05 PM

    Nick,
    Thanks for your response.
    Can u explain me a bit what do u mean when u say automatic variables ? how will each thread have an instance of static method(java service) ?

    Thanks
    DG


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


  • 4.  RE: Nature of public static final methods

    Posted Wed October 15, 2003 02:27 AM

    Hey DG,
    Automatic var.s mean the same thing as local var.s.

      If I explained this stuff to you I'd just be repeating, ad hoc., stuff I've read elsewhere; so I think it's better that you do some reading up on Java instead. The forums at Javaranch.com are excellent for these sorts of questions about Java fundamentals (for your questions look at the SCJP forum), and there are plenty of tutorials at java.sun.com to quickly scan for answers. 
    
    If these aren't helpful let me know and I'll dig up something more for you. 
    
    On the other hand, you should do only do all of the above out of curiousity for learning more about Java. Integration Server *is* secure and questioning its design is something which belongs to academic interest, unless you've found a real problem somewhere. It's something which many companies rely on. [img]http://www.wmusers.com/wmusers/clipart/happy.gif[/img] 
    

    Nick


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


  • 5.  RE: Nature of public static final methods

    Posted Fri November 14, 2003 11:01 PM

    Hi DG,
    Each client invoking the static method will be executed in a different thread. The method variables will not be shared by different clients. Every client will have his own copy of method variables. You need to worry about the class variables, if any, that are being accessed in the static method. The class variables are shared between the threads (clients) but not the method variables.
    hope this helps.


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


  • 6.  RE: Nature of public static final methods

    Posted Sat August 04, 2018 11:51 AM

    Can you please tell why all java services are final and static and also why all the services class is final


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


  • 7.  RE: Nature of public static final methods

    Posted Sun August 05, 2018 12:43 AM

    Refer Why all java services created are final and static - webMethods - Software AG Tech Community & Forums


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