Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

With Spring do you still need a java application server and when?

Tags:

spring

looks to me you need tomcat or some other servlet engine for the web part. what about data access part using hibernate and jms? Thanks.

like image 424
Bobo Avatar asked Apr 16 '12 14:04

Bobo


1 Answers

No, you don't need an application server, you can see Spring as a proprietary, modular application server implementation / adapter. But you still need an a servlet container.

  • Data access part: you can use hibernate and some standalone connection pool

  • jms: Spring is not a JMS provider, but it nicely integrates POJOs with any JMS provider

  • Spring also has comprehensive transactions support

  • Finally you have jmx and aop support built-in and easy integration with bean validation, jpa, web services, rmi, jci, task scheduling, caching...

As you can see you can either use certified application server and Java EE stack or built on top of Tomcat and pick Spring modules you need. Sometimes Spring uses standard Java EE APIs (like JPA), more often it builts its own.

like image 169
Tomasz Nurkiewicz Avatar answered Nov 09 '22 00:11

Tomasz Nurkiewicz