Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

web hosting for spring and hibernate application [closed]

I have to host a web application built using JSP, Java 6, Spring 3, Hibernate 3, mySql, Tomcat 6.

I am new to hosting a web application and have some queries:-

  1. Can anyone please guide me on this, specially from the Spring and Hibernate point of view?

  2. What are the issues raised during hosting/running an Hibernate & Spring application ?

  3. Will any host providing Java hosting also provide support for Spring and Hibernate?

like image 367
a Learner Avatar asked Mar 06 '12 10:03

a Learner


People also ask

Can you use spring and Hibernate together?

We can simply integrate hibernate application with spring application. In hibernate framework, we provide all the database information hibernate. cfg. xml file.

What are the two ways of accessing Hibernate by using spring?

There are two approaches to Spring's Hibernate integration: Inversion of Control with a HibernateTemplate and Callback. Extending HibernateDaoSupport and Applying an AOP Interceptor.

Can we use Hibernate without spring?

Of course it does. Hibernate is an ORM framework. It does not require Spring in any way.

What is the difference between spring and Hibernate?

Spring is useful for transaction management, aspect-oriented programming, and dependency injection. Hibernate provides Object-Relational Persistence and Query service for applications. Spring has a number of modules such as Spring core, Spring MVC, Spring Security, Spring JDBC & more.


2 Answers

You may use a cloud provider for that. There are a lot. Amazon web services is the leader on the market but it's moving fast (and you have a free micro instance for one year to try). Oracle just entered the ring for example. Rakspace is a big one too and there are a lot of others.

Then you may decide between IAAS and PAAS. Basically with PAAS you don't install tomcat or mysql yourself. There you have solutions like Red Hat Openshift, Vmware Cloudfoundry, Amazon beanstalkC cloudbees, Microsoft Azure. With IAAS, you have a virtual machine. Maybe you can start by this to move up the stack and try PAAS later.

Cloud is the future of hosting. Renting a physical machine will disappear shortly. PAAS is believed to be the future of cloud. So you should try the cloud. There are tons of tutorials on this.

like image 116
unludo Avatar answered Oct 21 '22 09:10

unludo


There are several PaaS where you can deploy a Spring application. However, not in all of them you will have support for the same containers. CloudBees is a Java PaaS where you can deploy your application in Tomcat, Jboss, Glassfish and Jetty. You have the several containers that they support here.

Specifically for Spring you have this official documentation and also this step by step guide on a blog.

They also provide two ClickStart as an example:

  • PetClinic ClickStart
  • BeesShop ClickStart

As always... try different platforms and just choose the one which meets your needs.

like image 25
Captain Haddock Avatar answered Oct 21 '22 08:10

Captain Haddock