• 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

Designing Business layer using POJOs

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are trying to design a web application on Websphere.
The design decisions made are:
Presentation layer is on STRUTS framework.
Data layer is based on a custom framework that.
We are in the process of designing business layer for the application. It is also decided that we will not be using EJBs and will stick to Plain old java objects (POJOs).

What design patterns can be used in the business layer? Almost all the J2EE patterns are discussed with EJB in mind. How applicable are the J2EE design patterns in this kind of approach?
Please help………..
 
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've noticed a strong correlation between people talking about 'patterns' and people using EJB. Since Marinescu's EJB Design Patterns and that Wrox book - was it 'Core J2EE Patterns?', I think everyone thinks EJB has a monopoly on the use of patterns.
Actually there is point of view that EJB is itself an anti-pattern! Only kidding. A pattern is no more than a decent basis for a design.
What were you considering EJBs for? Database access? Well there are plenty of non-EJB database access frameworks around. JDO, Hibernate.
Actually I think you can pick up a free copy of EJB Patterns as a pdf from the serverside.com, and in it they have a chapter on alternatives for EJB.
HTH,
Adam
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read Eric Evan's book on Domain Driven Design. Those are the patterns you use in designing business layers regardless of whether you use EJBs or not.
Kyle
 
Siva Krishnamurthy
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks a lot for the info
 
Siva Krishnamurthy
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks a lot for the info
 
Siva Krishnamurthy
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can we use patterns like
business delegate
Factory
Transfer object
in business layer using POJOs?
Is it always necessary that Transfer objects be used between business and presentation layer (STRUTS) or can business objects be returned as it is??
 
reply
    Bookmark Topic Watch Topic
  • New Topic