In the serverside,I want to get some information from database. This function does'nt need to participate in any transaction. and It will not be accessed by remote client, just by session bean.
which technology shall I use, ejb or java bean?
-
use ejb or java bean? (2 messages)
- Posted by: liang yan
- Posted on: April 15 2004 05:11 EDT
Threaded Messages (2)
- use ejb or java bean? by Paul Strack on April 15 2004 09:39 EDT
- use ejb or java bean? by Leandro Melo on April 16 2004 12:54 EDT
-
use ejb or java bean?[ Go to top ]
- Posted by: Paul Strack
- Posted on: April 15 2004 09:39 EDT
- in response to liang yan
For simple, read-only logic, I prefer to use a JavaBean instead of an Entity Bean. -
use ejb or java bean?[ Go to top ]
- Posted by: Leandro Melo
- Posted on: April 16 2004 12:54 EDT
- in response to Paul Strack
The pattern "JDBC for Reading" together with "DTOFactory" and "DTO RowSets".
Basically, you`ll have a direct access without the cost of building collection of objects, instead, you`ll trasnfer the data rows as they are from db.
A good reference is "EJB Design Patterns".