wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes VLH and SFSB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "VLH and SFSB" Watch "VLH and SFSB" New topic
Author

VLH and SFSB

Ajai
Ranch Hand

Joined: May 29, 2002
Posts: 198
Hi All,

Has anybody used VLH with SFSB?
If so can please suggest in what scenarios?

Thanks.
Ajai
Ranch Hand

Joined: May 29, 2002
Posts: 198
Anybody reading Core J2EE patterns can pls explain why for VLH ,they are recommending SFSB.In the posts I have read here nobody has implemented VLH with SFSB?

Thanks.
Vishwa Bandhu
Greenhorn

Joined: Jul 05, 2005
Posts: 12
I think the whole idea of VLH to use SFSB is that, VLH maintains the Value list and its state. So it makes sense to make use of SFSB. But when I looked at the PetStore example, they are using many SFSB, which I believe, is an overkill. If you already have a SFSB, I would use a serializable POJO for VLH and then cache the VLH in the existing SFSB, instead of making VLH itself a statefull session bean.
Ajai
Ranch Hand

Joined: May 29, 2002
Posts: 198
But as a best practice according to Core J2EE Patterns VLH should be a seperate SFSB.

Thanks.
Vinay Singh
Ranch Hand

Joined: Dec 15, 2004
Posts: 174
I tend to agree with Vishwa Bandhu's recommendation although it may not be the best pratice. It reduces over head as too many SFSB are over kill.
Had it not been Swing client , we could have preserved this state in HttpSession also.
Vinay


Technical quiz and interview questions   SCJP 6 mock practice test
 
Don't get me started about those stupid light bulbs.
 
subject: VLH and SFSB
 
Similar Threads
number of session facades
VLH accessible via shopping cart
VLH of petstore
Command pattern doutb
usage of stateful session beans