We have the application that consists of EAR + web module (war) inside, deployed on Glassfish.
I need multiple threads inside war, so I used new
Thread().start() to create them.
Some guys said that it is not correct to create custom threads inside
j2ee container, so I need to use other tools provided by j2ee container to do this.
Actually I have read j2ee5 specification and didn't notice anything special concerning new threads there, except EJB container, inside of which the creation of new threads are not allowed.
It is ok to create the new threads inside glassfish web module with thread.start()?