• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Facades as Stateful Session beans

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Deepak. This helps!!

Solomon
 
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic