GeeCON Prague 2014*
The moose likes JDBC and the fly likes Servlets or Stateless Session EJB to update database? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "Servlets or Stateless Session EJB to update database?" Watch "Servlets or Stateless Session EJB to update database?" New topic
Author

Servlets or Stateless Session EJB to update database?

Cas Sater
Greenhorn

Joined: Mar 19, 2001
Posts: 2
Looking into writing an app that would update a database through JDBC. Was curious if this could be safely implemented with servlets rather than the additional cost and development time using EJB. Can somebody comment?
Thanks.
Ashwin Tadepalli
Greenhorn

Joined: Feb 01, 2001
Posts: 27
Hi,
You could no doubt implement that with servlets and it is safe.
You can do all sorts of operations like inserts,updates,deletes in the database safely.
Ashwin
Cas Sater
Greenhorn

Joined: Mar 19, 2001
Posts: 2
Thank you...
Follow up then...(Maybe this is getting into EJB territory)
At what point or in what situation does straight Servlet coding become too unwieldy and better handled by EJB application servers?
Are there any resources that address the issues related to multiple users updating a database? I guess that transactions would handle this kind of thing, but I'd be interested to hear more.
Thanks again.
 
GeeCON Prague 2014
 
subject: Servlets or Stateless Session EJB to update database?