Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Developing JAX-RS 1.1 RESTful Services in Rational Software Architect V8 for deployment to WebSphere Application Server V8

Enabling legacy applications for REST

Tendai Chinoda (tendai@us.ibm.com), Senior Software Engineer, IBM
Photo of Tendai Chinoda
Tendai Chinoda is an IBM Certified IT Specialist and Senior Software Engineer in IBM Software Services for WebSphere (ISSW). He provides consulting and enablement services to IBM customers for the IBM WebSphere family of products. His expertise and interests include Application Architecture, Design and Development for Cloud Computing, SOA, Java EE and Web Services solutions.
(An IBM developerWorks Contributing Author)
Photo of Harry Hoots
Harry L. Hoots, III is an IT Specialist working on the IBM Account. He serves in senior roles and is a Web Services Team Development lead on a major internal project. His expertise and interests include Application Architecture, Design and Development of Java EE, Web Service, and MQ Series solutions.

Summary:  Learn how to expose existing business functionality embedded in legacy applications as JAX-RS 1.1 RESTful services using WebSphere® Application Server V8.0 and Rational® Software Architect.

Date:  02 Nov 2011
Level:  Intermediate PDF:  A4 and Letter (2616 KB | 54 pages)Get Adobe® Reader®

Activity:  47506 views
Comments:  

Configure the WebSphere Application Server V8.0 runtime environment

This section outlines the tasks required to configure a new WebSphere Application Server V8.0 to deploy the JAX-RS REST Service.

  1. In the Server view right click and select New > Server.
  2. In the Define a New Server dialog, select WebSphere Application Server v8.0 as the server type to be created.
  3. In the Server runtime environment field, select Create new runtime environment and then click Next (Figure 7).

    Figure 7. Create Server: Define a New Server dialog
    Create                         Server: Define a New Server Dialog

  4. In the Application Server Runtime Environment dialog, click Browse to navigate to the Installation Directory. Select the <installation_directory> for WebSphere Application Server V8.0 and then click Next (Figure 8).

    Figure 8. Create Server: Specify Server Runtime Environment
    Create Server:                         Specify Server Runtime Environment

  5. In the WebSphere Application Server Settings dialog, if you have an existing profile, you can select it from the Profile name pull down it or you can create a new one.
  6. To create a new profile click the Configure profiles link and follow the remaining steps (Figure 9).

    Figure 9. Create Server: Specify Server Settings
    Create Server: Specify Server Settings

  7. If prompted to Create a runtime environment, click Yes.
  8. In the Preferences window, expand Preferences > Server > WebSphere Application Server and click on Run Profile Management Tool (Figure 10).

    Figure 10. Create Server: Select Run Profile Management Tool
    Create Server: Select Run Profile                         Management Tool

  9. In WebSphere Customization Toolbox window click Create (Figure 11).

    Figure 11. Create Server: Create Profile
    Create Server: Create Profile

  10. In the Environment Selection dialog choose Application Server and click Next (Figure 12).

    Figure 12. Create Server: New Profile Environment Selection
    Create Server: New Profile                         Environment Selection

  11. In the Profile Creation Options dialog, select Advanced profile creation and click Next (Figure 13).

    Figure 13. Create Server: Profile Creation Options Dialog
    Create Server:                         Profile Creation Options dialog

  12. In the Optional Application Deployment dialog, ensure Deploy the admin console is checked, uncheck the Deploy default application and click Next (Figure 14).

    Figure 14. Create Server: Profile Application Deployment Dialog
    Create Server: Profile                         Application Deployment dialog

  13. In the Profile Name and Location dialog, enter a name for the profile (for example: devWorksProfile)
  14. Change the Profile directory to include the name of the application server and click Next (Figure 15)

    Figure 15. Create Server: Profile Name and Location
    Create                         Server: Profile Name and Location

  15. In the Node and Host Names dialog, enter appropriate values for Node name, Server name and Host name and then click Next (Figure 16).

    Figure 16. Create Server: Profile Node and Host Names dialog
    Create Server: Profile Node and Host Names Dialog

  16. In the Administrative Security dialog, check Enable administrative security and enter appropriate values for User name and Password and then click Next (Figure 17). NOTE: Remember this User name to access the Administrative Console and to start or stop the server from the command line.

    Figure 17. Create Server: Profile Administrative Security dialog
    Create Server: Profile Administrative                         Security Dialog

  17. In the Security Certificate (Part 1) dialog, leave all fields as default to create a new default personal certificate and root signing certificate and click Next (Figure 18).

    Figure 18. Create Server: Profile Security Certificate I dialog
    Create                         Server: Profile Security Certificate I Dialog

  18. In the Security Certificate (Part 2) dialog leave all fields as default to create a new default personal certificate and root signing certificate and click Next (Figure 19).

    Figure 19. Create Server: Profile Security Certificate II dialog
    Create                         Server: Profile Security Certificate II Dialog

  19. In the Port Values Assignments dialog, accept the default generated ports and click Next (Figure 20). Take note of the HTTP transport port as it will be need for the HTTP Client at a later stage in the tutorial.

    Figure 20. Create Server: Port Assignments
    Create Server: Port                         Assignments

  20. In the Window Service Definition dialog, uncheck Run the application sever process as a Windows service and click Next (Figure 21).

    Figure 21. Create Server: Server Windows Service dialog
    Create Server: Server Windows Service                         Dialog

  21. In the Web Server Definition dialog, leave all fields as default and click Next (Figure 22).

    Figure 22. Create Server: Web Server Definition dialog
    reate Server: Web Server                         Definition Dialog

  22. Review the Profile Creation Summary information and click Create (Figure 23).

    Figure 23. Create Server: Profile Creation Summary
    Create Server: Profile Creation                         Summary

  23. In the Profile Creation Complete dialog, uncheck Launch the First steps console and click Finish (Figure 24).

    Figure 24. Create Server: Profile Creation Complete dialog
    Create                         Server: Profile Creation Complete Dialog

  24. The newly created profile should now be visible in the WebSphere Customization Toolbox (Figure 25). Close the window to return to Rational Software Architect.

    Figure 25. Create Server: Updated Profile List
    Create Server: Updated                         Profile List

  25. In the Preferences window, expand Preferences > Server > WebSphere Application Server and click on the WebSphere Application Server V8.0 installed runtime to refresh the list of profiles. The new server should appear in the profile section. Click OK (Figure 26).

    Figure 26. Create Server: Updated Servers and Profiles View
    Create Server: Updated Servers and                         Profiles View

  26. In the WebSphere Application Server Settings dialog, select the newly created profile in the Profile name drop-down menu. Enter the User ID and Password and click Next (Figure 27).

    Figure 27. Create Server: Configure WebSphere Application Server Settings dialog
    Create                         Server: Configure WebSphere Application Server Settings Dialog

  27. In the Add Remove projects dialog, click Finish.

This completes the steps required to configure the WebSphere Application Server V8.0 runtime environment for deploying the legacy bank application’s JAX-RS 1.1 REST Service. In the Server view you should now see the newly created server in Stopped state.

4 of 12 | Previous | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere, Java technology
ArticleID=764302
TutorialTitle=Developing JAX-RS 1.1 RESTful Services in Rational Software Architect V8 for deployment to WebSphere Application Server V8
publish-date=11022011
author1-email=tendai@us.ibm.com
author1-email-cc=
author2-email=hlhoots@us.ibm.com
author2-email-cc=