Applications can be deployed into the SpringSource Application Platform using either the hot-deploy directory on the filesystem, or by using the admin console.
To hot-deploy an application, copy it into the
$PLATFORM_HOME/pickup directory:
cp myapp.par $PLATFORM_HOME/pickup
When the application is deployed, a message similar to the following will appear in the log:
[2008-03-08 17:00:00.000] <SPDE0010I> - Deployment of 'myapp.par' version '0' completed.
To use the SpringSource Admin Console, you must start the SpringSource Application Platform and then enter the following address in to your browser of choice.
http://localhost:8080/admin
Replace 'localhost' with the name of the server on which the SpringSource Application Platform is running if it is not your local machine. The Admin Console uses basic security, therefore you will need to enter the default id and password.
ID: admin
Password: springsource
To change the id and password for the Admin Console, go to the following file, which is in the standard Tomcat format. Change the 'username' and 'password' values. The Admin Console runs against the admin role, therefore this cannot be changed.
$PLATFORM_HOME/servlet/conf/tomcat-users.xml
The main page will display several sections. The main section is a list of the installed applications and the modules that comprise them. The standard install of the platform will have two applications - the Aadmin Console itself and a splash screen application. As these applications both contain web modules, a link is provided to view them in your browser.
At the bottom of the main page is a section giving details of the server you have accessed which may be useful for verifying that you have accessed the right server.
The Admin Console allows you to upload a file, which will be deployed automatically, from your local system to the SpringSource Application Platform. Once the application is deployed it will appear in the list of applications in the Admin Console. Using the upload panel shown below you can select a file.
When clicked, the 'Upload' button reloads the page. This may take a few seconds while the file is transmitted and deployed. The list of applications will display the newly deployed application. If there have been any problems, you can check the status message at the top of the page. This message will otherwise report that 'Application deployed'.
The other fields in the table give the 'Name' of the application, which will be the file name if none is supplied. The 'Origin' describes how the application was deployed. The possible values are 'Hot Deployed' as described above, 'Admin Console' if deployed through the console and 'Programmatic' if deployed programmatically, that is, through the integrated application deployer in the Spring Tools Suite. The version will be '0' if none is supplied. The 'Date' shows when the application was last deployed to the platform. Finally, the 'Type' tells you if it is an OSGi application or not.