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.
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.
JBoss Application Server comes with Tomcat as the default web container. The embedded Tomcat service is the expanded deploy/jboss-web.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With