  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - EJB Injection Question | - EJB Injection Question 2007-06-13 - By Esclarmonde
Back Hello,
I have only recently started working with JBoss and EJB 3.0. Maybe I am missing something obvious. I have a stateless session bean which has to reference several other stateless session beans.
Now my resources suggest that I use the @(protected) annotation to achieve this.
| @(protected) | @(protected)(XLocal.class) | public class XBean implements X { | | @(protected) YLocal y; | .... | | } | | @(protected) | @(protected)(YLocal .class) | public class YBean implements Y { | .... | } |
Where XLocal and YLocal extend the X,Y interfaces ...
The injection in the XBean is not working. There are no error messages on deployment that look like they are related to this. Only "Incomplete Deployment listing" on a different MBean (probably a completely unrelated problem).
I used to use something like
| Context c = new InitialContext(); | return (YLocal) c.lookup(".../YBean/local"); |
This has worked fine in the past. Now I wonder why the @(protected) annotation is not working, as it looks easier to maintain.
I would be very grateful for some hints what I am missing here.
Bye Esclarmonde
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4053983#4053983
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4053983 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |