[jboss-user] [EJB 3.0] - Re: Writting ejb3 session bean + howto session bean lookup?
atamur
do-not-reply at jboss.com
Wed Nov 8 07:39:28 EST 2006
If your SessionBean2 implements (for example) remote interface SessionBean2Remote, than in SessionBean1 you can write:
| @EJB
| SessionBean2Remote bean2;
|
| public void doSmth() {
| bean2.soSmth2();
| }
| it will be injected automatically.
Take a look at the tutorial: http://docs.jboss.org/ejb3/app-server/tutorial/injection/injection.html
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984112#3984112
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984112
More information about the jboss-user
mailing list