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

How to set JVM parameters for java services created in Integration Server development tool

  • 1.  How to set JVM parameters for java services created in Integration Server development tool

    Posted Thu June 13, 2002 07:34 PM

    Run time JVM Properties are defined as following ::
    java “JVM Properties” “Application name” “application parameters”

    I wrote a java service but I need to pass a spesific JVM properties for it. How do I do this for Integration server.

    Thanks in advance
    vivek


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


  • 2.  RE: How to set JVM parameters for java services created in Integration Server development tool

    Posted Fri June 14, 2002 05:06 PM

    There are two ways to tackle this problem.

    1. Edit your server.bat file. The server.bat file’s sole purpose is to write the runserver.bat file. Look at your existing runserver.bat file and you will see the command line that started your most recent instance of Integration Server. Because runserver.bat is generated on-the-fly by server.bat, you should put any JVM properties in server.bat.

    If you need assistance manipulating server.bat, let me know.

    1. Use system.setProperty(“YourProperty”,“YourValue”) and then access this variable using String s = System.getProperty(“YourProperty”) within your service. I will typically use a startup service to load properties from file or a database and then and set these system variables when a package loads.

    Again, if you need some guidance, just ask.


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


  • 3.  RE: How to set JVM parameters for java services created in Integration Server development tool

    Posted Fri November 28, 2003 11:36 AM

    Dan,

    As you said there are two was to set the system property

    1. via -D option in server.bat/server.sh
    2. via a java service within the IS System.setProperty(“Property”, “Value”).

    Are both options 100% equivalent? Will they have the same impact?

    Let us say if there is an adapter and that needs a property to be set in the begining, For example: com.ibm.CORBA.ConfigURL property for EJB Adapter with WebSphere - [url=“http://www-3.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/050701.html”]http://www-3.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/050701.html[/url]. It doesn’t seem to behave equivalent.

    Can someone please clarify?

    Thanks,
    Siva.


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