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:-
Can anyone please guide me on this, specially from the Spring and Hibernate point of view?
What are the issues raised during hosting/running an Hibernate & Spring application ?
Will any host providing Java hosting also provide support for Spring and Hibernate?
We can simply integrate hibernate application with spring application. In hibernate framework, we provide all the database information hibernate. cfg. xml file.
There are two approaches to Spring's Hibernate integration: Inversion of Control with a HibernateTemplate and Callback. Extending HibernateDaoSupport and Applying an AOP Interceptor.
Of course it does. Hibernate is an ORM framework. It does not require Spring in any way.
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.
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.
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:
As always... try different platforms and just choose the one which meets your needs.
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