dcsimg
CORBA Persistent Server
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ashish_Khandelwal
Posted On:   Thursday, October 16, 2003 05:13 AM

i am trying to generate an persistent IOR for my server using java 1.4 but i cannot seem to get pass Create_POA. My code is below rootPOA = POAHelper.narrow (m_orb.resolve_initial_references ("RootPOA")); // Define policies for child POA Policy [] policies = new org.omg.CORBA.Policy[1]; policies[0] = rootPOA.create_lifespan_policy (LifespanPolicyValue.PERSISTENT); // Create the child POA POA childPOA = rootPOA.create_POA ("Test", rootPOA.the_POAManager(), policies); I keep getting this Exception below ERROR: org.omg.CORBA.INITIALIZE: Persistent Server Id not initialized vmcid: SUN minor code: 1002 completed: Maybe org.omg.CORBA   More>>

i am trying to generate an persistent IOR for my server using java 1.4 but i cannot seem to get pass Create_POA.

My code is below

rootPOA = POAHelper.narrow (m_orb.resolve_initial_references ("RootPOA"));


// Define policies for child POA
Policy [] policies = new org.omg.CORBA.Policy[1];

policies[0] = rootPOA.create_lifespan_policy (LifespanPolicyValue.PERSISTENT);

// Create the child POA
POA childPOA = rootPOA.create_POA ("Test", rootPOA.the_POAManager(), policies);

I keep getting this Exception below

ERROR: org.omg.CORBA.INITIALIZE: Persistent Server Id not initialized vmcid: SUN minor code: 1002 completed: Maybe
org.omg.CORBA.INITIALIZE: Persistent Server Id not initialized vmcid: SUN minor code: 1002 completed: Maybe
at com.sun.corba.se.internal.POA.POAORB.getPersistentServerId(POAORB.java:399)
at com.sun.corba.se.internal.POA.POAImpl.pre_initialize(POAImpl.java:159)
at com.sun.corba.se.internal.POA.POAImpl. (POAImpl.java:111)
at com.sun.corba.se.internal.POA.POAImpl.makePOA(POAImpl.java:126)
at com.sun.corba.se.internal.POA.POAImpl.create_POA(POAImpl.java:216)
at com.sun.corba.se.internal.POA.POAImpl.create_POA(POAImpl.java:521)

Is there something i am doing Wrong OR Is it just not possible with Java ORB?. Does this mean i need to get a 3rd party ORB?

   <<Less

Re: CORBA Persistent Server

Posted By:   chethana_r  
Posted On:   Saturday, November 8, 2003 10:08 AM

Have you registered the server with the Implementation Repository. In case no... Use the servertool to register the server before the client invokes it. Use the servertool to startup and shutdown the server. The servertool comes with the java ORB.
About | Sitemap | Contact