James,

I can think of creating new thread and hand-off the process (MDB calling) to
background. Make your business process (where MDB call made) to implement
Runnable and put your logic inside "run()" so your web-app creates new
Thread and invokes "start()". You can immediately call display page after
"start()", this is asynchronous.


Anil

-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED] Behalf Of klute
Sent: Saturday, January 03, 2004 12:22 AM
To: [EMAIL PROTECTED]
Subject: slightly OT: async processing in the webapp layer


Hello All,

my app consists of both webapp and ejb layer. i have a
page where browser user picks a task to be executed.
the task will perform some interaction with ejb layer
(all session stateless beans so far). everything is
still in a design stage:

seems like the most natural way to do it is to have
webapp call some mesage-driven bean and display a page
to the user  "the process started successfully, blah,
blah, blah". what are my other alternatives? i am
using struts in the webapp layer. can my struts action
(servlet) do some processing on its own and display
the success page back to the operator user? is it
possible to perform such asynchronious process in the
webapp layer (to avoid complexities of introducing
mdb). i can't just invoke a new thread they way i
would in a standalone java app, can i?

thanks for your advice and happy new year to all!
james


__________________________________
Do you Yahoo!?
Find out what made the Top Yahoo! Searches of 2003
http://search.yahoo.com/top2003

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to