Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

please help for clustering it requires remote or local interface?

 
raj sirohi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kuppusamy Venkatasubramanian
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.,
 
raj sirohi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
raj sirohi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gladwin and Kuppusamy,

Thanks a lot for the clarification. you have made it very clear now

thanks once again

Raj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic