Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

VLH and SFSB

 
Ajai
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

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

Thanks.
 
Ajai
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But as a best practice according to Core J2EE Patterns VLH should be a seperate SFSB.

Thanks.
 
Vinay Singh
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic