Hi, thanks for your reply

I tried putting the EJB JAR inside Tomcat's lib folder and it worked.
No ejb-ref file needed.

That's great news for me as I really want to keep the EJB side of things as
detached as possible - including deployment.

Riaz


Jonathan Gallimore-2 wrote:
> 
> 
> If your EJBs are deployed separately to your web app, I don't think the
> deployer will be able to figure out where your EJBs are to inject them
> into
> the servlet.
> 
> I guess you might be able to add some ejb-refs to your web.xml that
> reference another ejb-jar. I'm thinking along the lines of
> 
>       <ejb-ref>
>        
> <ejb-ref-name>com.foo.shapes.SquareBean/orangeRemote</ejb-ref-name>
>         <ejb-link>colorsApp.jar#OrangeBean</ejb-link>
>       </ejb-ref>
> 
> from http://openejb.apache.org/3.0/ejb-refs.html
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Failing-to-inject-%40EJB-into-a-servlet-tp24781514p24817514.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to