you know, the primary key of a ejb bean is only..
so, do you want to get different bean object, you should use find findBy...() method, such as findByTitle(), findByStudy() etc. afterwards, implement it in the
ejb bean class.

解决方案 »

  1.   

    你应该实习自己的findxxx方法.
      

  2.   

    BDictHome bDictHome1=(BDictHome) ctx.lookup("NewAccountServer.BDictLocal") ;
    BDictHome bDictHome2=(BDictHome) ctx.lookup("NewAccountServer.BDictLocal") ;
    BDictHome bDictHome3=(BDictHome) ctx.lookup("NewAccountServer.BDictLocal") ;
       BDict oBJTitle= bDictHome1.findByPrimaryKey(iTitle) ;
       BDict oBJThisLearn = bDictHome2.findByPrimaryKey(iThisLearn);
       BDict oBJStudy = bDictHome3.findByPrimaryKey(iStudy) ;这样写,一定可以实现了!!!
      

  3.   

    to zhlj11(zhlj11):
       attention it!
      

  4.   

    to zhlj11(zhlj11):为什么分开写就行,贴主那样写就不行呢?
      

  5.   

    楼主,你的SESSION BEAN 是状态的,还是无状态的?