This content has been marked as final.
Show 2 replies
-
1. Re: Where am I going wrong...?
snau2005 Aug 19, 2006 3:28 AM (in response to barmyyetti)Your code will work only if TestEJB is also ejb, you can not inject (use @EJB) ejb refrence in classes which are not ejb's, to call ejb outside ejb container you schould write:
InitialContext ctx = new InitialContext(); test object = (test)ctx.lookup("testjarname/testBean/local");
replace testjarname with real your ear or jar name where bean is packed. -
2. Re: Where am I going wrong...?
k_shahab Aug 22, 2006 8:37 AM (in response to barmyyetti)Download JEMS installer for JBoss AS 4.0.4 from http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=193295&release_id=424215
. This is correct version to test EJB3Trail.
Shahabuddin Khan