2

I have a java app in which I want to use Jelastic's storage container, since the application WAR is getting bigger than the maximum allowed by my provider.

Does any one have examples on how to upload files, and how to access those files in my Java app? I read some documentation on how to create the storage contained, but those weren't very useful.

Thanks Dov

Dov Bigio
  • 31
  • 1

1 Answers1

0

Below you'll find some ways on how to upload big files:

Note that the maximum available size of the uploaded local file is 150 MB. If your application size exceeds this limit, please use the URL for uploading.

Actually, size is depending on the chosen hosting provider.

So, you can upload your file to a suitable file- or FTP-storage first and then upload it to Jelastic Deployment Manager using the obtained link.

  • A second way to upload a big WAR file is to connect Tomcat server via FTP and place the file in webapps folder.

  • Another way, if you want to use Storage container, is to mount storage to /opt/tomcat/webapps and place your file in dedicated container, outside the main server. Also, you can Mount External Server and put your file there (may affect the speed your application)

Virtuozzo
  • 1,993
  • 1
  • 10
  • 13
  • I think it my be an issue with my provider... I get an error message Creation of mount point at /opt/tomcat/webapps has failed. Please check the appropriate server's availability, conformity of permissions and firewall settings. – Dov Bigio Mar 28 '17 at 12:49
  • Hello Dov, could you provide us with email you have registered at Jelastic platform? We can check. Also you can contact support service of your hosting provider. – Virtuozzo Mar 28 '17 at 13:09