[jboss-user] [EJB 3.0] - Re: @EJB injection in JBoss 5 application clients?

2009-02-12 Thread bcn
For those interested: I tried it and it works perfectly in the described way on the same host. Next step was to try it from a remote computer, as an application client usually is not installed on the server. So I copied all jars and replaced the jndi IP, but I got: | 2009-02-12 10:51:35,821

[jboss-user] [EJB 3.0] - Re: @EJB injection in JBoss 5 application clients?

2008-10-24 Thread bcn
Hello, two more questions: 1. Can you really use the EJB annotation only in the main class (and only for static fields)? In real-world application that would make it almost useless. 2. Can you use in the same way a stateful session bean? E. g. to handle the client authentication and session.

[jboss-user] [EJB 3.0] - Re: @EJB injection in JBoss 5 application clients?

2008-10-24 Thread bcn
Thank you both for the answers. So stateful beans should work, okay, great. I understand that the field with the EJB annotation unfortunately has to be static. That could make it harder to use the same code in an app client and in an J2EE server. Okay, maybe you can use always static fields.