Would it make any sense to have both a SLSB wrap a dao and have a SLSB as a facade for Entity Beans?
For example, I have a news site similar to theserverside.com
I have a SLSB wrap a DAO to pull up a list of articles like on the homepage. Since the site would be mainly read only, it would make sense to go with straight JDBC with the DAO for performance.
On the other had, I'd like to add and edit these articles. In which case, I would have a SLSB as a facade to the ArticleEJBs.
Making any sense? Let me know.
Thanks
-
DAO + Session Facade AND Entity Beans with Session Facade (2 messages)
- Posted by: Em Huynh
- Posted on: September 04 2002 19:04 EDT
Threaded Messages (2)
- DAO + Session Facade AND Entity Beans with Session Facade by Justin Van Vorst on September 04 2002 23:35 EDT
- DAO + Session Facade AND Entity Beans with Session Facade by Neeraj Nargund on September 05 2002 13:36 EDT
-
DAO + Session Facade AND Entity Beans with Session Facade[ Go to top ]
- Posted by: Justin Van Vorst
- Posted on: September 04 2002 23:35 EDT
- in response to Em Huynh
In your example any use of EJBs at all would be overkill. Some JSPs for UI, some servlets for logic, and then some DAOs to wrap your data access/persistence code... this is all you would need.
This assumes you example was not far off from what you are actually trying to implement. But if you're really writing some large banking app, then sure, use EJBs.
-
DAO + Session Facade AND Entity Beans with Session Facade[ Go to top ]
- Posted by: Neeraj Nargund
- Posted on: September 05 2002 13:36 EDT
- in response to Justin Van Vorst
Bingo:-)