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 ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Activation setup problem  RSS feed

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
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[RMI ConnectionExpiration-[bishop:1098],5,system]
Thread[RMI RenewClean-[],5,system]
Thread[GC Daemon,2,system]
Thread[RMI ConnectionExpiration-[],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-[],5,system]
Thread[RMI ConnectionExpiration-[],5,system]
java.lang.ThreadGroup[name=RMI Runtime,maxpri=10]
Thread[RMI TCP Connection(2)-,5,RMI Runtime]
Thread[RMI TCP Connection(3)-,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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!