>My first question is, if you are very efficient with your database, how >do
>beans or EJB provide a means to better transactional processing than >a
>scripting language?

They dont, if you are efficient in your database then your database solution
will both be quicker to run and develop. (so for 7 out of 10 shops the
database solution would be a better solution) HOWEVER, if your transactional
logic will be performed across many databases then using the EJB is better
as then the logic is reusable against many databases.
Also EJB offer the capability to layer your logic. Sometimes a process
literally needs to happen in multiple steps and having that extra layer can
be helpful. Also depending on your project team break out, it might be
easier to have your logic be built in the EJB if you have more resources in
this are (unlikely) OR if your resources are scarce in database, then the
logic could be more maintainable if your support staff can support Java
better than the Database. There is also the question of work load. It is
possible you might want to perform the work within a EJB to help free up
database resources. Finally The EJB solution would be more portable for
future changes sine you have access
to more programmiing resources with the EJB and if you are planning on
changing databases moving the logic out the database so the future move
would have the least impact..OR....OR... OR... as you can see there are many
different factors to consider, more than I can simply list out.
So the quick answer is unless you are good at EJB it is probably a good idea
to stay within the database.


>My second question (which may be related to the first) concerns load
>balancing.  What do beans offer in terms of a load balancing solution >that
>a scripting language (ie. JSP, PHP, etc) don't?

Similiar answer:
So the quick answer is unless you are good at EJB/JE22 it is probably a good
idea to stay away from EJB and use a simple solution based on the struts
framework and Tag Libaries.
If you have a complication reusable process which will be used by several
applications then seriously consider EJB. Again, I could go on for pages on
this answer. It is a fine art building EJB's and J2EE. EJB is a step that
should be taken with some expert help if you are new to the area.

Have a great day!

Casey Kochmer
President, Amberjack Software LLC
[EMAIL PROTECTED]
www.JSPInsider.com


>From: John Foulds <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Two questions
>Date: Sun, 14 Jan 2001 00:36:28 -0500
>
>Please forgive the dumb questions, but if anyone has a moment or two to
>explain it, I would be very grateful.
>
>I have used many scripting languages (ie. jsp, php, asp, cold fusion,
>javascript, etc.).   Regardless of the language, I understand how they all
>allow you to "transactionalize" your work by doing things like database
>locking, try/catch error handling, and writing component-ized code.  I also
>understand the importance of placing a lot of the logic into the database
>and having it do a lot of the work.
>
>My first question is, if you are very efficient with your database, how do
>beans or EJB provide a means to better transactional processing than a
>scripting language?
>
>My second question (which may be related to the first) concerns load
>balancing.  What do beans offer in terms of a load balancing solution that
>a
>scripting language (ie. JSP, PHP, etc) don't?
>
>If anyone can help me out, many thanks in advance.
>
>John
>
>===========================================================================
>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

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.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

Reply via email to