I have a Java standalone program - which I have to now upgrade and structure it so that it will consists of EJBs that runs on JBOSS. But the problem is that there are alot of modules which uses thread / timer services. I know JBOSS 4 offers the timer feature. But it has been decided to use JBOSS 3.2.2. So, what is the best approach to migrate the applications which uses threading and timer tasks extensively?