[jboss-user] [EJB 3.0] - Re: org.jboss.remoting.CannotConnectException: Can not get c

PeterJ do-not-reply at jboss.com
Wed Aug 2 11:37:22 EDT 2006


First, the standard JBoss JNDI port is 1099, not 1299.  Di you change the port number?  The error you are getting is that noone is listening on port 1299.

Second, remove the euqual sign from the value of the second property setting:

properties.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");

Third, you cannot cast a remote interface directly, use PortableRemoteObject.narrow.

Object obj = context.lookup("ejb/RemoteFacade");
RemoteFacade beanRemote = (RemoteFacade)PortableRemoteObject.narrow(obj, RemoteFacade.class); 

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

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



More information about the jboss-user mailing list