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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to