Even nastier... in order to make the thread (the one created calling
acceptAndOpen(...)) you could first create an own thread and call the
code to start it from there. A thread started from a daemon thread is a
daemon itself as well (by default - may be overridden by their code
again, afaik).
E.g.:
class StarterThread
{
public void run()
{
// pass ListenerObj in constructor
sessionnotifier.acceptAndOpen(ListenerObj)
}
}
in your main code:
st = new StarterThread(listener);
st.setDaemon(true);
st.start();
See also:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Thread.html
--> end of 2nd paragraph of class documentation
Hope this helps - even though it's a bit of overhead...
mika
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
For the ctjug home page see http://www.ctjug.org.za
-~----------~----~----~----~------~----~------~--~---