facebook

[Closed] Setting system properties for WebSphere

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #264216 Reply

    Mike S.
    Member

    A sample J2EE application that I would like to test out has been deployed to a local WebSphere Express 5.1 instance on Windows XP SP2 through MyEclipse 4.1.1 GA. The application, though, requires the setting of a system property to control the directory to which the application logs its activities. There seems to be a way to specify a system property to WebSphere when using RAD, but I don’t see the option in MyEclipse. Even specifying the system property as a -D JVM argument had no effect.

    If anyone knows how to declare system properties to a WebSphere application when deployed through MyEclipse, please let me know.

    Thanks,
    Mike

    #264346 Reply

    Riyad Kalla
    Member

    Mike,
    You did exactly the right thing by setting this property on the JDK property page for the WebSphere 5.1 connector… are you sure it didn’t work? (Is it possible you had a mispelling or the code didn’t pickup the property correctly?). I ask because all that area does is pass off those args to the java process when it is launched. Try setting your -D arguments before the -X arguments (the default is the -Xmx256m argument in the launcher already for WS)

    #264438 Reply

    Mike S.
    Member

    Actually setting the system property using the -D JVM property works, whether the -D property is declared before or after the -X property. My file system for some reason was just really slow in registering that the log file had been created.

    Thanks,
    Mike

    #264441 Reply

    Riyad Kalla
    Member

    Glad it’s working.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Setting system properties for WebSphere

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