1

Can I deploy a Spring java application on all (or at least most) of JavaEE servers ? like Weblogic, JBoss, Webshpere, Tomcat, Jettty etc.

And is there is preferred Java EE server for Spring ?

M-D
  • 10,247
  • 9
  • 32
  • 35

2 Answers2

1

Yes you can. And no - there isn´t. Errata: you can take a look at the SpringSource dm Server. Be aware that spring is not a java EE implementation. Read this post here.

Community
  • 1
  • 1
mithrandir
  • 738
  • 1
  • 6
  • 17
  • Is that possible even on Tomcat ? – M-D Oct 25 '13 at 11:17
  • yes of course - nearly all my applications built with spring run on tomcat – mithrandir Oct 25 '13 at 11:19
  • But I heard that Tomcat doesn't implement EJBs, Dependency Injection etc. In that case, wont I have to do some installation of those ? – M-D Oct 25 '13 at 11:22
  • The standard Tomcat is not a java EE server. Although there is a EE offspring that is called [TomEE](http://tomee.apache.org/tomcat-java-ee.html). DI has nothing to do with the application server. Of course you can use that in tomcat. In short words: If you want to use java EE then choose a JEE Application server like JBoss. If not then use tomcat. Be aware that spring is NOT java EE. Read this post [here](http://stackoverflow.com/questions/4490682/difference-between-java-ee-and-spring-framework). – mithrandir Oct 25 '13 at 11:27
1

Yes, you can deploy it on any server, and you can use it on standalone applications and even on mobile applications. It is in no way restricted to web deployment. It is not even restricted to java, there is Spring.NET and even a Python version. However, java and web servers are a common if not the most common use for it.

Currently recommended web server by VMWare/Pivotal (current owner of Spring) is VFabric tcServer, which is a Tomcat fork containing some extra tools and functionality. But server in itself does not matter, Spring is container agnostic.

There is no preferred EE server. VFabric tcServer is a servlet container, not an EE server. It contains "enterprise capabilities" instead, but that's not the same thing. As said however, you can use whichever EE server you want.

Community
  • 1
  • 1
eis
  • 51,991
  • 13
  • 150
  • 199