Using Threads
Use
Portal applications cannot use Java server thread management directly, because it is available only for Java EE services. To implement threading functionality, we recommend using existing Java EE mechanisms, such as Message Driven Beans or EJB Timers.
In case an application must use a thread, you can use the java.lang.Thread API. However, we do not recommend using this API because this may result in unexpected behavior.