Re: Using ServiceStarter to launch a "proxy is service" service
Francisco Dário Mourão <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Ok. That was my backup "tricky" solution... I didn't think it had to be that way... I thought ServiceStarter would have some special parameters to handle it accordingly... Why isn't this code necessary for the remote case? Thanx for the help > -----Original Message----- > From: Gregg Wonderly [mailto:[email protected]] > Sent: sexta-feira, 26 de Janeiro de 2007 15:11 > To: Francisco Dário Mourão > Cc: [email protected] > Subject: Re: Using ServiceStarter to launch a "proxy is service" service > > > > Francisco Dário Mourão wrote: > > Is it possible to use ServiceStarter when I don't have a service proxy? > > Yes, you just need to create a non daemon thread that runs forever, as in: > > new Thread() { > public void run() { > // Something that will never be notified by > // another thread or use. > Object lock = new Object(); > synchronized( lock ) { > try { > lock.wait(); > } catch( Exception ex ) { > logger.log( Level.SEVERE, ex.toString(), ex ); > } > } > } > } -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]