• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Facades as Stateful Session beans

 
Solomon Raz
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm little bit confused on if Facades should be Stateful/Stateless Session beans. I'm planning on having the rich client communicate with the EJB tier to various Facade objects. I earlier thought about having the Facades as SLSBs. But I need to maintain the state in an SFSB. Instead of having an SLSB Facade and an SFSB for state, I'm leaning towards making the Facades SFSBs. Are there any major issues with this approach.

Solomon
 
Deepak Pant
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No there are no issues in implementing a Facade as SFSB or Stateful session bean.

Core J2EE patterns book suggests using SFSB for implementing Session Facades only if the conversational state needs to be maintained in the business tier.

Some people keep two layers (Session Facade and Application Service) and implement Session Facade as SLSB and if required Application Service as SFSB

Hope this helps

Deepak
 
Solomon Raz
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Deepak. This helps!!

Solomon
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic