Hi again,
Think the better way to solve a problem is by yourself ! hehehehe
Ok, found the problem. Listen carefully, like I said, not much info on the others threads about that.
Main reason : Version J2EE 1.4 is significatively different in deployment with J2EE 1.3.
You have to build an client application with the deploy tool and do a EJB ref to the Entreprise Bean.
NO INITIAL CONTEXT IS NECESSARY (sorry for capitals, it is important)
The code in the HeadFirst EJB book is GOOD but, like it says in ERRATA, don't use the name "getAdvice()" for the method but something different as "getMessage()" (There's a conflict between the Home Interface Name and something I don't remember. For more info, consult this web site, I found the explanation here).
I strongly suggest that you follow the J2EE Tutorial for deploying the Client Application (very easy), the part before is identical to the book.
Here's the HREF :
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/EJB4.html OK, two last points :
1) As I'm writing this, the web page EJB4.html from SUN Web site is HTTP 404. Try it out ! EJB3.html and EJB5.html are there, but not 4.
2) Beware that the client application to be WITHIN the application (Sounds stupid but happened to me, lost few hours trying to find out with the EJB ref link wasn't there...)
Hope this will help someone else in the future.
Writing me up if you have problems, I'll get back to you.
[ August 02, 2004: Message edited by: Frederic Filiatrault ]