[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
2) Definitely possible to deploy EJB at app server in a separate ear and web file in different server. I like this approach BUT still, I would go with single ear deployment at all app servers (clustered horizontally and vertically) and static contents at web server which is in DMZ.
OCMJEA; OCA (11g dba); SCJP
Marcelo Ortego wrote:Sounds right to me Rajan.
Saurabh Deshpande.
SCJP, SCWCD, SCEA Part 1
Doing Part 2 now....
I think you are doing over solution. If your scope is design a web application and if you are going to use JSF then you can access EJBs / WSs POJOs through Managed Beans dependency injection. This eliminates BD and SL and you can assume your EJBs POJOs are on the same local.
Saurabh Deshpande.
SCJP, SCWCD, SCEA Part 1
Doing Part 2 now....
Rajan Choudhary wrote:Marcelo,
Did you peek in my initial design magically and how are you stealing my questions/thought? Just kidding -We have so much in common.
I agree with you, Service Locator still makes sense as there are plenty of things you could lookup like email sessions, web service end points, LDAP context, JMS Queues, QueueConnectionFactory etc. I have it in my design.
Moreover, I had Business Delegate in Web tier but I noticed in Patterns catalog, it's shown in Business Tier and I put a question in the forum. Somebody blasted me, how could the BD be in web tier? so I changed BD from web to business tier.
Also, why do you need DAO between ejb and JPA. To me it didn't make sense so I use DAO between EJB and DB only when fast lane reader and/or value object handlers are required. Let me know your thoughts about it.
Let me share my thought about your questions. (I may be wrong)
1) Yes
2) Definitely possible to deploy EJB at app server in a separate ear and web file in different server. I like this approach BUT still, I would go with single ear deployment at all app servers (clustered horizontally and vertically) and static contents at web server which is in DMZ.
3) I think, NO. Lookup is best.
Anybody, please feel free to correct me. This will help me as well.
SCJP, SCJD, SCEA
Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
http://download.oracle.com/docs/cd/E17802_01/bluep...n/web/AdminRequestBD.java.html
OCMJEA; OCA (11g dba); SCJP
Ranganathan Kaliyur Mannar wrote:I am also using JSF and I decided against having BD and SL. And, I think if you decide to use BD, SL automatically comes in. This is bceuase of the restrictions on the usage of dependancy injection outside of JEE components (I am not 100% sure about this). But, if this is true, BD is not a 'container managed' component - so, DI may not work from BDs - so, you are kind of forced to use SL.
I just thought with JEE 5 making things simpler, BD and SL are not needed. Also, my thinking was heavily influenced by the JBoss Seam framework. In Seam, the session bean is directly invoked from the '.xhtml' layer - and at a practical level, it works well in JBoss.
I included 'FacesServlet' only in the component diagram. In the class and sequence diagrams, I am just showing:
JSP-->Managed Bean-->Session Bean.
Nilesh
SCJP SCWCD OCMJEA
Nilesh
SCJP SCWCD OCMJEA
Don't get me started about those stupid light bulbs. |