This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
 
Consider Paul's rocket mass heater.
 
subject: VLH and SFSB