Egidijus Vaisnora [http://community.jboss.org/people/egiva] created the 
discussion

"Server behind the NAT firewall (again)"

To view the discussion, visit: http://community.jboss.org/message/558782#558782

--------------------------------------------------------------
Boss 5.0.1, EJB 3. Server is running on computer which doesn't have remote IP 
only local

Got exception "C+aused by: org.jboss.remoting.CannotConnectException: Can not 
get connection to server. Problem establishing socket connection for 
InvokerLocator [socket://10.198.138.148:3873/?]+"

Server is launched -Djava.rmi.server.hostname=<remote_ip> 
-Dremoting.bind_by_host=false

Additionally I found, that I can and need to define property 
"+clientConnectAddress=<remote_ip>+" for jboss remoting.
I added (uncommented line) into +remoting-jboss-bens.xml,+ but it didn't work. 
Then I found that this connector is for EJB2 but for EJB3 is used 
+ejb3-connectors-jboss-beans.xml+ . Then I added following lines to EJB3 
connector


<!-- Remoting Server Configuration -->
  <bean name="ServerConfiguration"
   >
    <property name="invocationHandlers">
      <map keyClass="java.lang.String" valueClass="java.lang.String">
        <entry>
          <key>AOP</key>
          <value>
            org.jboss.aspects.remoting.AOPRemotingInvocationHandler
          </value>
        </entry>
      </map>
    </property>
    <property name="invokerLocatorParameters">
      <map keyClass="java.lang.String" valueClass="java.lang.String">
        <entry>
          <key>clientConnectAddress</key>
          <value>
            +<remote_ip>+
          </value>
        </entry>
      </map>
    </property>
  </bean>
 
Still not working...  I have bad feeling that I am adding 
+clientConnectAddress+ in wrong way, but there are no sample on this.
Please advice

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/558782#558782]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to