Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hibernate with Tomcat vs Hibernate with JBoss

I am a newbie trying to figure out the pros and cons of using Hibernate with Tomcat and with JBoss.

I am developing a web application with Flex at the front-end, BlazeDS as the messaging service and Java at the back-end. We have decided on using Hibernate as the persistence mechanism but would like to know the trade-offs of using it with Tomcat and JBoss.

Thanks.

like image 694
soontobeared Avatar asked Sep 07 '09 18:09

soontobeared


People also ask

Is JBoss better than Tomcat?

First, the need for full Java EE support in the application server and second, the ability to obtain paid support from a vendor of repute. The various tools that give ease of use and provide integration with popular DevOps tools are also important reasons for making JBoss an effective choice over Tomcat.

Does JBoss use Tomcat?

JBoss Application Server comes with Tomcat as the default web container. The embedded Tomcat service is the expanded deploy/jboss-web.

What is JBoss Hibernate?

Hibernate is an Object/Relational Mapping (ORM) solution for Java environments. The term Object/Relational Mapping refers to the technique of mapping data between an object model representation to a relational data model representation.

What is difference between Tomcat and WildFly?

WildFly vs Tomcat: the basics The difference between WildFly and Tomcat is pretty straightforward: WildFly is a full Java EE application Server, while Tomcat is a Java servlet container and web server and, since because it doesn't come with an implementation of the full JEE stack, it is lighter out of the box.


1 Answers

Tomcat is JBoss's servlet engine, so you'll be using Tomcat regardless.

I would go for JBoss in your case. It already come with Hibernate, saving you the need to bundle Hibernate in your application. JBoss comes pre-configured with multiple different profiles, so you can pick the profile that does what you need without having much in the way of baggage (i.e. you can safely ignore all the heavy JavaEE stuff). Equally, if your application need to start using more JavaEE stuff (e.g. web services, EJB3), you can easily bring those JBoss services in.

Incidentally, you might want to look at GraniteDS as an alternative to BlazeDS, it seems to be a better piece of software.

like image 86
skaffman Avatar answered Oct 24 '22 01:10

skaffman