前几次的项目打开 然后在包上面右键 undeploy

解决方案 »

  1.   

    EMAIL:[email protected]另外我在运行时看到:
    -- Initializing bean access.-- Succeeded initializing bean access.-- Execution time: 2500 ms.Error in getName(): Remote interface reference is null.  It must be created by calling one of the Home interface methods first.the name is:
    就不出结果。如果不用session直接用CMP就可以。
      

  2.   

    得到sessionbeanhome第一步是create()一个sessionbean
    你create了吗?
      

  3.   

    参看petstore,它里面就是这样做的
      

  4.   

    我没有create,应该在哪里写,怎么写?petstore是什么?有代码吗?
      

  5.   

    如果是jb.create是自动给写上的.
    你得到一个sessionbeanhome以后,create一下即可
    LoginSessionLocalHome home = (LoginSessionLocalHome) ctx.lookup(
                "sample.ejb.session.LoginSessionLocalHome");
            LoginSessionLocal session = home.create();  //这里        result = session.addNew(name, password);
      

  6.   

    谢谢。明白了,有什么在问你。 zez你有QQ吗