Hi Jerson,
I think you need not go for Entity bean at all. Ofcourse EJB also. But if
you really want to use EJB for your screen, then I think a stateless session
bean is sufficient. Please anyone correct me if I am wrong.

Murthy A Suryanarayana
GE Financial Assurance
LTC - OPS2000 Project
------------------------------------------------------------------------
-------------------
Day     : (415) 492 7834
Dial-Com        :  8 *    277 7834
Fax     : (415) 492 7699
mailto  : [EMAIL PROTECTED]



-----Original Message-----
From: Jerson Chua [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 25, 2000 3:58 AM
To: [EMAIL PROTECTED]
Subject: Servlet-EJB Design, please guide me


Hello....
I'm currently designing a web application.  The admin module is assigned to
me so there's
this scenario where the administrator can retrieve and update a user
profile. I'm
planning to design it in a way where the retrieving of the user profile is
through a data
access object, which directly access the database and returns a value object
that
represents the user profile. The rationale for such design is because
retrieving user
profile entity bean is not efficient since it will only be used for
displaying purposes
only.  On the other hand, for updating the user profile, the servlet will
retrieve the
entity bean and update it through the setter methods.  My question is "Is
this the right
way of doing it cause I think it's kind of inconsistent" or "Should I also
use the entity
bean for displaying the user profile?"

I got this idea where the web tier directly accesses the database in the Pet
Store
Example (The Catalog). But the difference is that the system doesn't update
the catalog.

Please guide me.

thanks in advance...
Jerson

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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