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.  Global VARIABLES

    Posted Sat May 29, 2010 11:45 AM

    Hi,
    Is it possible to declare global variables in IS? I think it is possible using the inbuilt services in storage folder.But i wanted to know can i do the same using sme java services?

    Appreciate ur help.

    regards,
    Suvankar


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


  • 2.  RE: Global VARIABLES

    Posted Tue June 01, 2010 08:36 PM

    There are several ways that could be used. Which would be better depends on how many, their nature, concurrent access concerns, will they be updated, etc. One is a static object using one of the Java collection classes, with services to CRUD the variables as desired. Of course you’ll want to make sure any solution is thread safe.

    I’ve had mixed experience with the storage services. In one case, they worked fine for what we needed. In another, ran into deadlock issues that I could not resolve in the time I had. Personally, I would tend to steer clear of those.


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


  • 3.  RE: Global VARIABLES

    Posted Thu June 03, 2010 10:15 AM

    Declare any variable which needs to be declared as public in the following format:

    public static ArrayList outputList = new ArrayList();

    Declare this in the shared tab in your java service.


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