<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Jboss 4.2.3.GA Configuration for client to call ejb
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/dato.java">David Chokhonelidze</a> in <i>JBoss Remoting</i> - <a href="http://community.jboss.org/message/569919#569919">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span style="font-family: arial, helvetica, sans-serif;">Hello,<br/></span></p><p><span style="font-family: arial, helvetica, sans-serif;"><br/></span></p><p><span style="font-family: arial, helvetica, sans-serif;">I am using following environment in my project:</span></p><ul><li><span style="font-family: arial, helvetica, sans-serif;">JBoss AS 4.2.3.GA</span></li><li><span style="font-family: arial, helvetica, sans-serif;">JBoss ejb 2.x (but on 3 is the same problem i have)</span></li><li><span style="font-family: arial, helvetica, sans-serif;">Swing for client</span></li></ul><p><span style="font-family: arial, helvetica, sans-serif;"><br/></span></p><p><span style="font-family: arial, helvetica, sans-serif;">Server and client are running on different machines in local network. The main problem is that server needs specific configuration to connect from client to that machine and call ejbs remotelly. I have some workarounds that works:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><ol><li>In run.bat file i added following string:<strong style="font-weight: bold;">set JAVA_OPTS=%JAVA_OPTS% -Djava.rmi.server.hostname=<span style="color: #ff0000;">IP Where jboss runs&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; -Djava.rmi.server.useLocalHostname=false</strong></li><li>In jboss-service.xml i configured this : <strong style="font-weight: bold;">&lt;!&ndash;&ndash;&lt;attribute name="clientConnectAddress"&gt;<span style="color: #ff0000;">IP Where jboss runs</span>&lt;/attribute&gt;&ndash;&ndash;&gt;</strong></li></ol><p><strong><br/></strong></p><div style="background-color: transparent; color: #000000; margin: 0px;"><span style="font-family: arial, helvetica, sans-serif;">After this configuration everything works. I also start jboss with parameter -b 0.0.0.0,but this does not help. From Swing client <strong style="text-decoration: underline; ">without configuration</strong> when i try to lookup ejb with this properties :</span></div><div style="background-color: transparent; color: #000000; margin: 0px;"> </div><div style="background-color: transparent; color: #000000; margin: 0px;"><span style="font-family: arial, helvetica, sans-serif;"><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">InitialContext jndi=fina2.Main.getJndiContext();</div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> </div><div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Object ref = jndi.lookup("fina2/i18n/LanguageSession");</div></span></div><div style="background-color: transparent; color: #000000; margin: 0px;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>Properties p=new Properties();</strong></div><div style="background-color: transparent; color: #000000; margin: 0px;"><strong><br/></strong></div><div style="background-color: transparent; margin: 0px;"><span style="font-family: arial, helvetica, sans-serif;"><strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </strong></span><span style="color: #000000;"><strong>p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.NamingContextFactory");</strong></span></div><div style="background-color: transparent; margin: 0px;"><span style="color: #000000; white-space: pre; "><strong> </strong></span><span style="color: #000000;"><strong>p.setProperty(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");</strong></span></div><div style="background-color: transparent; margin: 0px;"><span style="font-family: arial, helvetica, sans-serif;"><span style="color: #000000; white-space: pre; "><strong> </strong></span><span style="color: #000000;"><strong>p.setProperty(Context.PROVIDER_URL, "jnp://</strong></span></span><strong><strong>IP Where jboss runs</strong></strong><span style="color: #000000;"><strong>:1099"); </strong></span></div><div style="background-color: transparent; margin: 0px;"><span style="color: #000000;"><strong><br/></strong></span></div><p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>&#160; InitialContext jndi=new InitialContext(props);<br/></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="white-space: pre;"><strong> </strong></span>&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="white-space: pre;"><strong> </strong></span>&#160;</p><p><span style="white-space: pre;"><strong> </strong></span><strong>Object ref = jndi.lookup("....");</strong></p><p><strong><br/></strong></p></p><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">The following exception is thrown:</div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> </div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000;">javax.naming.CommunicationException: Could not obtain connection to any of these urls: <span style="color: #ff0000;"><strong>IP Where jboss runs</strong></span> and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server </span><span style="color: #ff0000;"><strong>IP Where jboss runs</strong></span><span style="color: #000000;">:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server </span><span style="color: #ff0000;"><strong>IP Where jboss runs</strong></span><span style="color: #000000;">:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at javax.naming.InitialContext.lookup(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at fina2.login.LoginFrame.loadLanguageList(LoginFrame.java:127)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at fina2.login.LoginFrame.languagesPopupMenuWillBecomeVisible(LoginFrame.java:426)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at fina2.login.LoginFrame$5.popupMenuWillBecomeVisible(LoginFrame.java:233)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at javax.swing.JComboBox.firePopupMenuWillBecomeVisible(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at javax.swing.plaf.basic.BasicComboPopup.firePopupMenuWillBecomeVisible(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at javax.swing.JPopupMenu.setVisible(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at javax.swing.JPopupMenu.show(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at javax.swing.plaf.basic.BasicComboPopup.show(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at javax.swing.plaf.basic.BasicComboPopup.togglePopup(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at javax.swing.plaf.basic.BasicComboPopup$Handler.mousePressed(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.Component.processMouseEvent(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at javax.swing.JComponent.processMouseEvent(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.Component.processEvent(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.Container.processEvent(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.Component.dispatchEventImpl(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.Container.dispatchEventImpl(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.Component.dispatchEvent(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.Container.dispatchEventImpl(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.Window.dispatchEventImpl(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.Component.dispatchEvent(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.EventQueue.dispatchEvent(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.EventDispatchThread.pumpEvents(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.EventDispatchThread.pumpEvents(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.awt.EventDispatchThread.run(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000;">Caused by: javax.naming.CommunicationException: Failed to connect to server </span><span style="color: #ff0000;"><strong>IP Where jboss runs</strong></span><span style="color: #000000;">:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server </span><span style="color: #ff0000;"><strong>IP Where jboss runs</strong></span><span style="color: #000000;">:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">... 34 more</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000;">Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server <span style="color: #ff0000;"><strong>IP Where jboss runs</strong></span>:1099 [Root exception is java.net.ConnectException: Connection refused: connect]</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">... 35 more</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000;">Caused by: java.net.ConnectException: Connection refused: connect</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.net.PlainSocketImpl.socketConnect(Native Method)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.net.PlainSocketImpl.doConnect(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.net.PlainSocketImpl.connectToAddress(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.net.PlainSocketImpl.connect(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.net.SocksSocketImpl.connect(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.net.Socket.connect(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.net.Socket.connect(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.net.Socket.&lt;init&gt;(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at java.net.Socket.&lt;init&gt;(Unknown Source)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:244)</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000; white-space: pre; "> </span><span style="color: #000000;">... 35 more</span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000;"><br/></span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000;"><strong>It worked fine on Jboss 4.0.5 without configuration.</strong></span></div><div style="background-color: transparent; color: #000000; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="color: #000000;"><strong><br/></strong></span></div><div style="color: #000000;">Can anyone tell me&#160; some kind of workaround so that to not to configure ip address ? ,because its not good that for every machine i manually change ips.</div></div></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/569919#569919">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Remoting at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>