Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Activation setup problem  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!