I'm running Jboss 3.2.4 under a RH 7.3 box. I've deployed a session bean. When I run the client code bellow, from the same box I've my Jboss Installed it runs well, but when I run it from another computer (windows) in the same network, it fails in the lookup line and Throws the following exception Java.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1 Â.Â
I am sure the service is available when reach the 1099 port by telnet, for instance, ir replays me something like this ÃÂÃÂÃÂÃÂsr↓java.rmi.MarshalledObject|ÃÂÃÂ▲ÃÂÃÂÃÂÃÂcÃÂÃÂ>☻♥I♦hashlocBytest☻[BobjBytesq~☺xpÃÂÃÂÃÂÃÂ┴?ur☻[B ↨ÃÂÃÂTÃÂÃÂ☻xp'ÃÂÃÂÃÂÃÂt▬http://develop01:8083/q~q~uq~♥└ÃÂÃÂÃÂÃÂsr org.jnp.server.NamingServer_Stub ☻☻xrjava.rmi.server.RemoteStubÃÂÃÂ■▄╔ÃÂÃÂÃÂÃÂe☻xr∟java.rmi.server.RemoteObjectÃÂÃÂa┤ÃÂàa3▲♥xpw 4 UnicastRef2 127.0.0.1♦J☺╝ÃÂÃÂÃÂÃÂÃÂÃÂÃÂÃÂ!ÃÂÃÂ♠ÃÂÃÂ☺x I know I am doing something wrong, but I do not have a clue where. The Linux box are not behind a firewall. Properties prop = new Properties(); | prop.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); | prop.put("java.naming.factory.url", "org.jboss.naming:org.jnp.interfaces"); | prop.put("java.naming.provider.url", "jnp://211.3.40.48:1099"); | BandeiraEjbHome bh = null; | try{ | Context ctx = new InitialContext(prop); | Hashtable ht = ctx.getEnvironment(); | Iterator it = (Iterator) ht.elements(); | while (it.hasNext()){ | System.out.println("Environment--> " +it.next()); | } | Object obj = ctx.lookup("CadBandeira"); | System.out.println("After lookup"); | bh = (BandeiraEjbHome) | javax.rmi.PortableRemoteObject.narrow(obj, BandeiraEjbHome.class); | }catch (NamingException e){ | ShowOnScreen sOnS = new ShowOnScreen(); | sOnS.mostrar("Erro Conectando com o Servidor"," ",e); | e.printStackTrace(); | } View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840961#3840961 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840961 ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
