This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ORB.init()  RSS feed

 
Richard Smolen
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the Java API, ORB.init() returns a singleton ORB object...but the overloaded .init(params...) methods return new objects.
My question:
1) Could this create a situation akin to leaving DB connections open if ORB.shutdown() is not called? Or is it the responsibility of the CORBA server to manage threads/connections
 
Fintan Bolton
Author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally ORB.shutdown() ought to close down all of the sockets associated with the ORB. This is a standard way of cleaning up ORB resources so it ought to work for all brands of ORB. Mind you, connection management is a feature that tends to be highly ORB-specific.
The singleton ORB returned by ORB.init() doesn't figure when it comes to connection management. The singleton ORB only supports a handful of helper methods, like create_any() and so on.
------------------
Fintan Bolton
Author of Pure Corba
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!