Hi Geeks Just uploaded the initial release of the EJB Timer Service (javax.ejb.Timer etc.).
This version supports: - EJBContext.getTimerService() - Entity Beans - Stateless Session Beans - 3rd party integration support for timer sources But it has no support for: - MDBs - persistence - transactions - Timer Handle - various checks and exception requested by the spec. To use you have to do the following: - Entity or SLSB has to implement "javax.ejb.TimedObject" interface and its "ejbTimeout( javax.ejb.Timer )" method which will be called every time a timed event is send from the timer source - Entity or SLSB has to obtain the "javax.ejb.TimerService" from its EJBContexts. With that TimerService it can create timers and remove them. ATTENTION: - ejbTimeout() is called on any available instance of the SLSB/MDB that can be a different instance that created the timer - ejbTimeout() is called on the Entity that created the timer - SFSB are not allowed to retrieve a Timer Service because the timer source cannot impose a 'remote' client The implementation of the "handleEjbTimeout" in the Container/EntityContainer is not very elegant. If anyone knows a better implementation please drop me an email. Also let me know when you find bugs or other problems. Schedule: - implement support for MDBs - add tests to the testsuite - implement persistence and recovery after server crash or restart - implement transaction support. Sun RI just uses Entity Beans to deal with Tx but I would like to make the Timer Source a transaction aware component to speed up the processing. - implement Timer Handles Have fun - Andy ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
