g Copynight IBM Corporation 2005. All nights reserved At the command prompt type in: setupBank bat and press Enter Note: this operation may take a minute or so to complete C. You will get a prompt to select the desired node: Enter node1 A Command Prompt- setupbank J挺 not wish for this to happen ntinue to process dngron node dmgrNode us ing SoAP connector; sx73031: The following unrecogn ized options are passed to the script ing envirol ment and are available as argu: [C: /LabFiles60/WRDlab/databases/ BANKDB tupBank: Configure WebSphere Bank resources Available nodes elect the desired node (press enter to take the default) [Default: dmgrNode]: d The setup Bank script will continue to run. If successful the following output should etupBank: Checking to see if connection Factory BANKDS-CF for database BANKDS e ank: Create connection Factory BANKDS_CF for database BANKDS xresource.cci Connection Factory Save the configuration Proof of Technology L04-Web Sphere Deployment Automation and WRU Page 6 of 28
© Copyright IBM Corporation 2005. All rights reserved Proof of Technology L04 – WebSphere Deployment Automation and WRU Product Introduction + Exploration (PI+E) Page 6 of 28 At the command prompt type in: setupBank.bat and press Enter. Note: this operation may take a minute or so to complete. __ c. You will get a prompt to select the desired node: Enter node1 __ d. The setupBank script will continue to run. If successful the following output should appear:
g Copynight IBM Corporation 2005. All nights reserved Part 1: WRD Deployment Automation"autoappinstall"style: WebSphere Bank In this part you will set up a WRD workspace that supports the Auto Application Install style. You will add an EAR file to the project, update it, and then remove it to see how the changes are reflected on the application server. The automatic application installation configuration creates a single monitored directory that listens for fully composed EAR files or application modules such as War files, EJB jar files, or stand-alone RAR files. If you place EAR files inside this monitored directory, the EAR is automatically deployed to the server. If you delete the EAR file from the monitored directory, then that application is uninstalled from the server. If you place WAR files or EJB jar files in the monitored directory, the rapid deployment tool generates the necessary EAR wrapper and then publishes that EAR file on the server. For RAR files, a wrapper is not created The stand-alone RaR files are published to the server 1. In the command prompt type md C: WRD to create a folder called WRD which will hold the WRD projects that will be defined 口区 : \We bSphere \AppServer\profiles\profile\bin )md C: \WRD \We bSphere \AppServer\profiles\profiled\bin) 2. Navigate to C: WebSphere\profileslprofile1 bin if not already there cd \WebSphere \AppServer\profiles \profile\bin 3. Configure the WRD Deployment Automation project using the"autoappinstall style a. At the command prompt type SET WORKSPACE=C: WRD and press enter. This will set the WRD workspace directory to the folder created in step 3 C: \e bSphere \AppServer\profiles \profile\bin >SET WORKSPACE=C: \RD C: \WebSphere\AppServerprofiles \profile\bin>. b. At the command prompt type wrd-config. bat -project " AutoInstall style " autoappinstall" and press Enter: Note:-project is the name of your WRD deployment automation project and-style is the style that applies to the project C. This command will execute for a minute as it starts to build the project. It will then ask for configuration parameters. You will need to enter the correct information for server Proof of Technology L04-Web Sphere Deployment Automation and WRU Page 7 of 28
© Copyright IBM Corporation 2005. All rights reserved Proof of Technology L04 – WebSphere Deployment Automation and WRU Product Introduction + Exploration (PI+E) Page 7 of 28 Part 1: WRD Deployment Automation “autoappinstall” style: WebSphereBank In this part you will set up a WRD workspace that supports the Auto Application Install style. You will add an EAR file to the project, update it, and then remove it to see how the changes are reflected on the application server. The automatic application installation configuration creates a single monitored directory that listens for fully composed EAR files or application modules such as WAR files, EJB jar files, or stand-alone RAR files. If you place EAR files inside this monitored directory, the EAR is automatically deployed to the server. If you delete the EAR file from the monitored directory, then that application is uninstalled from the server. If you place WAR files or EJB jar files in the monitored directory, the rapid deployment tool generates the necessary EAR wrapper and then publishes that EAR file on the server. For RAR files, a wrapper is not created. The stand-alone RAR files are published to the server. ____ 1. In the command prompt type md C:\WRD to create a folder called WRD which will hold the WRD projects that will be defined. ____ 2. Navigate to C:\WebSphere\AppServer\profiles\profile1\bin if not already there. cd \WebSphere\AppServer\profiles\profile1\bin ____ 3. Configure the WRD Deployment Automation project using the “autoappinstall” style. __ a. At the command prompt type SET WORKSPACE=C:\WRD and press enter. This will set the WRD workspace directory to the folder created in step 3. __ b. At the command prompt type wrd-config.bat –project “AutoInstall” – style “autoappinstall” and press Enter: Note: -project is the name of your WRD deployment automation project and –style is the style that applies to the project __ c. This command will execute for a minute as it starts to build the project. It will then ask for configuration parameters. You will need to enter the correct information for server
g Copynight IBM Corporation 2005. All nights reserved name and JMX port number when responding to prompts. You can take the default values for all other prompts Enter the server name*( server1): dmgrcell/node 1/server1 [Enter Enter the server JMX host name*(localhost ) [Enter Enter the server JMX port number*(8880): 8879 [Enter Enter your server username(-): [Enter Enter your server password(-): [Enter ci C: WINNT\system32\cmd. nstaii \profiles\profiler\bin wrd-config -project"autolnstall"a sPhere Rapid Deplo yment configuration. Please wait tarting Workbench Initializing the workspace Enter the server nane*( serverl ) dmgr Ce ll/node1/serverl 888E 8879 Enter your server username Enter your server password WebSphere Rapid Deplo yment configuration complete d. Once the configuration of the project is complete a confirmation message " WebSphere t configuration completed will 4. Start the WRD project a. At the command prompt type: WRD. bat-monitor and press Enter. The command may take a minute to process. After it,'s complete the following output will appear: 口 \e bS phere \AppServer\profiles\profile \bin )WRD bat -monitor Sphere Rapid Deple Please wait webSphere Rapid Deplo g', quit, or 'exit' to shut down We bSphere Rapid Deplo yment processes Proof of Technology L04-Web Sphere Deployment Automation and WRU Page 8 of 28
© Copyright IBM Corporation 2005. All rights reserved Proof of Technology L04 – WebSphere Deployment Automation and WRU Product Introduction + Exploration (PI+E) Page 8 of 28 name and JMX port number when responding to prompts. You can take the default values for all other prompts: __ Enter the server name* ( server1 ) : dmgrCell/node1/server1 [Enter] __ Enter the server JMX host name* (localhost ) : [Enter] __ Enter the server JMX port number* ( 8880 ) : 8879 [Enter] __ Enter your server username ( -- ) : [Enter] __ Enter your server password ( -- ) : [Enter] __ d. Once the configuration of the project is complete a confirmation message “WebSphere Rapid Deployment configuration completed” will appear. ____ 4. Start the WRD project. __ a. At the command prompt type: WRD.bat –monitor and press Enter. The command may take a minute to process. After it’s complete the following output will appear:
g Copynight IBM Corporation 2005. All nights reserved Note: Specifying the -monitor parameter will allow the console output to be directed at the command prompt window to detect error, success, and overall status messaging. A log file can also be used 5. Install an application using the WRD Auto App Install project just created a Open Windows Explorer and navigate to C: \LabFiles60IWRDLablWebSphere BankNoTransferEAR 6WebSphereBankNoTransferEAR 回区 Eile Edit View Favorites Tools Help d Desktop owebSphereBank 白 My Documents g My Comput 日 Local Disk(c) 由□DB2 中□ DB2CTLSV □DE2oG □ Documents and Settings 白□ Labiales60 □ Common 白□ WRDLab WebSphereBankNoTransferEAR Program Files 1 object(s)(Disk free space: 1.49 GB) 回 My Computer Proof of Technology L04-Web Sphere Deployment Automation and WRU 9of28
© Copyright IBM Corporation 2005. All rights reserved Proof of Technology L04 – WebSphere Deployment Automation and WRU Product Introduction + Exploration (PI+E) Page 9 of 28 Note: Specifying the –monitor parameter will allow the console output to be directed at the command prompt window to detect error, success, and overall status messaging. A log file can also be used. ____ 5. Install an application using the WRD Auto App Install project just created. __ a. Open Windows Explorer and navigate to C:\LabFiles60\WRDLab\WebSphereBankNoTransferEAR
b. Right-click on the file Web Bank. ear and choose Copy. Name sawebSph Open 211KB Open With 55 WinZip Send T Create shortcut C. Staying in Windows Explorer, navigate to C: WRDLAutolnstall directory File Edit yiew Favorites Tools Help Folders Address口 C: lWRD Autolnst Folders O webSphereBankNoTransferEAR 由 Websphere 白 PAGEFILE(D;) Compact Disc(E: Es instal on'sfmL d Paste the WebSphere Bank. ear file copied in step b above to the C WRD\Autolnstall Proof of Technology L04-Web Sphere Deployment Automation and WRU Page 10 of 28
© Copyright IBM Corporation 2005. All rights reserved Proof of Technology L04 – WebSphere Deployment Automation and WRU Product Introduction + Exploration (PI+E) Page 10 of 28 __ b. Right-click on the file WebSphereBank.ear and choose Copy. __ c. Staying in Windows Explorer, navigate to C:\WRD\AutoInstall directory. __ d. Paste the WebSphereBank.ear file copied in step b above to the C:\WRD\AutoInstall directory