|
 |
pro_jsp thread: Sessions, Beans & JSP
Message #1 by danny_ayers@y... on Sun, 25 Jun 2000 11:21:59
|
|
Hello,
I won't understand why you are using session bean?
When you are working with database and your data getting
stored in the database I personally feel to use Entity Bean
with container managed or if you want to have more control on your bean t
hen you can go for entity with Bean managed.
If you are working in Distributed system then
use EJB instead of Servlet which slower than EJB.
Regards
Murigesh Channur
-----Original Message-----
From: danny_ayers@y...
Sent: Sun, 25 Jun 2000 11:21:59
To: pro_jsp@p...
Subject: [pro_jsp] Sessions, Beans & JSP
Hi,
I'm just forwarding this message, could you please reply direct to the
sender :
I am working on an E-commerce site using Java Server Pages
and Enterprise Java Beans.The Archietecture of this site
has been designed as follows.
The Java server Pages provide the interface to the user.The user
data
is retieved and sent to a Session Bean.The Session Bean then
passes on this data to a Java Class which processes this data and then
this
data is finally stored in the database.For each user session(each
client
request) the
Session Bean creates a new instance of the Java class and passes the
data to
this
instance for processing.
I want to ask you whether it would be a better
approach if this Session Bean calls a Servlet intead
of a Java Class and passes the data to be processed to the
Servlet.As per my understanding calling a Servlet from
the Session Bean would be a better approach because for
each user session the Servlet would not get reinstantiated,
but a new thread would be created each time the Servlet
is called by the Session Bean(this would lead to a considerable
reduction in the processing time when many clients are
simultaneously accessing this site).
Please tell me whether it would be correct to
have the Session Bean calling a Servlet or a Java Class.
A reply from you on this issue would be extremely
beneficial to me.
Thanking You
With Regards
Vaibhav Paliwal
New Delhi
India
e-mail : vaibhavpaliwal@y...
t-vaibhavp@n...
vaibhavpaliwal@h...
---
Wrox Professional Wireless Developer Conference, Amsterdam, July 10-12. C
overing application of WAP, XML, ASP, Java and C++ to wireless computing,
choose from 40+ technical sessions delivered by industry experts: http:/
/www.wroxconferences.com/ConferenceHome.asp?ConfID=3D9
_________________________________________________________________________
__
Visit http://www.visto.com/info, your free web-based communications cente
r.
Visto.com. Life on the Dot.
|
|
 |