* @exception TransientServiceException
*/
public void initialize(ORB orb) throws TransientServiceException {
try {
// get the root POA. We're going to re
POA rootPOA = (POA) orb.resolve_initial_references("RootPOA");
rootPOA.the_POAManager().activate();
// we need to create a POA to manage this named instance, and then activate
// a context on it.
Policy[] policy = new Policy[3];
policy[0] = rootPOA.create_lifespan_policy(LifespanPolicyValue.TRANSIENT);
policy[1] = rootPOA.create_id_assignment_policy(IdAssignmentPolicyValue.SYSTEM_ID);
policy[2] = rootPOA.create_servant_retention_policy(ServantRetentionPolicyValue.RETAIN);
POA nameServicePOA = rootPOA.create_POA("TNameService", null, policy );
nameServicePOA.the_POAManager().activate();
// create our initial context, and register that with the ORB as the name service
initialContext = new TransientNamingContext(orb, nameServicePOA);
//