This content has been marked as final.
Show 2 replies
-
1. Re: Newbie question on accessing Remote Bean through JNDI
michaelcourcy Feb 14, 2007 5:59 AM (in response to michaelcourcy)Trying the trailblazer tutorial, it looks like I did few mistakes
If I get the object locally I should run this codepublic void jspInit () { try { InitialContext ctx = new InitialContext(); cal = (Calculatrice) ctx.lookup( "EJB3Trail/CalculatriceBean/local"); } catch (Exception e) { e.printStackTrace (); } }
This code work fine in Trailblazer, but it still fail if I try to do it in my own app.
So I try to see the difference between my app and trailblazer and the only noticeable thing I can see so far is in jbaoss-app.xml<jboss-app> <loader-repository> trailblazer:app=ejb3 </loader-repository> </jboss-app>
loader-repository is explained nowhere and I can't understand the choice of "trailblazer".
I really appreciate some little explanation or link on loader-repository.
Thanks -
2. Re: Newbie question on accessing Remote Bean through JNDI
jaikiran Feb 15, 2007 8:48 AM (in response to michaelcourcy)This code work fine in Trailblazer, but it still fail if I try to do it in my own app.
Whats the exception that you are seeing? Also can you post some snippets of your code in the bean?