-
1. Re: Thread in message bean
parsonskerins Jan 31, 2002 5:10 PM (in response to magicman)The EJB specification specifically forbid the creation of threads within an EJB - thread control is the domain of the EJB container. Some application servers will allow you, perhaps, to start your own threads, but you will loose portability of the EJB.
-
2. Re: Thread in message bean
ahjulsta Jan 31, 2002 5:19 PM (in response to magicman)What will solve the problem, however, is using a Timer MBean or a Scheduler. Examples of this are can be found in the configuration files, (jboss-service.xml). It is also covered in the free doco.
-
3. Re: Thread in message bean
swingler Oct 31, 2002 10:39 AM (in response to magicman)easy! you can send an objectmessage to an MDB with an object of the type - Runnable & Serializable. MDB do the work in another thread and if you send many such message, MDB can concurrently do the job. With clustered environment, very high performance could be acheived. But I don't know how to control the thread number serving the MDB. Any solutions please let me know (simontm_cn@sina.com)
-
4. Re: Thread in message bean
joelvogt Nov 3, 2002 6:04 PM (in response to magicman)settings are in standardjboss.xml