This content has been marked as final.
Show 1 reply
-
1. Re: Anyone know how to get the context root of a Session Bea
jason.greene Mar 28, 2007 2:13 PM (in response to natebowler)If you are using EJB 2.1 then you can make your bean implement ServiceLifecycle, which will give you an init method. That method passes the ServletEndpointContext, which allows you to get at the ServletContext, and you can get the URL from that.
-Jason