Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJBs, clusters and tiers questions

 
Luciano Assis
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys,

1) I've never worked with cluster enviroments and I have many doubts:

The main doubt is: Can I work only with EJB Local interfaces on these enviroments?


2)Refering to tiers, I'm considering the use of the Apache web serve to serve static pages.

Is it necessary to add a web container to serve dynamic pages and controllers in adition to the application server or It is a good practice to allow the application server to do all the work?


Thank's to all!





 
kumar naresh
Ranch Hand
Posts: 120
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the point (1) if a local interface is used in cluster environment,

If your application is deployed on the managed server and in the same managed server if you are referring to the ejb on the same machine then Local interface for that EJB is fine, Remote interface or remote is required when you are invoking the bean using one jvm and bean is on the other jvm then remote comes into picture.

For (2) Application server as both EJB container as well as Web container, in case of web server only web container will be available. If your application is accessed by millions of users but for few users running business logic is required then it is fine.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic