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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...