Multiple RAD workspaces - using single WAS profile vs multiple profiles

Sharing the Same WAS profile across the multiple RAD workspaces

Same WAS profile can be shared across the multiple RAD workspaces because profile is part of the WebSphere Application Server (or WAS Test Environment ). Sharing of the same WAS profile between the different workspaces is not recommended unless there is only one active workspace at any time.

Following things need to consider when sharing the profile
  1. Avoid making the changes to same application in different workspaces
  2. Only one workspace is allowed to debug at a given time

It always better to create different WAS profile for each workspace if you are working on same applications (e.g. same code base but parallel development branches or streams). Followings steps makes easy to bring your new workspace with all configurations from your old workspace (workspace preferences and profile configurations).

  1. Restoring the workspace preferences
    1. Export the workspace preferences, i.e any custom workspace preferences that you have configured (like console limit, validations …etc)
From the RAD File Menu --> Export --> Preferences

  1. From the new workspace, import the workspace preferences that you have exported in previous step
From the RAD File Menu --> Import --> Preferences

  1. Restoring the profile configurations
    1. Export the server profile configuration from the old workspace
give workspace folder location to save configuration car file

  1. This car file contains all configurations like Datasources, Security related config (JAAS auth ..etc) , JVM properties , shared libraries, deployed applications …etc. Its basically snapshot of all config for that profile.
  2. In the new workspace,
    1. create new WAS profile (for 32-bit Operating systems you can use the Profile Management Tool in the RAD and for 64-bit operating systems you can use the "interactive profile management tool" as described in this article)
    2. Once the profile is created , add that profile to new workspace
      1. Click "new" in servers view
      2. Select "Server Type" and "Server Runtime" and click next
      3. Select new profile that is created in above step
  1. click next to add any applications in workspace to server.
  1. Once the profile is added to workspace , right click on the server profile and restore the old profile configuration (you may need to copy the .car file that exported from the old profile to this workspace folder ).

  1. Start the server after successful restore, Now you should see all configuration from old profile here.

No comments:

Post a Comment