3.7 Deploying portlets

 < Day Day Up > 

Once you have created, edited and configured your portlet application, you must deploy the portlet application. To deploy your portlet application in WebSphere Studio Site Developer, you have to configure a server and server instance and choose the option Run on Server .

Configuring a server and server instance

  1. Select File-> New-> Other . Then select Server in the left frame and Server and Server Configuration in the right. Click Next .

    Figure 3-16. Create a New Server and Server Configuration.

    graphics/03fig16.jpg

  2. In the Create a New Server and Server Configuration window, enter the following values and click Next :

    1. Server name : WebSphere Portal

    2. Folder: Servers

    3. For the Server type, select WebSphere Portal version 5.0-> Test Environment .

    Figure 3-17. Values for a New Server and Server Configuration

    graphics/03fig17.jpg

  3. In the next window, enter the HTTP port number. Click Finish .

    Figure 3-18. Default port number

    graphics/03fig18.jpg

    A directory called Servers is created in the Server Configuration panel and a directory called WebSphere Portal is created under Servers.

Figure 3-19. Server Configuration panel

graphics/03fig19.jpg

Running the application

To publish the portlet in the target server, the EAR containing the WAR must be associated with the Server. In the Server Configuration panel, right-click the server name created and select Add-> DefaultEAR as shown in Figure 3-20.

Figure 3-20. Associating EAR with a server

graphics/03fig20.jpg

Once the project DefaultEAR has been added to the server configuration, you can switch back to the portlet perspective and select the portlet application you want to test. Right-click and from the context menu select Run On Server . The project will be published and the server will be started.

Once the server has been published and started, an internal Web browser is used to call the Portal. Notice that you do not need to install the portlet or place it on a page. This is done for you, as shown in Figure 3-21 on page 149

Figure 3-21. Deployed portlet

graphics/03fig21.jpg

 < Day Day Up > 


IBM WebSphere Portal V5 A Guide for Portlet Application Development
IBM Websphere Portal V5: A Guide for Portlet Application Development
ISBN: 0738498513
EAN: 2147483647
Year: 2004
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net