aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Designing Business layer using POJOs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Designing Business layer using POJOs" Watch "Designing Business layer using POJOs" New topic
Author

Designing Business layer using POJOs

Siva Krishnamurthy
Greenhorn

Joined: Mar 24, 2004
Posts: 6
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………..
Adam Hardy
Ranch Hand

Joined: Oct 09, 2001
Posts: 566
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


I have seen things you people would not believe, attack ships on fire off the shoulder of Orion, c-beams sparkling in the dark near the Tennhauser Gate. All these moments will be lost in time, like tears in the rain.
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
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


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Siva Krishnamurthy
Greenhorn

Joined: Mar 24, 2004
Posts: 6
thanks a lot for the info
Siva Krishnamurthy
Greenhorn

Joined: Mar 24, 2004
Posts: 6
thanks a lot for the info
Siva Krishnamurthy
Greenhorn

Joined: Mar 24, 2004
Posts: 6
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??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Designing Business layer using POJOs