-
1. Re: Timer Service - ejbtimeout is not returned.
gerbrand Sep 22, 2009 6:06 AM (in response to rodedh)Do you mean, that you schedule a new timer, after the method that is executed the previous timer has finished?
Can you give a code sample?
If you want to 'cancel' a method that is executed using the @Timeout annotation, that's not possible by default. The method is just run as a Java Thread. Killing threads is deprecated for quite some time, and not recommended as that leads very quickly to unstable software. -
2. Re: Timer Service - ejbtimeout is not returned.
rodedh Sep 22, 2009 8:50 AM (in response to rodedh)Thanks for your reply. I'm now passed that problem and yet the fact that the method did not return puzzles me but I don't have time to investigate this issue.
I just can say that it was related to creation of a web service which used https URL. From the minute we moved to work with http it was ok - I was just a client to this web service.
BTW I'm familiar with thread cancel issue ("stop" by interrupt). The timer service instance got a null value. When a new timer was created and started the null timer was invoked as well this led to multiple timer instances without being able to control them.
Thanks again and I wish I had time to keep on working on this as I'm prety I would discover lots of related an non related info.