Configuring Studio Site Developer and the Portal Toolkit

 < Day Day Up > 

To use the WebSphere Studio Site Developer and WebSphere Portal Toolkit, you must first configure a Test Environment. It is not necessary for a separate instance of WebSphere Application Server or WebSphere Portal to be running to run the Portlet code that you developed in the WebSphere Studio Site Developer IDE.

Start the WebSphere Studio Site Developer. Select Start->Programs->IBM WebSphere Studio-> Site Developer 5.0 .

  1. The first time you start WebSphere Studio Site Developer, it will ask you to specify a directory to be used as your development workspace. Accept the default directory, check the box next to Use this workspace as the default and do not show this dialog box again , and click OK to open Site Developer.

    Note: You have already checked OK to this dialog, so you probably will not receive it a second time.

    Figure A-43. Workspace directory

    graphics/xafig43.jpg

  2. It may take a while for Site Developer to load for the first time. Please be patient.

    Figure A-44. Loading WebSphere Studio Site Developer

    graphics/xafig44.jpg

  3. Once WebSphere Studio Site Developer is loaded, you should see the following message as shown in Figure A-45; click Yes .

    Figure A-45. Updates pop-up window

    graphics/xafig45.jpg

  4. Select the pending configuration change and click Finish .

    Figure A-46. Configuration changes

    graphics/xafig46.jpg

  5. Click Yes when asked to restart the workbench.

  6. Once WebSphere Studio Site Developer is restarted, click the Server Configuration tab as shown in Figure A-47 on page 530.

    Figure A-47. Server Configuration tab

    graphics/xafig47.jpg

  7. Right-click Servers , then click New , then Server and Server Configuration as shown in Figure A-48.

    Figure A-48. Creating a new server and configuration

    graphics/xafig48.jpg

  8. A new window will be displayed to allow you to configure the new server and server configuration. Enter Test Environment as the server name . Select Test Environment under WebSphere Portal version 5.0 as the server type. Click Next to continue.

    Note: You must enter a server name to continue. Also, be sure to select Test Environment .

    Figure A-49. Server configuration settings window

    graphics/xafig49.gif

  9. This will bring up a window to select the HTTP port number to be used by Site Developer. The default is 9081. Click Finish to add the Test Environment.

    Figure A-50. HTTP port selection

    graphics/xafig50.jpg

  10. The server has been successfully added and can now be seen in the Server Configuration tab.

    Figure A-51. Test Environment has been added successfully

    graphics/xafig51.jpg

  11. WebSphere Site Developer and the Portal Toolkit are configured so that whenever you test a portlet by right-clicking it and selecting Run on Server , it will execute in this Test Environment.

    Figure A-52. Running a portlet in the Test Environment

    graphics/xafig52.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