users@glassfish.java.net

Changing thread priority in session bean

From: <glassfish_at_javadesktop.org>
Date: Mon, 04 Jun 2007 14:52:57 PDT

Hi!

I use a stateless session bean as web service. The beans serves very short request and should be served as fast as possible. The request are time critical.

I use a second bean, which does a long calculation. This calculation is timer trigger and not time critical.

Is it OK to switch the priority of long calculation to low?
Is there anything special to pay attention to? Or is there a better solution?


Thanks
Stephan
[Message sent by forum member 'iceandfire' (iceandfire)]

http://forums.java.net/jive/thread.jspa?messageID=220429