File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Pooling of EJBHome and Remote objects Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "Pooling of EJBHome and Remote objects" Watch "Pooling of EJBHome and Remote objects" New topic
Author

Pooling of EJBHome and Remote objects

Saurabh Banerjee
Greenhorn

Joined: Nov 13, 2001
Posts: 5
Does the container pool EJB Home and Remote objects? What are the pros/cons of using POJO helper classes within my EJB? can I start/stop transactions within my helper classes?
Andrew Perepelytsya
Ranch Hand

Joined: Aug 21, 2002
Posts: 93
It is the responsibility of a developer to cache/pool EJBHomes. Pooling remote references is not always feasible, unlike homes (consider entities and SFSBs). The container may pool the concrete implementations of your interfaces, but those are considered internal plumbing and shouldn't be of concern for you as a developer.
If you are still interested in the subject, I recommend you look into the ServiceLocator pattern. You might want to take a look at Sun's blueprints - Petstore and Adventure Builder applications, which use these technics. This strategy is mostly considered to be applicable to clients of EJB application, but there are options to use it in the EJB server as well, though it involves some tricks on your side.
Generally, this topic is outta scope of SCBCD exam, but you might want to study it later on your own if you want to be an effective (and well-paid ) EJB developer.
Cheers
 
 
subject: Pooling of EJBHome and Remote objects
 
Threads others viewed
Deploy EJB and Web separately
EJB call without stubs
Design advice needed. Data validation
Use of Helper classes
where to create helper objects
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture