This content has been marked as final.
Show 4 replies
-
1. Re: Creating threads inside an application
wdfink Jan 21, 2014 2:36 AM (in response to pref)WildFly supports EE7 and you might use the Executor which is new in EE7.
See the Java tutorials for concurrency
-
2. Re: Re: Creating threads inside an application
rhusar Jan 21, 2014 4:22 AM (in response to wdfink)1 of 1 people found this helpfulYes, the javax.enterprise.concurrent.ManagedExecutorService is the way to go in EE7. The complete JSR is https://www.jcp.org/en/jsr/detail?id=236.
-
3. Re: Creating threads inside an application
pref Jan 21, 2014 5:01 AM (in response to wdfink)Thanks for the hint. What is the proper way of doing it with JBoss 7?
-
4. Re: Creating threads inside an application
wdfink Jan 21, 2014 5:09 AM (in response to pref)As AS7 implement JavaEE6 there is no 'propper' way to create threads.
You might use Asynchronous EJB invocations or JMS.
Or you accept the drawback of creating threads, but that might end in leaks or you might not able to shutdown the server correct.