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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -