JBoss Community

Re: @Schedule on Stateless EJB 3.1 on JBoss 6.0 Final

created by Roger Lee in EJB3 - View the full discussion

Changed the Stateless Session bean to Singleton added annotations to my SB;

 

@Singleton

@StartUp

 

and modified the ejb-jar.xml

 

to be;

 

<session-type>Singleton<session-type>

 

and

 

<init-on-start-up>true<init-on-start-up>

 

the @Schedule

 

starts on JBoss start-up.

 

and prints my message to the JBoss log.

Reply to this message by going to Community

Start a new discussion in EJB3 at Community