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.
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.
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) ;这样写,一定可以实现了!!!
attention it!