Thread View: comp.object.corba
4 messages
4 total messages
Started by Ashwani Kalra
Tue, 10 Jul 2001 10:00
Writing client and Server using only rootPOA
Author: Ashwani Kalra
Date: Tue, 10 Jul 2001 10:00
Date: Tue, 10 Jul 2001 10:00
9 lines
1341 bytes
1341 bytes
Hi, I am not able to run simple client ,server program using rootPOA. My problem is that On server side I want to use rootPOA only with what ever default policies it has . How to register my servant on the rootPOA and on the client side how to access this servant and call its operations. Thanks
Re: Writing client and Server using only rootPOA
Author: Ke Jin
Date: Wed, 11 Jul 2001 07:14
Date: Wed, 11 Jul 2001 07:14
19 lines
1707 bytes
1707 bytes
YOu can have such an example, but can't use bind() through osagent with rootPOA only. You have to export your refernece through other approachs, such object_to_string(), bind/resolve to/from INS service, etc.. To bind() through osagent, you have to use a persistent POA. Ke ashwani_kalra@yahoo.com (Ashwani Kalra) wrote in message news:<e33c2814.0107100200.6d311dd6@posting.google.com>... > Hi, > I am not able to run simple client ,server program using rootPOA. > > My problem is that On server side I want to use rootPOA only with what > ever default policies it has . How to register my servant on the > rootPOA and on the client side how to access this servant and call > its operations. > > Thanks
Re: Writing client and Server using only rootPOA
Author: Ashwani Kalra
Date: Thu, 12 Jul 2001 06:00
Date: Thu, 12 Jul 2001 06:00
31 lines
2156 bytes
2156 bytes
kejin@borland.com (Ke Jin) wrote in message news:<887a1f78.0107102314.6d5debd8@posting.google.com>... > YOu can have such an example, but can't use bind() through osagent > with rootPOA only. You have to export your refernece through other > approachs, such object_to_string(), bind/resolve to/from INS service, > etc.. > > To bind() through osagent, you have to use a persistent POA. But cant I bind to rootPOA by writing a statement in client like this Bank.AccountManagerHelper.bind(orb, "/", managerId); Where "/" is rootPoa name. When I write this client throws an exception that POA "/" not found. Regds Ashwani > > Ke > > ashwani_kalra@yahoo.com (Ashwani Kalra) wrote in message news:<e33c2814.0107100200.6d311dd6@posting.google.com>... > > Hi, > > I am not able to run simple client ,server program using rootPOA. > > > > My problem is that On server side I want to use rootPOA only with what > > ever default policies it has . How to register my servant on the > > rootPOA and on the client side how to access this servant and call > > its operations. > > > > Thanks
Re: Writing client and Server using only rootPOA
Author: Stephen Crawley
Date: Mon, 16 Jul 2001 05:36
Date: Mon, 16 Jul 2001 05:36
26 lines
2399 bytes
2399 bytes
ashwani_kalra@yahoo.com (Ashwani Kalra) writes: > kejin@borland.com (Ke Jin) wrote in message news:<887a1f78.0107102314.6d5debd8@posting.google.com>... > > YOu can have such an example, but can't use bind() through osagent > > with rootPOA only. You have to export your refernece through other > > approachs, such object_to_string(), bind/resolve to/from INS service, > > etc.. > > > > To bind() through osagent, you have to use a persistent POA. > > But cant I bind to rootPOA by writing a statement in client like this > > Bank.AccountManagerHelper.bind(orb, "/", managerId); > Where "/" is rootPoa name. When I write this client throws an exception that > POA "/" not found. I think you've answered your own question. No you can't. Since "bind" is proprietary, its "proper" behaviour is whatever Borland says it should be. If Borland (Ke Jin) says that bind() should not be expected to work for objects created in the rootPOA, that is the end of the story. I recommend that you don't use "bind". -- Steve
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads