Hi
     Our application has been designed based on the J2EE design guidelines.
To briefly explain :
     We have a single controller servlet through which all requests are
routed from the Client (java application or browser).  This servlet routes
the requests to the respective module's controller servlets.
Each module has three servlets, one for initiating the logic, one for
getting the result and another for displaying the result. The first servlet
converts the input into an event and sends the event to a group manager EJB
(session bean).  The group manager EJB in turn talks to the entity
beans/session beans in its module, to perform the task. The second servlet
gets the results from the group manager EJB and the third servlet displays
the result.

     We follow this route whenever we need to perform any action. But there
are many times when I need to get some information from the RDBMS database
or LDAP in order to populate the input form to be displayed to the user.
(Say I need to get all the users in the system and the roles in the system,
in order to populate an input form so that the administrator can assign
roles to users).
What I would like to know is whether I should bypass the above design and
directly talk to the DB / LDAP  to get such information, otherwise it seems
like I am going to do a lot of work just to get this information.
or should I still go ahead and follow the design to keep this neat.'

Any ideas/suggestions would be greatly appreciated.

Regards
Pratima

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