if you are on jdk 1.5 you may want to check the Executor interface.
Its basically the same pattern, but removes complexity from your code.
http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/Executor.html

regards
Leon

On 11/21/06, Levan Dvalishvili <[EMAIL PROTECTED]> wrote:


Hi ! this might be little bit not directly related to Struts but since I am
doing it in struts I decide to ask here,
I have basic email procedure , what I try to achieve is :
1) from action to first start separate thread that will send email
2) for current thread go the overview page saying your email will arrive
shortly,

Both have to happen same time.

I could do it with regular thread procedures,  but I was wondering if there
is like maybe a design pattern anyone wants to share that already has
identified bottle necks?
Best Regards.

Levan Dvalishvili


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to