Consultor Eletrônico



Kbase 21296: SonicMQ Broker Running As a Service Stops When Users Log Off
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   05/12/2002
SUMMARY:

This Solution applies to SonicMQ 3.x , 4.x

There is a bug in ALL the JVMs from 1.2.x forward. This bug
prevents any Java based application from running as an NT or Win2K
service after the user has logged off.

EXPLANATION:

The JVM is supposed to trap and ignore Ctrl-breaks. When the system logs out a user, all running services and applications receive a Ctrl-break to inform them that they need to shutdown. When a Java service receives this it also shuts down.

SOLUTION:

This bug is corrected by an extra flag that is passed to the JVM when it starts to tell it to reduce the use of OS signals.

If you are using Sun's JVM 1.3.x or IBM's JVM 1.3.x, you need to add -Xrs to the Java parameters that you are passing when starting the service.

References to Written Documentation:

Java Developer Connection,
http://developer.java.sun.com/developer/bugParade/bugs/4323062.html
SonicMQ V4 DEPLOYMENT GUIDE Chapter 3: Setting Up SonicMQ Components