[jboss-user] [EJB3] - Re: How does a @EJB dependency injection work on a Stateless Bean? Will that injected class behave like an instance variable in that stateless session bean?

Darran Lofthouse do-not-reply at jboss.com
Thu Jan 17 05:58:26 EST 2013


Darran Lofthouse [https://community.jboss.org/people/dlofthouse] created the discussion

"Re: How does a @EJB dependency injection work on a Stateless Bean? Will that injected class behave like an instance variable in that stateless session bean?"

To view the discussion, visit: https://community.jboss.org/message/792557#792557

--------------------------------------------------------------
> Is there any thing that i'm missing here?

You never assign a new value to mRequestCount so it will always return 0+1. You are probably looking for ++mRequestCount.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/792557#792557]

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130117/ff1a64e0/attachment.html 


More information about the jboss-user mailing list