java ee - Unable to get a EJB business object -
i have situation need call methodb() of ejb methoda() of same ejb, new transaction starting in methodb().
i read on threads getting reference ejb through
sessioncontext.getbusinessobject(ejblocalinterface.class);
will work. gives me a
java.lang.exception: com.ibm.ejs.container.unknownlocalexception: nested exception is: java.lang.illegalstateexception: requested business interface not found.
i working on ejb 2.1
javax.ejb.sessioncontext.getbusinessobject() ejb 3.0 method.
i've used javax.ejb.sessioncontext.getejblocalobject() you're trying in (distant) past. need cast business interface though.
Comments
Post a Comment