[jboss-user] [EJB 3.0] - TimerService problem
MasterOfBeans
do-not-reply at jboss.com
Wed Apr 16 08:29:16 EDT 2008
Hello,
I am using JBOSS 4.2.2 GA and want to use the TimerService
Here is my example code:
|
| @Stateless
| @Local(ProductionOrderService.class)
| public class ProductionOrderServiceBean implements ProductionOrderService
| private @Resource TimerService timerService;
| private @EJB FileGenerationService fileGenerationService;
| ...
|
| void doSomething()
| {
| ...
| timerService.createTimer(new Date(System.currentTimeMillis() + FILE_GEN_DELAY_VALUE), prodOrder);
| ...
| }
|
| @Timeout
| @PermitAll
| public void fileGenerationTimeOut(Timer timer)
| {
| ProductionOrderCreateDTO prodOrder = (ProductionOrderCreateDTO) timer.getInfo();
| fileGenerationService.generateProductionOrderFile(prodOrder);
| }
The timer event is fired after the FILE_GEN_DELAY_VALUE. The problem is that I always get a javax.ejb.EJBAccessException: Authentication failure.
And YES, I added:
<module-option name = "unauthenticatedIdentity">Homer Simpson</module-option>
to application login module!
BTW: I even tried to add "@PermitAll" to the generateProductionOrderFile method. But this didn't solved the problem either!
I would appreciate your help!
Thank you in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144457#4144457
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144457
More information about the jboss-user
mailing list