16.2 Preparing Portal for Remote Server Attach

 < Day Day Up > 

In order to test and debug portlets remotely, some configuration is required.

  1. First, stop any servers running on WebSphere Test Environment inside Studio.

  2. Start the external WebSphere Application Server; click Start -> Programs -> IBM WebSphere -> Application Server v5.0 -> Start the Server .

  3. Once WebSphere Application Server has started, open the Administrative Console. Click Start -> Programs -> IBM WebSphere -> Application Server v5.0 -> Administrative Console .

  4. Log on to the Administrative Console with user ID wsadmin. Click OK .

    Figure 16-3. WebSphere Application Server Administrative Console Login

    graphics/16fig03.gif

  5. Click No if you get the auto complete option message. It is not needed for this scenario.

  6. Expand Servers and select Application Servers -> WebSphere_Portal .

    Figure 16-4. Select WebSphere_Portal

    graphics/16fig04.gif

  7. In Additional Properties (Configuration page), scroll down and select Process Definition .

    Figure 16-5. Select Process Definition

    graphics/16fig05.jpg

  8. Select Java Virtual Machine (Additional Properties).

    Figure 16-6. Java Virtual Machine

    graphics/16fig06.gif

  9. In General Properties:

    1. Select the Debug Mode checkbox.

    2. Verify that the following string is defined as the Debug arguments:

       -Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777 

      Note : The address specifies the JVM debug port number; the default value is 7777.

    3. Click Apply .

    Figure 16-7. JVM parameter enabling debug

    graphics/16fig07.gif

  10. In the menu bar, click Save . Also, click Save in Save Master Configuration.

    Figure 16-8. Save the JVM configuration

    graphics/16fig08.gif

  11. Stop the Application Server by clicking Programs -> IBM WebSphere -> Application Server -> Stop the Server .

  12. Close the desktop browser.

 < 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