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
Thanks,
Vincent
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Chaganthi, Madhusudan R.
Sent: Monday, September 18, 2000 8:50 AM
To: [EMAIL PROTECTED]
Subject: Re: Entity bean design question
You are better off using straight jdbc calls from stateless session beans.
Your finders can be more efficient for this read only situation if you DONT
use entity beans.
Use "data objects" to send data to the client.
-----Original Message-----
From: Franklin, Benjamine [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 18, 2000 11:23 AM
To: [EMAIL PROTECTED]
Subject: Entity bean design question
Hi ,
I may be totally insane. Please correct me wherever I go wrong.
This is my situation. In our web application, users enter tickers like IBM,
MSFT etc and ask for all the documents about those companies.
My database table looks like
doc_id ticker document_name
1 IBM jhgfg
2 IBM kjfhgdkf
1 MSFT jhgfg
combination of doc_id and ticker is the primary key
I'm planning to use Entity beans. The main thing and the only thing I expect
from the Container is caching, so that if one user requests documents for
IBM and once the IBM entity bean is created, for the next user it should not
go back to database, it should get from cache . I don't do any transaction.
My entity beans are readonly, I'm not using "create" in entity bean (since
this is done directly to database by some other process), the primary use of
my bean is for listing (in html pages).
===========================================================================
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".