Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / CORBA / February 2006

Tip: Looking for answers? Try searching our database.

POA and object activation...

Thread view: 
paul - 03 Feb 2006 06:57 GMT
hi

how the POA can know if a object is activate?

thanks
cpattenster@gmail.com - 03 Feb 2006 12:56 GMT
Hi Paul,

Assuming the Object Reference was created by a POA with the RETAIN
ServantRetentionPolicy (for example, the RootPOA), or a POA with the
USE_DEFAULT_SERVANT RequestProcessingPolicy, you can call
reference_to_servant() on the POA the Object Reference.

If there's a Servant (implementation object) in the Active Object Map,
or a Default Servant, currently active to service requests on the
Object Reference, it will be returned.  Otherwise the call will throw
the ObjectNotActive Exception.

Be sure to call _remove_ref on the returned Servant to avoid leaking.

Regards,
Conor
http://www.orbzone.org
paul - 03 Feb 2006 17:15 GMT
> Hi Paul,
>
[quoted text clipped - 13 lines]
> Conor
> http://www.orbzone.org

ok but how the POA find servant object from a corba reference?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.