[jboss-user] [EJB 3.0] - Re: @EJB not working?
Hi, I found the answer: Problem is with import javax.ejb.EJB; it should be import javax.annotation.EJB; It is working for me at 4.0.4GA Martin. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3978398#3978398 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978398 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @EJB not working?
Depends on the version of EJB3 you're using. Post EJB3 RC8 inclusive, the change was made from javax.annotation to javax.ejb. http://wiki.jboss.org/wiki/Wiki.jsp?page=FromRC7RC8 I believe it's RC7 that ships w/ the 4.0.4-GA installer, but am not sure. S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3978415#3978415 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978415 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @EJB not working?
[EMAIL PROTECTED] wrote : what version? You should be getting a deployment error. I downloaded JBoss-4.0.4-GA Patchrelease 1 from here. I'm using it within IntelliJ 6.0. Should deployment fail, or is this just a warning message? nomike aka Michael Postmann View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3976528#3976528 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976528 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @EJB not working?
I also cannot get @EJB injection to work, using JBoss.4.0.4.GA with whatever version of EJB3 that comes bundled with it. I have experimented with in a few ways such as, specifiing a @LocalBinding, @EJB(mappedname=) and so on, but i the injection always results in null :-(. The current setup i have is that i am trying to look up the EJB in an MBean packaged within the same .ear file, could deployment order (ie .sar before .jar) possibly be causing the problem ? i have verified that it is bound in two ways, InitialContext.lookup() works and in the JNDI view it is bound, Any help is appreciated. Andy View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3976532#3976532 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976532 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @EJB not working?
You don't show your code for the User SessionBean, but my guess from reading the code that you've posted is that you have given your User SB another name than the default one - then you need to specify that name in your @EJB annotation. @EJB(beanName=your-name-on-your-bean) | User userBean; View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3976315#3976315 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976315 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @EJB not working?
what version? You should be getting a deployment error. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3976335#3976335 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976335 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user