Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question regarding SFSB  RSS feed

 
Ali Reza Hosseini
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

some of my colleagues are designing
a sfsb with local interfaces!!! for clients
conversational state ...

I am wondering if it actually does make sense to have
an SFSB with only local interfaces and allow a client
to access this sfsb over a session facade which is
stateless itself ..

what do you mean? are my colleagues right to do it that way?

thanks ...
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Generally speaking, if a session bean or entity bean will only be accessed by a session facade, then it makes sense for those beans to declare local interfaces. It will be the facade which exposes the methods that the client will call. For remote clients, the facade will have to declare remote interfaces.
 
Ali Reza Hosseini
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roger,

generally spoken you are right ..

but in this particular case where it is intended to save a client's conversational state in a stateful session bean, would you let a client
access its state over a session facade?

i think this is a little bit over engineered ..
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like the facade pattern, it provides a single clean interface for the client. It also means that the client cannot know how its business requirements are being satisfied, be they done by other EJBs, POJOs or whatever. This is important in separating the presentation layer from the business logic layer.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!