aspose file tools*
The moose likes Other Open Source Projects and the fly likes From 2 tiers to 3 tiers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "From 2 tiers to 3 tiers" Watch "From 2 tiers to 3 tiers" New topic
Author

From 2 tiers to 3 tiers

Giselle Dazzi
Ranch Hand

Joined: Apr 20, 2003
Posts: 168
Hi all,

Since a JSP application is pure 2 tiers application, are there any Opes Source Projects that will help me build a JSP 3 tiers ?
I understand Struts wont help me with that, correct ? Since it will not separed business layer.
Do I really need to go for EJB ? My application will not be large, I wanted to go for 3 tiers but I'm afraid EJB will be too much...

Any ideas ?

thx


Giselle Dazzi<br />SCJP 1.4
Brian Sam-Bodden
author
Greenhorn

Joined: Aug 31, 2004
Posts: 25
Giselle,
You don't necessarily need to have 3 physical tiers. You need to evaluate your application need for transactions (the best thing the EJB container gives you). I would start by having a good logical separation by breaking your presentation logic and your business logic. Create some good reusable POJOs make the ones you need data aware using something clean and *transparent* like Hibernate, OJB or JDO. If you later determine that your application is highly transactional, then you can think about introducing Stateless Session EJBs using your POJOs. So in conclusion, use a minimalistic approach and add complexity as needed. Sometimes 2 tiers are enough (just ask the PHP guys).

Brian


Co-Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1590591259/ref=jranch-20" target="_blank" rel="nofollow">Enterprise Java Development on a Budget</a>
Brian Sam-Bodden
author
Greenhorn

Joined: Aug 31, 2004
Posts: 25
I would also take a look a Tapestry which a find a much nicer, simpler framework to build web apps
Giselle Dazzi
Ranch Hand

Joined: Apr 20, 2003
Posts: 168
Thanks Brian !
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
In my work, i'm use spring framework.

So, Spring Framework is support Hibernate(O/R mapping).


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
 
Consider Paul's rocket mass heater.
 
subject: From 2 tiers to 3 tiers