• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Session Facade with stateless session beans

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a question regarding using session facade design pattern. I have gone through the tutorials it gave examples with sesssion facade with entity beans not stateless session beans. So, can I use session facade with stateless session beans.

I have developed some stateless session beans for Searching, RetrieveJobDetails and other functions separately as one session bean for every requirement.So I want to use the design patterns like Business delegate,Service Locato,Session facade.So,is it Ok if I use all these design patterns for my application.

Please throw some light and ideas/comments are appreciated.

Thanks.
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mohammed,

Session fa�ade is meant to work with entity ejbs, as the name implies. Obviously if you�re not using entity ejbs, then you won�t develop a fa�ade but you�re probably using the JDBC for reading design pattern. Business delegate and service locator are also good idea and they should be part of any good design. You also need to design the data that must be exchanged between the server and the clients and you can look at the inter-tier data transfer patterns, like data transfer object, data transfer RowSet/HashMap, domain data transfer object, etc.
There is one more thing though. The jdbc for reading pattern is not actually a replacement for the session fa�ade. It supposed to be used (at least in theory) with BMP and especially when the application needs to display tabular data (it avoids the n + 1 entity calls problem, simplifies the development, etc). I know that people don�t feel comfortable using entity ejbs, but besides that is there any reason why you don�t want the use them?
Regards.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic