|
From: FReAK La M. <fre...@qu...> - 2003-03-26 21:57:50
|
Hi,
well I am running an RMI Programm using the wrapper with no problem.
I think that your problem is that you are starting the Registry via
System.exec()
I am using java.rmi.registry.LocateRegistry.createRegistry(1099);
Hope that helps,
FReAK
----------------------------------------------
Original Message
From: "Palmer, David"<Dav...@ph...>
Subject: [Wrapper-user] RMI services being killed on user logout
Date: Wed, 26 Mar 2003 15:41:59 -0500
>Hello all...
>have a question. Trying to implement this tool to create services out of a
>RMI application we are forced to use.
>
>The problem is...that when the user loggs off the Win2k machine, the
wrapper
>properly ignores this action (as I can see in the wrapper.log) but still,
>the rmiregistry and rmi server itself dies... and yet the service is still
>running.
>
>We are running on Win2k
>Using JDK1.3.1_07 when logging out, the wrapper.log has these entries:
>INFO | wrapper | 2003/03/25 16:32:10 | User logged out. Ignored.
>INFO | wrapper | 2003/03/25 16:32:11 | User logged out. Ignored.
>INFO | jvm 1 | 2003/03/25 16:32:11 | java.rmi.UnmarshalException:
Error
>unmarshaling return header; nested exception is:
>INFO | jvm 1 | 2003/03/25 16:32:11 | java.net.SocketException:
>Connection reset by peer: JVM_recv in socket input stream read
>INFO | jvm 1 | 2003/03/25 16:32:11 | java.net.SocketException:
>Connection reset by peer: JVM_recv in socket input stream read
><snipped>
>
>When using JDK1.4.1 We got:
>INFO | wrapper | 2003/03/26 11:13:46 | User logged out. Ignored.
>INFO | wrapper | 2003/03/26 11:13:57 | User logged out. Ignored.
>(no exceptions... but the rmi services were indeed killed).
>
>The problem, in a nutshell, is that even though the "user logging out"
>action is intercepted by the wrapper... our RMI stuff still dies upon a
user
>logging out.
>
>It should also be noted that, in the actual implementation of the RMI
>Server, we have the starting up of the rmi registry:
>
>try {
> Runtime.getRuntime().exec("rmiregistry "+port+"
> -J-Dsun.rmi.loader.logLevel=verbose
>-J-Djava.rmi.server.codebase="+sCodebase+"
> -J-Djava.rmi.server.hostname="+host);
>} catch (IOException e) {
> System.out.println("An error occured setting the CODEBASE system
>property");
> e.printStackTrace();
> return;
>}
>
>Everything else is just normal RMI server stuff... nothing exotic.
>
>I've been through the documentation, done numerous google searches to try
to
>get to the bottom of this, but haven't found much of anything.
>
>I sure hope someone here can shed some light. Thanks!
>
>Regards,
>Dave Palmer
>
>
>"The sender believes that this E-mail and any attachments were free of any
>harmful and malicious code or defects when sent. This message and its
>attachments could have been infected during transmission. By reading the
>message and opening any attachments, the recipient accepts full
>responsibility for taking protective and remedial action regarding the code
>or such defects. The sender is not liable for any loss or damage arising
in
>any way from this message or its attachments."
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by:
>The Definitive IT and Networking Event. Be There!
>NetWorld+Interop Las Vegas 2003 -- Register today!
>http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
>_______________________________________________
>Wrapper-user mailing list
>Wra...@li...
>https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com
Looking for friendships,romance and more?
http://www.MyOwnFriends.com
|