ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MQSeries Java programs - as NT/Win2K services

Post new topic  Reply to topic
 MQSeries Java programs - as NT/Win2K services « View previous topic :: View next topic » 
Author Message
educos
PostPosted: Thu May 23, 2002 3:36 pm    Post subject: MQSeries Java programs - as NT/Win2K services Reply with quote

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
View user's profile Send private message Visit poster's website
educos
PostPosted: Fri May 24, 2002 8:21 am    Post subject: Solved..? Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQSeries Java programs - as NT/Win2K services
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.