Originally posted by yi zhu:
you can not assume that web an ejb will always run in the same JVM everywhere.
Originally posted by yi zhu:
2.bad design pattern.
Sanjay Raghavan<br />SCJP2, SCEA-J2EE<br />Moderator - <a href="http://groups.yahoo.com/group/scea_prep" target="_blank" rel="nofollow">SCEA PREP</a><br />Co-Author - <a href="http://www.whizlabs.com/scea/scea.html" target="_blank" rel="nofollow">SCEA@Whiz</a><br /><i>Where did you sip your Java Today?</i>
Sun Certified Enterprise Architect
Java Technology Blog
Sanjay Raghavan<br />SCJP2, SCEA-J2EE<br />Moderator - <a href="http://groups.yahoo.com/group/scea_prep" target="_blank" rel="nofollow">SCEA PREP</a><br />Co-Author - <a href="http://www.whizlabs.com/scea/scea.html" target="_blank" rel="nofollow">SCEA@Whiz</a><br /><i>Where did you sip your Java Today?</i>
Sun Certified Enterprise Architect
Java Technology Blog
Originally posted by Sanjay Raghavan:
The example I cited allows you to use the power of local interfaces without compromising scalability.
Originally posted by Chris Mathews
At no time would I make Entity Beans remoteable
Originally posted by Chris Mathews
You can easily scale a co-located Web/EJB Application across multiple machines, in fact this is the architecture recommended by most.
Originally posted by yi zhu:
Christ and I shared at least this point!
Originally posted by yi zhu:
1. Web is only one of possible clients for EJB.And if I follow your logic, I would say the most scalable fashion will be put all on client's PC. Then we will be back to old dark days, no more distributed computing.
Originally posted by yi zhu:
2. For mostly read only EJBs, we can provide only one separated server and a few more web server. With the caching capability of EJB, this will be more scalable than the architecture you provided.
www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
Originally posted by Thomas Taeger:
As said in my longer post below in a J2EE compliant app server the EJB container and the Web container can _never_ run in the same JVM.
Each container runs in its own JVM.
This enables scalability, stability etc. but requires the workload of JNDI and parameter serializing and deserializing.
Directly from the J2EE 1.3 Specification
Section J2EE.6.4:
The EJB Container is required to support access to local enterprise beans. We recommend that the web container also support access to local enterprise beans.
Originally posted by Thomas Taeger:
The J2EE specification allows
- One AppServer have multiple containers, including max.
one EJB container and/or max. one Web container.
Originally posted by Thomas Taeger:
- inter-container calls via JNDI, RMI and serializing parameters and
passing them "by value", not "by reference".
In our case a Servlet calls an EJB's methods.
- intra-container calls via remote interfaces: old fashion style 1.1;
the call itself is ca. 2000 times slower than via local interface.
Example: A SessionBean calls an EntityBean's methods via it's
remote interface, i.e. via JNDI lookup, narrowing, serializing...
Originally posted by Thomas Taeger:
- direct intra-container calls via local interfaces (EJB 2.0 like):
the call itself is ca. 2000 times faster than via remote interface.
Example: A SessionBean calls an EntityBean's methods via it's
local interface, i.e. _NO_ JNDI lookup, narrowing, serializing is
needed.
Good luck
Thomas.
Sun Certified Enterprise Architect
Java Technology Blog
Originally posted by RAEES UZHUNNAN:
Hi All,
Chris is correct.
look at "Designing Enterprise Applications with the J2EETM Platform, Second Edition"
section 4.4.7.3.1 Maintain Session State with Stateful Session Beans
http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html#1083750
The section says
You can maximize the runtime performance of this approach by choosing a J2EE server product that permits use of local EJB interfaces from co-located Web components.
I think Thomas Taeger is dead wrong on his arguments and the figures looks bogus
Raees
www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
Originally posted by Thomas Taeger:
... and I am really sorry for that. Thank you for providing us with the exact link.
Thomas.
Sun Certified Enterprise Architect
Java Technology Blog
Originally posted by RAEES UZHUNNAN:
You can maximize the runtime performance of this approach by choosing a J2EE server product that permits use of local EJB interfaces from co-located Web components.
by Shai Almog:
"Re: Enterprise Applications CMP or JDO Posted: Jan 15, 2003 1:15 PM" in
http://www.javalobby.org/threadMode2.jsp?forum=61&thread=6407&start=0 :
"the web tier can't invoke the local interfaces (it can in some conditions but there is no spec guarantee that I know of)."
Originally posted by Thomas Taeger:
... - to be J2EE compliant.
www.classic-and-class.com - www.evalulearn.com
Interfaces are the glue of OO.
Originally posted by Thomas Taeger:
Do you agree that this is not guaranteed by the J2EE specification (regardless wether allowed or not) and therefore not guaranteed to be portable?
Section J2EE.6.4 of the J2EE 1.3 Specification
The EJB Container is required to support access to local enterprise beans. We recommend that the web container also support access to local enterprise beans.
Originally posted by Lipman Li:
even though every one agree that it is true for almost every known App Server, but it is not good habit so far, specially u want to use it to prepare your Architect assignment.
Originally posted by Lipman Li:
From your writting, I could get the impression that you are refering EJB as Entity Bean only.
Originally posted by Lipman Li:
Does the so-called Remote Facade provide Remote interface ? how you servlet talk to your Remote Facade?
Originally posted by Lipman Li:
Does the servlet talk to Entity bean directly?
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |