Running BW6 AppNode as a Windows service.

Running BW6 AppNode as a Windows service.

book

Article ID: KB0073267

calendar_today

Updated On:

Products

TIBCO ActiveMatrix BusinessWorks Not Applicable

Description


Steps to run BW6 AppNode as a Windows service.

Issue/Introduction

Running BW6 AppNode as a Windows service.

Resolution

TIBCO BusinessWorks 6.x ships with a utility named "pwrap" which can be used to create a Windows Service.

1). Copy pwrap.exe from "C:\<tibcohome>\tools\wrapper\64\pwrap.exe" to "C:\<tibcohome>\bw\6.2\domains\<domain>\appnodes\<appSpace>\<appNode>\bin" folder.

2). Rename "C:\<tibcohome>\bw\6.2\domains\<domain>\appnodes\<appSpace>\<appNode>\bin\<appnode>.exe" to C:\<tibcohome>\bw\6.2\domains\<domain>\appnodes\<appSpace>\<appNode>\bin\<appnode>.exe_old .

3). Rename C:\tibcobw62\bw\6.2\bin\pwrap.exe" to C:\<tibcohome>\bw\6.2\domains\test\appnodes\<appSpace>\<appNode>\bin\<appnode>.exe .

4). Edit "C:\<tibcohome>\bw\6.2\domains\test\appnodes\<appSpace>\<appNode>\bin\<appnode>.tra" and add the following line at the end.

ntservice.name=AppNode_NT
ntservice.binary.path.absolute=C:\<tibcohome>\bw\6.2\domains\<domain>\appnodes\<appSpace>\<appNode>\bin\<appnode>.exe
application.args=-config c:/<tibcohome>/bw/6.2/domains/<domain>/appnodes/<appnode>/<node>/config.ini start

5). Open a command prompt as admin and run the following command from "C:\<tibcohome>\bw\6.2\domains\<domain>\appnodes\<appSpace>\<appNode>\bin" .

<appnode>.exe --install

6). The appnode is registered as a Windows service under "AppNode_NT" .
7).  Traverse to the below path and take the backup of startBWAppNode.bat and stopBWAppNode.bat
C:\<tibcohome>\bw\6.2\domains\<domain>\appnodes\<appSpace>\<appNode>\bin
8). Replace the content of startBWAppNode.bat by adding below properties:

NET START AppNode_NT

9). Replace the content of stopBWAppNode by adding below properties:

NET STOP AppNode_NT

10). Start the service.

11). Note that stopping the service will take some time to get status reflected in TEA or BWAdmin.