[jboss-user] [EJB 3.0] - Re: @EJB inside EJB Session
wolfc
do-not-reply at jboss.com
Tue May 15 08:28:17 EDT 2007
Yes, it works. Check for example the stateless unit test.
@Stateless
| @SecurityDomain("other")
| @Remote(AnonymousStateless.class)
| public class AnonymousStatelessBean implements AnonymousStateless
| {
| private static final Logger log = Logger.getLogger(AnonymousStatelessBean.class);
|
| @EJB CheckedStateless stateless;
|
| public int method(int i) throws NamingException
| {
| return stateless.method(i);
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045792#4045792
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045792
More information about the jboss-user
mailing list