1.用jndi去查找。如果没有任何概念,去查阅一下吧:)。
2.可以转移。

解决方案 »

  1.   

    jsp&servlet打成.war包,ejb打成.jar包到服务器上部署。
      

  2.   

    1      Context ctx = getInitialContext();      //look up jndi name
          Object ref = ctx.lookup("MySessionBean");      //cast to Home interface
          mySessionHome = (MySessionHome) PortableRemoteObject.narrow(ref, MySessionHome.class);
    如果用JB的话new一个EJB Client Test
    2打成一个ear的包
      

  3.   

    http://www.cn-java.com/target/news.php?news_id=1738