| Author |
please help for clustering it requires remote or local interface?
|
raj sirohi
Ranch Hand
Joined: Mar 02, 2010
Posts: 35
|
|
Hi,
I confused about the interface needed for ejb 3.0 for clustering. my question is if I have three seperate application servers on three different machines ( each running ejb container and web containre in same jvm) then can i just use local interface for ejb for clustering.
any thought please!
thanks
Raj
|
SCJP5.0 , SCBCD5.0, SCEA
|
 |
Kuppusamy Venkatasubramanian
Ranch Hand
Joined: Dec 30, 2004
Posts: 91
|
|
Hi Raj,
When the ejb and web containers are in same jvm, clustering should not be an issue as the cluster of the application server takes care of it. A very good article on JEE clustering is here
Cheers,
Kuppusamy.V.,
|
SCJP1.4, SCBCD 1.3, SCWCD 1.4, SCEA 5, JLPT-N3
My Blog
|
 |
raj sirohi
Ranch Hand
Joined: Mar 02, 2010
Posts: 35
|
|
Hi Kappusamy,
Thanks a lot , article made it clear. I had been surfing net for quite a while.
I have another question if I am using DAO then where should I show jpa entities in deployment diagram, in DAO layer or business layer. The reason I am confused is because because business layer needs entities for business logic, but in turn uses DAO to access and maipulate them.
thanks a lot
Raj
|
 |
Kuppusamy Venkatasubramanian
Ranch Hand
Joined: Dec 30, 2004
Posts: 91
|
|
Hi Raj,
If you are using EJB3 with entity manager, you don't need to use DAOs. It will be taken care by the ORM framework. So, i don't think there will be a DAO layer in the component diagram.
Cheers,
Kuppusamy.V.,
|
 |
Gladwin Burboz
Greenhorn
Joined: Feb 26, 2008
Posts: 25
|
|
raj sirohi wrote:Hi,
I confused about the interface needed for ejb 3.0 for clustering. my question is if I have three seperate application servers on three different machines ( each running ejb container and web containre in same jvm) then can i just use local interface for ejb for clustering.
any thought please!
thanks
Raj
If you use local interface, you can benefit from clustering for incoming HTTP request from the client. However, your calls to EJB will be limited to same node on which you received the request from the client.
If you use remote interface, even you EJB calls will be distributed across the cluster.
|
<a href="http://www.sealordresortarnala.com" target="_blank" rel="nofollow">http://www.sealordresortarnala.com</a>
|
 |
raj sirohi
Ranch Hand
Joined: Mar 02, 2010
Posts: 35
|
|
Hi Gladwin and Kuppusamy,
Thanks a lot for the clarification. you have made it very clear now
thanks once again
Raj
|
 |
 |
|
|
subject: please help for clustering it requires remote or local interface?
|
|
|