JBoss Community

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?

created by Darran Lofthouse in EJB3 - View the full discussion

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

Start a new discussion in EJB3 at Community