Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / March 2004

Tip: Looking for answers? Try searching our database.

EJB - caching entity bean local home instance

Thread view: 
davout - 05 Mar 2004 18:18 GMT
I've seen a number of articles where a facade session bean caches an
instance of an entity bean local home interface in a session bean field.

Where a entity bean local home interface instance is required in multiple
situations is it valid to create a separate singleton class that acts much
like a factory and use that to hold the entity bean local home instance.
This would at least centralize the code.

Thoughts?
Johann Burkard - 05 Mar 2004 20:03 GMT
> Where a entity bean local home interface instance is required in multiple
> situations is it valid to create a separate singleton class that acts much
> like a factory and use that to hold the entity bean local home instance.

That's called the EJB Home Factory pattern. Should be easy to code.

Johann
Signature

Daraufhin zeigte sich, dass Du durch Chaotisierung gepaart mit eine
Portion Richtigstellungszwang auffaellig wurdest.
(*Tönnes in <ak6sik$sgv$1@newsreader2.netcologne.de>)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.