To start with, you should notice that for getting the ability to deploy projects from Eclipse to Jelastic, they should be created as Dynamic/Static Web Projects.
Tip: In case you can’t find such option, you need to install the Web, XML, Java EE and OSGi Enterprise Development plugin first (can be accomplished by means of the Help > Install New Software menu).
After this is completed, you’ll see new options appeared within the available project types at the File > New > Project wizard:
So, for your Jelastic-dedicated projects, either the Dynamic Web Project or Static Web Project option should be used.
After the plugin is installed, you may notice new Jelastic-dedicated elements being added to your Eclipse development environment interface. They are intended to implement the possibility of a new project deployment to the remote environment - so, let’s consider the provided functionality in more details.1. At the Eclipse panel, a new button with Jelastic logo appears, which contains the expandable drop-down menu with the Deploy and Deploy as options:
Using the Deploy option, you can redeploy the current project to the environment under the same context, that was previously used for this project deployment.
- If the application hasn't been deployed anywhere before, the Deploy as option should be used.
In this case, window with the list of existing Java environments at your account will be opened for you to choose the project, environment and context for deployment.
2. Also, deployment of application can be initiated by selecting the corresponding Eclipse project within the Project Explorer section and choosing either the Deploy project to Jelastic or Deploy project to Jelastic as line from its context menu:
Herewith, the implemented functionality is the same as for the corresponding options, described above
Yes, that's that simple! So do not lose the time and jump at the chance to use all the advantages of Jelastic and Eclipse integration.