Thread View: comp.object.corba
1 messages
1 total messages
Started by Ashwani Kalra
Thu, 04 Oct 2001 05:53
Printing default policies associated with POA
Author: Ashwani Kalra
Date: Thu, 04 Oct 2001 05:53
Date: Thu, 04 Oct 2001 05:53
23 lines
1601 bytes
1601 bytes
Hi,
I want to print the default policy values associated with any POA .
Say for example for ID_ASSIGNMENT_POLICY policy I want to check if its
SYSTEM_ID or USER_ID
Following code snippet I am writing but I am getting nullpointer
exception. on the first line.
assuming poa is created before.
switch(poa._get_policy(ID_ASSIGNMENT_POLICY_ID.value).policy_type())
{
case org.omg.PortableServer.IdAssignmentPolicyValue._SYSTEM_ID :
str="SYSTEM_ID";
break;
case org.omg.PortableServer.IdAssignmentPolicyValue._USER_ID :
str="USER_ID";
break;
}
System.out.println("IDAssignmentPolicy :"+str);
Environment :visibroker 4.5 for java,win2k
TIA
Ashwani
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