Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SFSB

 
Ajai
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it considered a bad practice if I access my SFSB(shopping cart) directly through BD(this will get the handle from httpsession )?
If I have to add a facade in front of it, I will again have to use another SFSB as facade as in petstore ?

Any thoughts?
 
dieman nambawan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AFAIK the purpose of having an SFSB in your system is to be able to keep the session state close to other EJB. If you intend to manage that state routinely from the (remote) client, it would defeat the purpose of having the SFSB at all. Why not keep the state on the client itself then?
[ August 30, 2005: Message edited by: dieman nambawan ]
 
Ajai
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply but I am not sure ,If I was able to understand it well.
Suppose i have decided for some good reasons to keep state on Business tier but still my client tier has to communicate with this SFSB in terms of addItem ,updateItem.
My question is what is the best way to access the SFSB methods from client side..through facade(which will be again a SFSB)or osme other better way.
 
dieman nambawan
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd say: access it directly from the client then. Why involve another EJB?

What I meant in my first reply: in my design I ran across a number of situations where some of the data originating in the EIS layer does need to be stored in the session for future use but does not be be shown to the user (and thus, passed to the client). In this case it's only natural to have another EJB store this data on the SFSB.
 
Ajai
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Understood .Accessing it directly is one option.

Suppose I don't want to want to acess it directly and want to put some facade in front as in petstore and at the same time I don't want the facade to be SFSB(unlike petstore).The problem comes when I have to keep track of my SFSB(local) in HttpSession behind SLSB Facade(Remote).

What are youir views on that?

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic