[omniORB] failed to resolved ORBPolicyManager
Urban Purkat
urban.purkat at topit.si
Wed Aug 24 09:59:34 BST 2011
Hi!
How do you see the failure?
The following line should do the trick:
org.omg.CORBA.PolicyManager policyManager =
org.omg.CORBA.PolicyManagerHelper.narrow(
orb.resolve_initial_references("ORBPolicyManager"));
Regards,
Urban
On Tue, 2011-08-23 at 15:48 +0200, Pitaev, Anna wrote:
> Dear all,
>
> I'm trying to set RELATIVE_RT_TIMEOUT_POLICY on the client side by:
>
> org.omg.CORBA.PolicyManager policyManager = PolicyManagerHelper.narrow( orb.resolve_initial_references("ORBPolicyManager"));
> Any rrtPolicyAny = orb.create_any();
> rrtPolicyAny.insert_ulonglong(10000);
>
> // create a relative roundtrip timeout policy and set this
> // policy ORB-wide
> Policy rrtPolicy = orb.create_policy( RELATIVE_RT_TIMEOUT_POLICY_TYPE.value,
> rrtPolicyAny );
> policyManager.set_policy_overrides( new Policy[] {rrtPolicy},SetOverrideType.ADD_OVERRIDE);
>
> When I start my client application, corba failes to resolver reference to ORBPolicyManager.
> There are some specifics:
> OS Linux SLES9
> omniORB-4.0.6_omniORBpy-2.6
> What could be a problem cause?
>
> Many thanks in advance!
>
> Anna Pitaev | Consultant, Space
> Rheinstrasse 95 64295 Darmstadt | Germany
> T: +49 6151 36860-121
> anna.pitaev at logica.com | www.logica.de
> Logica Deutschland GmbH & Co. KG
> Unsere Pflichtangaben gemäß § 35a GmbHG / §§ 161, 125a HGB finden Sie unter www.logica.de/pflichtangaben
>
>
>
> Think green - keep it on the screen.
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
>
>
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
More information about the omniORB-list
mailing list