• Post Reply Bookmark Topic Watch Topic
  • New Topic

Corba Server / Servant Question.

 
Jiann-Luen Kow
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Greeting,
I have a question about corba server. It is my first time using Corba under VisiBroker 4.5.1 from Inprise. Here goes the question.
When a servant is created (thru new) and activated from the server, and a client calling it to bind, will it actually create a new object servant or used the one created earlier. The reason I asked if there are multiple threads binding to the same servant, will it create multiple servant objects or used the one only (if thread is not an issue here)?
Thanks in advance for any help.
Appreciated,
 
Louis Zezeran
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a little confused by your choice of terms, servers bind objects and client resolves or do a lookup on them, so I assume what your saying is if a server creates an object, and binds it and then multiple clients come along and all resolve a reference do they all get the same reference? Yes, One object is made on the server and they all get the one refenence. If you were very worried about abolstuly only having one instance of that class, look to using the "Singleton" design pattern, it's a way of making sure you'll only get one instance of a class at once.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!