facebook

Starting WAS 6.1 from MyEclipse, System.getProperty problem

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #296382 Reply

    ADP-1
    Member

    I have a series of custom properties set at the JVM level for WebSphere 6.1. From the WAS console, I added them via “Application Servers / server1 / Process Definition / Java Virtual Machine / Custom Properties”. I have a startup servlet that reads one or more of these properties. When I start websphere at the command line via startserver.bat, the code works and is able to find these properties. When I start websphere via MyEclipse Blue, when this code fires, each of my custom properties come back as null when I call System.getProperty(“propertyname”). I debugged, and found none of my custom properties are in the collection returned by System.getProperties(), although the standard properties are there.

    I see these properties in the server’s server.xml. Help?

    Thanks
    Jay

    #296430 Reply

    ADP-1
    Member

    One more note – even without the startup servlet, the properties are not available when starting WAS from MyElipse.

    #296617 Reply

    ADP-1
    Member

    I can work around this by setting each of these properties as an optional Java VM argument (-Dprop=value) in the “Edit Instance” window, but why is Websphere not seeing this when launched via the connector?

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Starting WAS 6.1 from MyEclipse, System.getProperty problem

You must be logged in to post in the forum log in