Hosting tips for Java application using JSP, Hibernate, Mysql and Tomcat that serves data for Android application

Asked

Viewed 2,786 times

2

Guys , is the following. I developed an Android application where it is fed data coming from a remote database (Mysql) via Restful.

On the server side, I developed a java application using JSP and Hibernate, a Mysql databank, running on Tomcat. This application is basically a backend so that I can manage the data that feed and that comes from the Android app.

This is the first time I do something like this, and everything is running smoothly on my local server. It’s just that the time has come to hire a Java hosting service and I really don’t know what would be ideal to start a beta close of my application. There, remembering that through the Android App, users are able to send photos to the server, in addition to send some data and consume data and images from the server.

I saw some plans, in services of companies that seem to me reliable:

There is also the cloud service elastic band Jelastic, localweb.

Well, I know that to work my java application that serves as backend, I need Tomcat 7+, Mysql and Java 7+. So far so good. But in regards to memory plans? 256MB, 512MB. What do you suggest for my scenario? 5GB of storage is enough? Or maybe 10GB ? Are this hosting services above good? Would you like a good and cheap accommodation.

Another important thing. I’m using BASIC Authentication, so I think it’s necessary to share SSL (https), right?

from now on, thank you guys =)

  • None of these. As far as I know, these Brazilian services are very limited or have shared resources. Openshift, Digitalocean, AWS or other cloud service are infinitely better for applications and you have full control of servers. Openshift allows you to have 3 instances for free.

  • But all these Cloud services, I would be responsible for installing the tools I need, like Tomcat, Mysql, Java and so on, right?

  • It has to suit all tastes. Openshift offers full Stacks for the most common types of systems, so it’s all automatic. However, even on Amazon or Digital Ocean you can put images ready with the technologies you want. A lot of people think that using a service like this is more work because you’ll probably have to worry about a minimum of configuration, but a limited host isn’t better just because it has a cute little control panel when it does. It’s even worth having a more limited service to avoid having to learn to install one or two apps?

  • I fully agree with you. I am trying to deploy to Openshift using the jboss Tools plugin for the eclipse, and I am taking a beating^^.

  • Strange, this plugin worked so well when I used it in a project. I suggest you create a question about this.

  • In fact, I was able to send my app pro openshift, I added the cartridge of Tomcat 7 and Mysql (I created and imported Bade if data), but when I access the address of my application in the openshift panel appears the default Welcome screen, as if I had no application at all. I’m missing some 'morning' in the settings of Hibernate or Tomcat before deploying??

  • Use the plugin to view the application logs. It even allows you to follow the log almost in real time. I don’t remember exactly the name of the option, but this will help identify problems on startup. I remember it took some work to set up the bank’s credentials at the time, because it generates them once and if you lose it takes a lot of work to recover.

  • I found the log, and apparently everything looks fine. Deploy seems to have been done successfully, but when I try to access it (http://easysurf-sthiago.rhcloud.com/) keeps bringing the openshift welcome page

  • Tried to put /meuApp? It may lack the context.

  • Check this out: https://www.youtube.com/watch?v=dVtlfxbah5w

Show 5 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.