[jboss-user] [JNDI/Naming/Network] - Re: PortableRemoteObject.narrow() returns null

info@connext.co.za do-not-reply at jboss.com
Fri Aug 25 06:37:58 EDT 2006


Good Day,

Does anyone know how to fix this problem of the PortableRemoteObject.narrow() from returning null when using the Corba IIOP transport?

I have commented out the CorbaTransactionService mbean from the iiop-service.xml but still it does not work.
Hashtable<String, String> env = new Hashtable<String, String>();
env.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
env.put(Context.PROVIDER_URL, "corbaloc::marka:3528/JBoss/Naming/root");

InitialContext context = new InitialContext(env);
Object ref = context.lookup("ejb/Test");
TestHome home = (TestHome) PortableRemoteObject.narrow(ref, TestHome.class);
			System.out.println(home);

I am using 4.0.4 GA and the all server configuration.

12:29:07,446 INFO  [EjbModule] Deploying Test
12:29:08,102 INFO  [ejb/Test] EJBHome reference for ejb/Test:
IOR:000000000000003D524D493A636F6D2E6369626563732E6272732E746573742E696E74657266616365732E54657374486F6D653A30303030303030303030303030303030000000000000000200000000000000C0000102000000000E3139322E3136382E302E313235000DC80000001E4A426F73732F454A42486F6D652625656A622625546573742FACED0005700000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000190000002B0000000000000023687474703A2F2F6D61726B613A383038332F576562434C5B656A622F546573745D2F00000000002000000004000000000000001F000000040000000300000001000000540000000000000003000000190000002B0000000000000023687474703A2F2F6D61726B613A383038332F576562434C5B656A622F546573745D2F00000000002000000004000000000000001F0000000400000003
12:29:08,133 INFO  [ejb/Test] Home IOR for Test bound to iiop/ejb/Test in JNP naming service
12:29:08,321 INFO  [ejb/Test] Home IOR for Test bound to ejb/Test in CORBA naming service
12:29:08,414 INFO  [ProxyFactory] Bound EJB Home 'Test' to jndi 'ejb/Test'
12:29:08,414 INFO  [EJBDeployer] Deployed: file:/D:/programs/jboss-4.0.4.GA/server/all/deploy/TestEJB.jar/

Not sure how to proceed.

As a side note, if anyone knows how to get Kerberos, GSS and CSIv2 working in the JBoss/IIOP.

Regards,
Mark P Ashworth

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967440#3967440

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967440



More information about the jboss-user mailing list