R
robert
given an existing code base of jsp/servlet ala Struts; how best
(efficiency of execution secondary, getting the code done primary) to
support background processing: spec. database writes??
- post to the controller servlet which spawns a thread to do the db
update, then sends a response back to the browser. all using the
existing infrastructure. adv.: the application comes back fast.
disadv.: one loses contact with the db update, so confirming that
it worked is some work.
- add an applet, which spawns a thread to do the db update. adv.: the
applet can keep track of the update, and can respond with update
status with a bit less work. disadv.: integrating the applet with
the existing L&F of the jsp.
oddly (it seems to me), i can't find any discussions of these alternatives,
either on c.l.j or various servlet texts.
BobTheDataBaseBoy
(efficiency of execution secondary, getting the code done primary) to
support background processing: spec. database writes??
- post to the controller servlet which spawns a thread to do the db
update, then sends a response back to the browser. all using the
existing infrastructure. adv.: the application comes back fast.
disadv.: one loses contact with the db update, so confirming that
it worked is some work.
- add an applet, which spawns a thread to do the db update. adv.: the
applet can keep track of the update, and can respond with update
status with a bit less work. disadv.: integrating the applet with
the existing L&F of the jsp.
oddly (it seems to me), i can't find any discussions of these alternatives,
either on c.l.j or various servlet texts.
BobTheDataBaseBoy