Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java EE lightweight solution development  RSS feed

 
Guy Dillen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!