| Author |
Activation setup problem
|
tom phan
Greenhorn
Joined: Jun 08, 2001
Posts: 5
|
|
Hi all, I am currently trying to use the RMI activation libraries, and I started with the tutorial at http://java.sun.com/j2se/1.3/docs/guide/rmi/activation/activation.1.html The problem is, that I'd like to include this setup in a bigger program, and this implies not calling the System.exit(0) at the end of it. In that case, the program doesn't exit because threads are creating during the RMI server registration, and are still running (sample follows). Thread[Signal dispatcher,5,system] Thread[Reference Handler,10,system] Thread[Finalizer,8,system] Thread[RMI ConnectionExpiration-[bishop:1098],5,system] Thread[RMI RenewClean-[192.168.10.137:1098],5,system] Thread[GC Daemon,2,system] Thread[RMI ConnectionExpiration-[192.168.10.137:1098],5,system] Thread[RMI TCP Accept-1,5,system] Thread[RMI Reaper,5,system] Thread[RMI LeaseChecker,5,system] Thread[RMI ConnectionExpiration-[bishop:1099],5,system] Thread[RMI RenewClean-[192.168.10.137:1744],5,system] Thread[RMI ConnectionExpiration-[192.168.10.137:1744],5,system] java.lang.ThreadGroup[name=main,maxpri=10] Thread[main,5,main] Thread[SymcJIT-LazyCompilation-0,1,main] Thread[SymcJIT-LazyCompilation-PA,10,main] java.lang.ThreadGroup[name=RMI Runtime,maxpri=10] Thread[RMI TCP Connection(2)-192.168.10.137,5,RMI Runtime] Thread[RMI TCP Connection(3)-192.168.10.137,5,RMI Runtime] My question is: Is there a way to make the setup program exit without using System.exit()? I checked other tutorials, and they all end up with that call. Thank you for any suggestion. Tom
|
 |
 |
|
|
subject: Activation setup problem
|
|
|