aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes stateful session bean dilemma Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "stateful session bean dilemma" Watch "stateful session bean dilemma" New topic
Author

stateful session bean dilemma

Saha Kumar
Ranch Hand

Joined: Feb 23, 2006
Posts: 218
Hello All,

A business delegate creates a stateful session bean and keeps it cached to be used throughout the user's session. It is passed to a remote facade. The stateful session bean is only used by EJB tier and cached at the client tier. For performance reasons, I want a local stateful session bean...but this can't happen if BD creates it remotely.

Is this correct? If so, how can I solve it?

Thanks in advance.

-Saha
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
The business delegate is a client side design pattern. If you use local stateful bean then you client code and application server code will run on the same JVM machine. Why do you need a remote BD?
Keerthi P
Ranch Hand

Joined: Aug 19, 2003
Posts: 203
It (the Business Delegate) is passed to a remote facade.


You may want to reconsider this design.


Cheers.<br />Keerthi<br />(SCJP, SCWCD, SCBCD)
Saha Kumar
Ranch Hand

Joined: Feb 23, 2006
Posts: 218
Hello,

I am passing the SFSB reference (handle) to the remote SLSB.

-Saha
Saha Kumar
Ranch Hand

Joined: Feb 23, 2006
Posts: 218
Hello Keerthi P,

I've been looking at javaranch posts and examples on the internet. I now realize that I should redesign (not a big change) to have a SFSB as my remote facade. Its a bit of a change but in the end better. Although I've been working with J2EE for about 7 years(not as long with EJB), I've no experience with SFSB. Thanks for the enlightenment! I'm back on track!

-Saha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stateful session bean dilemma