4 Replies Latest reply on Mar 11, 2008 8:44 AM by Oren Fridler

    EJB3 over SSL in NAT environment (JBoss 4.0.5)

    Billy Joe Newbie

      Has anyone been able to configure SSL for EJB3 in a NAT environment?
      I have followed the lower 2 posts and have successfully configured a server for EJB3 over SSL and configured regular EJB3 in a NAT environment, but not combined.

      (Problems with bean-lookup in NAT environment, EJB3RC5)
      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=79325

      (stateless-ssl-invoker for EJB3)
      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=74475

      My EJB has the following annotations:

      @RemoteBindings({
       @RemoteBinding(clientBindUrl="sslsocket://0.0.0.0:3843", jndiBinding="ejb/TestBean/ssl"),
       @RemoteBinding(jndiBinding="ejb/TestBean/remote")
       })
       public class TestBean implements TestInterface
       {
       ...
       }


      The regular remote call, "ejb/TestBean/remote", works in NAT if I setup the ej3 deployer with a remoting configuration (similar to the ssl version) and specify a "clientConnectAddress"

      An example here:
      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=63821

      Since I have to specify a remote binding annotation to bind "ejb/TestBean/ssl" to the ssl socket, the clientConnectAddress in the service file is never used, it is overridden by the annotated value.

      Any ideas would be greatly appreciated. The server version used is 4.0.5 prod.