After playing around with this for a while, I found that thest thing to do
is to use Javabeans to do the dtabae access. I don't know why you would need
an EJB, a simple JavaBean should be enough. I use one for selects and
inserts to the database, then I can call it from JSP and servlets.
Dave
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Nguyen, Thang P
Sent: 17 August 2001 01:21
To: [EMAIL PROTECTED]
Subject: Re: EJB and Tomcat/Servlet and JSP
First, would like to thank Christopher for pointing me to EJB sources.
Secondly, I have another question, if I want to build a web application,
mainly to access the database (delete/add/modify, etc). Should it be good
enough if I put these codes inside servlets, in other words, use servlets to
control the business logic as well as manipulate the database?
Or do I need to write my own EJB(s) to do this database manipulations? My
client will talk to the servlets, then the servlets will talk to EJB(s).
perhaps it is a 4 tiers architecture.
If that is the case, then I would need somthing like JBoss, which has Tomcat
embeded so that it can serve as a single engine for both servlets/jsp and
EJB all together.
Please recommend the way you would do.
Thanks much in advance.
-TN
-----Original Message-----
From: Christopher K. St. John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 3:16 PM
To: [EMAIL PROTECTED]
Subject: Re: EJB and Tomcat
"Nguyen, Thang P" wrote:
>
> I would appreciate if you drop a few lines on your experience using EJB
with
> Tomcat (especially the EJB(s) for accessing database), or if you just
simply
> point out that my question does not make any sense.
>
Some J2EE implementations use Tomcat, but that's not
really on-topic for jsp-interest or servlet-interest.
You might try:
http://archives.java.sun.com/archives/j2ee-interest.html
or maybe:
http://archives.java.sun.com/archives/ejb-interest.html
You might also want to check out JBoss:
http://www.google.com/search?q=jboss
and, of course, Sun's J2EE reference implementation.
They both use Tomcat. (Hmmm, on second thought, not sure
about JBoss, but you ought to check it out anyway)
--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets