Re: Server don't stay...
Niclas Hedhman <[email protected]> Tue, 5 Jun 2007 18:43:48 +0800
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 05 June 2007 01:14, Paulo Melo wrote: > Hello guys! I have a problem in my RMI server. When i start the server, the > same don't stay and shut down whitout any exception. Any idea?! This is not enough information. Do you run it standalone from command-line? Is it inside a servlet? How do you export the remote object(s)? Are they bound to a Registry? What do you mean by "shut down"? is just athe beginning of questions. If you are running from commandline and "shutdown" means that the JVM exists back to the command prompt, then this is probably not an RMI issue at all, but understanding when the JVM exits, for instance when no non-daemon threads are running, so if you in your main() method just create a RemoteObject and export it, then exit the main method, you no longer have any threads running. Cheers -- Niclas Hedhman, Software Developer I live here; http://tinyurl.com/2qq9er I work here; http://tinyurl.com/2ymelc I relax here; http://tinyurl.com/2cgsug =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html