29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Tips: To predefine file transfer mechanisms, you can set up the copy or file<br />

transfer mechanisms ahead of time by using File -> New -> Other -><br />

Remote Transfer File. Give each remote file transfer definition a<br />

meaningful name (for example, To<strong>Server</strong>x or ToLocalTest) so you can<br />

easily select the appropriate profile when you are creating server<br />

configurations.<br />

To change the file transfer mechanism used to publish to a server: If you<br />

want to change the remote file transfer definition to be used to publish to a<br />

server, open the <strong>Server</strong> definition (in the <strong>Server</strong>s Configuration view) and<br />

change the designation on the <strong>Server</strong>s page.<br />

7. Select an HTTP port. The default is 7080.<br />

8. Click Finish.<br />

13.5.2 Publishing the application<br />

Publishing an application to a remote server works the same way as in the test<br />

environment. To publish an application to the remote server:<br />

1. Select the server in the <strong>Server</strong> Configuration view, right-click, and select Add<br />

and remove projects....<br />

2. Select the enterprise application in the Available Projects list and click Add.<br />

3. Click Finish. You will see an entry for the application appear under the server<br />

in the <strong>Server</strong> Configuration view.<br />

4. Select the server in the <strong>Server</strong>s view, right-click, and select Publish.<br />

5. If the application will require any server definitions (for example, class path or<br />

data source information), see 13.6, “Working with server configurations” on<br />

page 483 for information on how to make these configuration changes.<br />

What happens when you deploy an application<br />

When you deploy an application to an Express <strong>Application</strong> <strong>Server</strong>, the file<br />

structure required by the server is created and the files are copied to the server.<br />

You can see the new folders in two places on the server:<br />

► /installedApps/DefaultNode/.ear<br />

► /config/cells/DefaultNode/applications/.ear<br />

Chapter 13. Deploying applications 481

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

Saved successfully!

Ooh no, something went wrong!