• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Java EE lightweight solution development

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

Instead of using a full-blown (incl EJBs, ...) Java EE software stack I would like using a more lightweight approach: using POJOs, Tomcat (Container), Jersey (REST services, JPA/Hibernate (ORM), ... I would like architecting/developing my solution(s) in a layered approach: presentation layer / service layer / business layer / data-access layer (DAO, repository pattern).

My questions:
- Can I architect/develop my solution just with the mentioned elements (POJOs, Tomcat, Jersey, Hibernate) or do I need any extra framework(s) (eg Spring)?
- Are there any (recent) and relevant books discussing a lightweight approach I want to implement?

Thanks.
Guy
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

You don't need Spring. If it's a web app that contains web pages you'll likely want some web framework besides JSP, though. (Not sure if there server-generated web pages, since you mention only REST WS).

In fact, you don't need Hibernate or some other ORM library either if you want to reduce the number libraries - you can use straight JDBC. But that is rarely done these days, for the same reasons one usually uses a web framework on top of JSP.
 
Guy Dillen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulf,

OK thanks.
I only need REST services hosted in the cloud; my front-end will be based on AngularJS. But of course the backend solution behind the REST services (SL) should be developed in a layered approach (BL, DAL).

Thanks.
Guy
 
F is for finger. Can you stick your finger in your nose? Doesn't that feel nice? Now try this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic