29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

You may either restart the server automatically or manually. If you have selected<br />

the Automatically restart servers when necessary check box under the server<br />

preferences, the server will automatically start when one of the above-mentioned<br />

situations occurs.<br />

To restart a server manually:<br />

1. In the <strong>Server</strong>s view, select the server you want to restart.<br />

2. Click the ‘restart the server” icon ( ) on the toolbar. In the Status column of<br />

the <strong>Server</strong>s view, the status of the server changes to Stopped and then to<br />

Started if the server was previously started. If the server was previously<br />

started in debug mode, the status changes to Started in debug mode. If the<br />

server was previously started in profiling mode, the status changes to Started<br />

in profiling mode.<br />

13.8 Deploying applications for production<br />

<strong>Application</strong>s are deployed to the Express <strong>Application</strong> <strong>Server</strong> as enterprise<br />

applications. When you are testing, this is done for you by the <strong>Server</strong> tools when<br />

you publish the application to the server.<br />

In a production environment, it is likely that the Express <strong>Application</strong> <strong>Server</strong> is<br />

being managed from the administrative console and not from Studio Site<br />

Developer. In this case, you will need to export the application and place it on the<br />

application server for deployment.<br />

The steps involved in deploying an application are as follows.<br />

1. Ensure there are no errors in the application.<br />

2. Export the application to the server, either to a file or using FTP.<br />

3. Using the administrative console for the server, add any required resources<br />

such as data source definitions, install the application and start it. Using the<br />

administrative console to deploy an application is covered in <strong>WebSphere</strong><br />

<strong>Application</strong> <strong>Server</strong> - Express V5.0.1 Administrator Handbook, SG24-6976.<br />

13.8.1 Exporting an enterprise application to a file location<br />

To export the enterprise application to an EAR file for deployment:<br />

1. Find the enterprise application project in the Navigator view, right-click, and<br />

select Export.<br />

2. Select the EAR file and click Next.<br />

Chapter 13. Deploying applications 489

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!