Re: Using ServiceStarter to launch a "proxy is service" service

Gregg Wonderly <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.