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 / General / November 2006

Tip: Looking for answers? Try searching our database.

EJB3 and BusinessDelegate pattern?

Thread view: 
Søren - 06 Nov 2006 20:21 GMT
Im not sure how to implement business delegate pattern in the new ejb3
era - specifically if theres any need to cache references to remote
objects like caching home objects in ejb2.

What happens if i build a business delegate that caches the reference
to the session bean? Will this lock down the session bean for as long
as the reference exists. I think for stateless session beans im not
guarantied that my invocation on the session bean is always serviced by
the same bean instance although the reference is the same, correct? So
is caching the reference safe - and is is it usefull at all or should i
just call the servicelocator to get proxy intstance every time the
client creates a business delegate? I still want my pool of session
beans to service a larger number of clients than there are beans in the
pool - so i dont want to lock down any particular session bean instance
for one particular client.

My client is web/struts. If its possible to hold on to the business
delegate with the cached reference to the session bean between http
requests? Which is the beast way to do this?
richardsosborn@gmail.com - 07 Nov 2006 17:32 GMT
I would take a look at the J2EE specification.  It should describe the
duration and lifecycle of
beans, once the lookup has been performed.  Also, there are many good
articles on the
web site "www.theserverside.com".

S?ren wrote:
> Im not sure how to implement business delegate pattern in the new ejb3
> era - specifically if theres any need to cache references to remote
[quoted text clipped - 15 lines]
> delegate with the cached reference to the session bean between http
> requests? Which is the beast way to do this?


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.