Timerservice (which isn't part of EJB3 lite in webprofile) is not implemented in AS 7.0. It will be available in the upcoming AS7 releases.
Thank you very much jaikiran for your quick reply.
It will be great to see ejb 3.1 features in JBoss AS 7.
In there any release date sheduled or not ?
As the JIRA-Issue https://issues.jboss.org/browse/AS7-1158 claims there exists a workaround using quartz.
How does this workaround exactly look like?
What dependecies do I need (using a maven project) and what other configuration is necessary?
@ScheduleAnnotation would be nice, but if the timer works only programmatically via TimerService that would be ok)
Could you perhaps elaborate on upcoming part? Should I be able to use @Shedule in 7.0.2.Final? Or are we talking 7.1+?
TimerService is available in the 7.0.2 (download the "Everything" binary and use the standalone-preview.xml configuration).
Thank you. It actually works!
What does the preview configuration cover and why is it named preview?
Are the different configurations documented somewhere?
I migrated to jboss-as-web-7.0.2 and detected late that I need ejb3 timer service
After some research I've find out that I may stay with web profile and only need to change this line:
<subsystem xmlns="urn:jboss:domain:ejb3:1.1" lite="true">
by that ones:
<thread-pool core-threads="1" max-threads="4"/>
<data-store path="timer-service-data" relative-to="jboss.server.data.dir"/>
but I don't use @Schedule persistence