Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven based project using Spring Hibernate,EJB3.0,JPA JBOSS? [closed]

What is the best approach or technologies for java web based applications in Spring , hibernate ,EJB 3.0 ,JPA ,Jboss . I want to make a project . What is the best combination of these ? Whether I use Spring+hibernate+JBOSS+JPA or Spring+hibernate+EJB3.0+JBOSS+JPA . Help me out here . I also want to use maven in my project .

like image 647
pankaj Avatar asked Oct 02 '22 00:10

pankaj


1 Answers

This question is opinion based so I'm going to give you my opinion :).

Go for using Spring Boot. It boostraps your project with basic configurations based on what dependencies you have in your classpath (or imported with Maven) and what types of Spring beans you use.

For example

  • if you use Spring controllers in you app, it will detect it and deploy your app in an embedded Tomcat server
  • if you include the spring-boot-starter-data-jpa dependency it will automatically configure a DataSource to an in-memory database

Take a look at the reference documentation and take a look at the Starter POMS and read what default configurations it provides and how you can override them.

like image 107
Gabriel Ruiu Avatar answered Oct 03 '22 14:10

Gabriel Ruiu