Vous êtes sur la page 1sur 3

How to create a new WebSphere

Application Server from a process

When using IBM UrbanCode Deploy with the plugins WebSphere Application Server
Deploy and WebSphere Application Server Configure, you can create new application servers
based on a template, from a component process. This method is helpful if you want to
automatically create many servers that have the same standard configuration.

These steps describe how to proceed:

1. On the Source Cell, execute Websphere Discovery, and WebSphere Topology Discovery, as
described in Importing Resources from WebSphere Application Server
2. Execute the sample process: WebSphere Example 2 Discover & Templatize
Configuration Data (WAS ND with standalone server). Note: This process will create a new
component version in the component Server Config, which was automatically created when
you loaded the WebSphere Application Server Configure plugin.
3. On the Target Cell, execute WebSphere Discovery, WebSphere Topology Discovery, as
described in Importing Resources from WebSphere Application Server
4. Write down the full path to the Servers resource that was discovered. You will find the parent
path by doing the following:
click on Resources, navigate to Servers, click on Servers, click on Resource: Servers
(shows details). The path should look like this:

/TopResource/AgentName/CellName/Nodes/NodeName/Servers

5. Create a new generic process named Create WebSphere Server Resource Role. Include
the following steps in the order listed. Each step must contain the values specified below:
Create Resource with values:

Create Resource for


Name
Server

New Resource
${p:serverName}
Name

Parent Resource
${p:resourcePath}
Path

Role Name WebSphereServer

6. Set Resource Role property with values:

Set Resource Role property for


Name
Server name

Resource ${p:resourceName}/${p:serverName}
Role WebSphereServer

Property
websphere.server
name

Property
${p:serverName}
value

7. Create Resource with values:

Add Resource for Server Config


Name
Component

New
Resource ${p:componentName}
Name

Parent
Resource ${p:resourcePath}/${p:serverName}
Path

Role ${p:componentName}

8. Add three properties to the generic process:

Name Type Required

serverName String required

componentName String required

resourcePath String required

9. Create an application
10. Add the component Server Config to the application
11. Create an application process. Include the following steps in the order listed. Each step must
contain the values specified below:
Utility steps > Run generic process, with values:

Create new WebSphere


Name
Server

Create WebSphere Server


Process
Resource Role
Resource Path ${p:resourcePath}

serverName ${p:serverName}

componentName Server Config

12. Install Component , with values:

Name Apply Server Config

Component Server Config

Component Process Apply

13. Create an Environment that contains the Resource tree of the Target Cell
14. Click on the Play icon on the Environment, and select the application process that will be
executed
15. You will be prompted to supply the values of:

Resource Enter a path similar to:


Path /TopResource/AgentName/CellName/Nodes/NodeName/Servers

serverName Enter a new name for the server to be created

After the process executes, you will see that :

1. A new Resource with the name that you specified in the serverName property has been
added to the resource tree under the Resource Path that you specified.
2. A new WebSphere Application Server appears in the WebSphere Administrative Console.
3. All the configurations that were part of the original server template have been applied to the
newly created server.

Vous aimerez peut-être aussi