The petstore application sample shows a single entry of the client tier to the middle tier.
All the reqs are converted to events and they all go to a single state machine in the EJB controller tier . Is this the recommended design pattern ? What is the advantage of using this model ?
thanks,
-Anou
-
Is it good to channel a single entry to the EJB tier ? (3 messages)
- Posted by: Anou Mana
- Posted on: July 31 2001 16:22 EDT
Threaded Messages (3)
- Is it good to channel a single entry to the EJB tier ? by Alex Pisarev on August 01 2001 00:47 EDT
- Is it good to channel a single entry to the EJB tier ? by Anou Mana on August 01 2001 12:01 EDT
- Is it good to channel a single entry to the EJB tier ? by Pratap Das on August 25 2001 04:50 EDT
- Is it good to channel a single entry to the EJB tier ? by Anou Mana on August 01 2001 12:01 EDT
-
Is it good to channel a single entry to the EJB tier ?[ Go to top ]
- Posted by: Alex Pisarev
- Posted on: August 01 2001 00:47 EDT
- in response to Anou Mana
It's MVC design pattern. You can read about its pros and cons at Sun's Website in J2EE blueprints (and many other places).
Alex.
-
Is it good to channel a single entry to the EJB tier ?[ Go to top ]
- Posted by: Anou Mana
- Posted on: August 01 2001 12:01 EDT
- in response to Alex Pisarev
I understood the MVC pattern, but I was wondering whether it is good to have a single session bean handle multiple workflows or to have multiple session facades for each workflow.
After some more thinking, it makes sense that the single session bean access reduces the multiple lookup overhead which will come with the multiple session beans for each workflow.
regards,
-Anou -
Is it good to channel a single entry to the EJB tier ?[ Go to top ]
- Posted by: Pratap Das
- Posted on: August 25 2001 04:50 EDT
- in response to Anou Mana
To solve the problem of frequent lookups, use the ServiceLocator pattern described in the J2EE Patterns page on the java.sun.com site. The ServiceLocator basically caches the home interface / stub. Thus there will be only one lookup ...
--Das