Hi Vincent,

Vincent Shek wrote:
>
> I am currently facing a similar design dilema, we are not using any EJB
> right now and our web application has the following typical MVC design:
>
> html <-> jsp <-> servlets <-> jdbc for all read only database queries.
>
> Are there any advantages to use Stateless session between the servlets and
> jdbc?
> i.e.: html <- jsp <-> serlvets <-> statelss session beans <-> jdbc

You could need session beans for security reasons. But servlets_2.2 also
provides a fine grained access control so you realy don't need beans for
readonly access to DB. You can allso cache data into servlets since they
are singleton by default.

/Francis

--
[EMAIL PROTECTED]

MATHEMA Software GmbH
N�gelsbachstra�e 25 b
91052 E r l a n g e n
D e u t s c h l a n d
Tel +49(0)9131/8903-0
Fax +49(0)9131/8903-55
http://www.mathema.de

===========================================================================
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