0 Replies Latest reply on Mar 9, 2011 11:01 PM by xianxun

    How can i secure the link between tomcat and ejb in jboss

    xianxun

        I use jsp in tomcat to access the remote ejb in jboss,the code like this :

               Hashtable environment = new Hashtable();
               environment.put(Context.INITIAL_CONTEXT_FACTORY,
                      "org.jnp.interfaces.NamingContextFactory");
              environment.put(Context.URL_PKG_PREFIXES,
                      "org.jboss.naming:org.jnp.interfaces");
              environment.put(Context.PROVIDER_URL, "jnp://127.0.0.1:1199");
             InitialContext mycontext = new InitialContext(environment);
              Mysource temp = (Mysource)ctx.lookup("MysourceBean/remote");
      

       

        But i am confused that it seems anyone can access my ejb if know the jnp address and method name.

        Is there a way to secure the link?

      Thanks.