[jboss-user] [EJB 3.0] - Why a simple @Stateless depends on EJBTimerService?
Ondrej Zizka
do-not-reply at jboss.com
Fri Oct 8 15:41:12 EDT 2010
Ondrej Zizka [http://community.jboss.org/people/ozizka%40redhat.com] created the discussion
"Why a simple @Stateless depends on EJBTimerService?"
To view the discussion, visit: http://community.jboss.org/message/565617#565617
--------------------------------------------------------------
Hi,
please why this
import javax.annotation.Resource;
import javax.ejb.Stateless;
import javax.ejb.LocalBean;
@Stateless
@LocalBean
public class MySessionBean {
private int injectedValue = 0;
@Resource
public void setInjectedValue(int injectedValue) {
this.injectedValue = injectedValue;
}
}
depends on the +EJBTimerService+?
18:07:06,918 WARN [ResourceHandler] Not injecting injectedValue, no matching enc injector env/org.jboss.qa.simpleejb31.MySessionBean/injectedValue found
18:07:06,923 INFO [JBossASKernel] Created KernelDeployment for: SimpleEJB-31.jar
18:07:06,925 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=SimpleEJB-31.jar,name=MySessionBean,service=EJB3
18:07:06,925 INFO [JBossASKernel] with dependencies:
18:07:06,925 INFO [JBossASKernel] and demands:
18:07:06,925 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
18:07:06,925 INFO [JBossASKernel] and supplies:
18:07:06,925 INFO [JBossASKernel] jndi:MySessionBean/remote
18:07:06,925 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=SimpleEJB-31.jar,name=MySessionBean,service=EJB3) to KernelDeployment of: SimpleEJB-31.jar
AS 6 M2. Might be in older too, haven't tried.
Thanks, Ondra
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/565617#565617]
Start a new discussion in EJB 3.0 at Community
[http://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/20101008/b9ff914d/attachment.html
More information about the jboss-user
mailing list