|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQSeries Java programs - as NT/Win2K services |
« View previous topic :: View next topic » |
Author |
Message
|
educos |
Posted: Thu May 23, 2002 3:36 pm Post subject: MQSeries Java programs - as NT/Win2K services |
|
|
 Apprentice
Joined: 18 Jul 2001 Posts: 34 Location: Salt Lake City, UT
|
Do you know how to run - as an NT/Win2K service - a Sun JDK 1.3 Java program that uses the MQSeries API?
There's a known issue with Sun's JDK1.3-run Java programs, running as NT services (say with the NT res. kit "srvany.exe"): As soon as you logoff, your Java program is killed.
I found a great workaround using a tool called JavaService that somehow solves the issue... Well, almost: All the Java programs I have run just fine as services under JavaService, except those that use the MQSeries API. In that case, you just hear a beep (!) when starting the service - and that's all. The program's dead, not log, no even viewer entry, nothing.
Could you please help me solve this - while staying under JDK 1.3 (customer constraint)? |
|
Back to top |
|
 |
educos |
Posted: Fri May 24, 2002 8:21 am Post subject: Solved..? |
|
|
 Apprentice
Joined: 18 Jul 2001 Posts: 34 Location: Salt Lake City, UT
|
Problem solved.
I found that switching from the classic JVM to the hotspot JVM does the trick. This is done by specifying "{JAVA_HOME}\jre\bin\hotspot\jvm.dll" instead of "{JAVA_HOME}\jre\bin\classic\jvm.dll" in the JavaService jvm library command line parameter.
I'm a little nervous not knowing why hotspot lets me work with the MQ API under JavaService and classic doesn't, but at least I have something that works for now... |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|