Reputation: 20063
Basically, I've already written a webapp, it has hibernate with SpringMVC + Spring-security.
I have an EC2 account, my question is, when deploying it to the cloud rather than on a server locally like I do now (with RDS rather than having MySQL on localhost like I do now), should I just copy the war over onto the Tomcat installation of EC2, or do everything through Eclipse?
Is it relatively straight forward to set the new Hibernate.cfg.xml to point at a RDS rather than localhost?
At the moment I just copy the war onto the server and use iptables to map 80 to 8080, but I think I'm taking a very long route for deployment...I've not setup the db layer yet remotely...
Thanks,
Upvotes: 1
Views: 2055
Reputation: 9318
I am used to deploying WAR files to EC2 instances (though using WebLogic instead of Tomcat), and I think it is much more straightforward just to FTP the files over to the EC2 instance rather than trying to deploy them through Eclipse.
For your other question, it is completely straightforward pointing Hibernate.cfg.xml to RDS. You will probably have no issues doing so, as long as you remember to give the correct permissions on RDS. Hope it helps.
Upvotes: 3