Lab lmplementation
Complete the lab exercises that tbllow to implement the Credit Check
Web Service.
Notes
Overview
In this lab you generate a Web Service fiom an existing business process.
Objectives
t Generate Credit Check Service, page 104
t Test Credit Check Service, page 107
Prerequisites
r TIBCO Sofiware installed and configured on your userXX machine:
a Runtime Agent (TRA) 5.5.0
a Administrator 5.4.0 (userXX domain created)
a BusinessWorks 5.4.0
a EMS 4.4.0 (added to the userXX domain)
r Connectivity to the EDUSVR instructor server fbr:
a BWP Home Page at httsp: / / eduswr :8080 /bw/index.html
a Oracle Database
r C:\BWEDU lab files
r Completion of previous lab exercises
Directions
Complete the exercises that fbllow.
Steps
Analysis: This connection provides the transport for the Web Service. BW
supports HTTP and JMS for transporting SOAP messages.
r Name: SOAPSeTveTHTTP
r Host: VoVobwplhost.NameTo Vo (delete the detault value localhost and replace with this
global variable, see "To do this" below)
r Port:7575
trpo dType
l/BWP.Cof e/BÈtuiceslCredÌtCheckrlnleface
3. Save the concrete WSDL file ior use by clients to call the Credit Check SOAP Service.
O Click Save WSDL and save this WSDL to project fblder C:\BWEDI-AbwpXX\
BWP.core\Services\CreditCheck\Contract with the l'ile nan.re
Credi tCheckServí ce_Concre ÈeWSDL (case sensitive)
r To display the saved WSDL fìle, tiom the Project tree select fblder Contract then fiom the
Designer menu bar selecf Resources > Refresh
Overview
Te.stCreclitChect is a simple client to the CreditClteckService used to test this service. As a client to
the service. TestCreditCheck uscs thÈ concrete WSDL fìle to call the service.
Steps
- Element: CreditCheckRequest
3. Call the CreditCheckSe rvlce process by configuring the SOAP Request Reply activity.
Configuration tab:
a Name: Invoke Credit,CheckService
a Servicc: Browse to and select resource /BWP.Core/Services/CreditCheck/Contract/
CreditCheckService ConcreteWSDL
lnput tab. map:
a inputMessage/CreditCheckRcquest: $start/crediÈCheckRequest
- Mappin.g Wizartl'. Select "Make a copy of CreditCheckRequest" and click Finish
OLúput tab. verify:
a outputMessage/CreditCheckResult/Status is returned
4. Return the result of the credit check by confìguring the E,nd activity.
G*nu*-W
Start truote End
CreditCheckService
I Validate the projcct and dcbug any errors (Project > Validate Project For Deployment')
I In the Pro.jecl tree selcct process BWP.Core/Services/CreditCheck/UnitTest/
TestCreditCheck so that it is in vrew
Tester tab'.
a Click the green arrow icon, bringing up the "Select Process to Load" dialog
a Click Clear All. check only the fbllowing components then click Load Selected:
BWP.Core/Scrvices/CreditCheck/Interiace/intfPerformCreditCheck-service
- B WP.Core/Scrvices/CreditCheck/Uni tTest/TestCreditCheck
Create a.job instance ol'the leslCreditClteck process and test 1'or "Accepted" and
"Rejected" credit checks usin-g the fbllowing data:
confqùralíùnlhputEditorlrnsutirnorscle*ae!proeesiDak lnpdDrhlErnorlput
' . enus ! Co jl
ilenl SourP
l.
-ns0.Cred lCner€esu
'' ?nsÙcreddchE r:::'::'
Notes
Topics
t Objecrives, page I l2
. Knowledge
. Explain BW deployment techniques
. Define runtime components and environment
. Describe application deployment and management
. Skills
. Validate a project and build enterprise archive
. Configureapplication deployment
. Deploy. manage and monitor process application
. Manage domain resources and users
Objectives
Afier completing this unit you will know:
r Key f'eatures and requirements of the BusinessWorks deployment
environment
I What deployment means in context of BusinessWorks
r What BusinessWorks components can be deployed
r How to confìgure a project component fbr deployment
r How to deploy a project componcnt
r What monitoring infbrmation is provided by default and how to
customize monitoring
r How to manage domain users and resources using the
Administrator interfàce
Designer
r \l: lidrta nr^ia.t
. Configure deployrnenl and build archivs
Administrator
. Upload archive .configure application
. Deploy and run
. Manage and monitor
Deployment Steps
Deployment is a two step process: first you design and test your
pro.ject using Designer. and then. still usin_e Designer, you create the
project archive deployment package.
rr=JlT .eJ-?J
Fovid 4 Èrofs and 1 0 wamìnqs
. tAn Contents
. Pnocess archives
. Shared archives
-. Audprer
A/"1-^+^r drur
-r^1^'ltVgS
. Designer options
. Tools > Create Project EAR for quick archiving
* Confisure nranually using deployment palettes
-
u é
Application Deployment in
Administrator
TIBCO Administrator is a browser-based GUI fbr managing the
TIBCO domain. You can use the interface to add, modify or delete
user authorization entries tbr the domain. You can also monitor and
manage domain services such as the Administrator Server and Project
Repository Server. In addition. you can monitor and ntanage any
deployments registered with the domain. Deployment components
that can be monitored and n.ranaged include BusinessWorks process
engine instances and BusinessWorks-supported TIBCO Adapters.
You can monitor at either a component or machine granularity. You
can examine and search fbr specitìc entries in the trace files fbr any of
the services in the domain. TIBCO Adrninistrator also provides
running statistics of the number of jobs in the BusinessWorks engine,
throughput and.lob-level tracing.
. Basic
. Applicationparameters
. Service settings E ? ordùph.è:;io'
. Target machines E S
s! ererdÈfilbJíot,o. 3r,
q,
l: + ù,de,F'oièi;rnoEno,ne !rr
. Advanced f eous,
":e
-
. After
Deploying
TIBCO Administrator creates a deployable applicatitrn in two steps:
r Upload the deployable application's EAR file
r Set deploymcnt parameters and creatc a deployment
ffiÎjÍffiiii?ffiÌllliiiiillili!ffitrffi31iÌlilllliffi.?triÍiíit@,,* !ffiiiiÌi;iilffitrffitriliììliiliiil[ffiffii,ffl1;:ÉaTliÍllÍiiii
n-clD!3hè n'l re
r,s"ùo,, f -!Bar..
'l'l
Page I 20 BCO Etl ucation Prutgrarrts
Urtit 5: Dcplu.tnt(nt rut(l Mttrtttg,'tnertl
Manage
. Stafi I stOp
* View detaiis
. Add software
. Perforrn tracìng
. View active processes
. Set access
Domain Communications
r Users
. Create and rnanage
: .-r***
-
l-l r S- User Man.=':er-FrEnr
f*
. Roles '1
lJser=
. Create and manage
!'--,-r;
. oé, Rales
.:.t*W
Set authorization
. Assign to users ì q, Authoric.rtian
. Authorization
' Grant access to:
* BW projects (reposilo4y data)
- TIBCO Administrator Ul
User Management
In Administrator the User Management module provides security
over domain users.
The Users module enables administrators to create domain user
accounts. The administrator can create and remove users or search
existing users and edit their domain log in credentials (name /
password).
By default the root administrator has iull access privileges. The root
administrator can grant full access to other users or can authorize
partial access to the Admin UI and Data. New users created by the
administrator must be granted authorization privileges befbre they can
log in to TIBCO Adminisrraror.
u lnventory 0f installed
software
i*î::i*ffi::=î:ll##
O g r.r.!{(,a,.(-o{*,,":r3
!e?4qq:e'4
r A :rro. :.,",.,,..,,,,"..,",
r f n*jLilnd-.i-ri..É---
r e.ru
'f
Page 126 I BC O EtLuccrt io n P ro g rcu n s
Unit 5: Deplot,ment and Mutagentent
!s'iÉ;iìi j7
:= rottv ne v r : weu repnd (:NL.-no. iúmeF.!€l
P.f.hdrèù"ner r.d
lt Nattv r,è ?: Éúè |
,lr€e-J
ÍÀ* ùdd r-iiia : i Éq'rirì;ii r*b{r J.-intli at4i lidirlld lit À'tfd iiF+sd !,:iì,: {!';ùdE ; t t:=iii ;
-:::::::.::::-:::;:'. :,' :
.gj9j,.-!!:9:::::2:
,o"e j rui*.,*, j s*uu*.. I rlqlt4qtq I qqletq,,I qrreqllrtr, I
i:.:
-:
Ladch4.d: 'l€. ll. l: lf jÌ:5 u
Clmltr húJ ùpL,ad 'i Dry!!/Cr:Irlh. !kS-,Mr.
. TIBCO Adminìstrator
* Configure deployment
* Deploy and monitor
. TIBCO XML Canon
- Version cOntro,
- View and compare assets
Lab lntroduction
In the lab that fbllows you learn to deploy and manage a
Busi nessWorks orocess.
Notes
Overview
In this lab you configure and deploy your BusinessWorks project and practice fundamental
application managcment and monitoring techniqucs using TIBCO Administretor.
Objectives
t Archive Credit Check Service.for DepLoym.ent, page 132
t Deploy Credit Check Service, page 13,1
Prerequisites
r TIBCO Sofìware pre-installed and configured on your userXX ntachine:
a Runtime Agent (TRA) 5.5.0
I Administrator 5.4.0 (userXX domain created)
a BusinessWorks 5.4.0
a EMS 4.4.0 (added to the trserXX dom.ain')
r Connectivity to the EDUSVR instructor server fbr:
a BWP Home Page ht.Èp z / /edusvrt8080/bw/ index.html
a Oracle Database
a TIBCO XML Canon http: / / edusvr: 9983
r C:\BWEDU lab fìles
r Completion of previous lab exercises
Directions
Comolete the tasks that fbllow.
Steps
r From the Designer menu select Tools > Create Project EAR
a An Enterprise Archive resource named bwpXX is added to the project at the root level
a For organization, drag this resource to the project U)eployments tblder
r Select the \Deployments\bwpXX enterprise archive resource and contìgure it:
O Name: bwpXX (leave as is)
a File Location: C: \bwpXX. ear
a Include all service level elobal variables: checked
r Double-click the Enterprise Archive resource to open it and display the Process and Shared
Arc hiv e s deployment containers
Analysis: T\e Shared Archive isbuitt by dgfault and auto-populated with all
shared components required by the Process or Adapter archive.
p:';J . :
hwpllE
5-il e-.n,p.,:0..*
li*:*i Ser'rice:i
l'+i cre,iit0heck
*
:l ,r.li lnlprferp
*-
$,dri
,.:Ol4:
Steps
I Start > Programs > TIBCO > TIBCO Administrator Enterprise Edition 5.4 > TIBCO
Administrator
Analysis: The EAR file is used only for deployment and can be deleted after
deployment. Changes made to the EAR file after deployment are not
automatically propagated to the deployed project, this requires re-uploading the
updated EAR file and redeploying the applicafion via Administrator.
5. In the Configuration Builder, verity that the process is deployed and troubleshoot as
necessary.
Steps
Analysis: From this view lhe status all TIBCO service instances can be monitored
and rianased. For examnle. in addition to the process service, vou should also see
that the TIBCO Administrator service appears and is listed as Running. (And. if
you EMS Server is not already running. you can start it from here as well!)
Analysis: This file is a rewrite of the ear file as a repository file (*.dat). When
deployed. the domain admin server has a copy oI the deployment delinition in this
Aai nte which is used to initialize the componen, u, ,,urrrp. The name of the
DOMAIN appears here twice. both as a folder and as the first part of rhe file
name. The second part of the dat file name is the name of the EAR.
I On the client machine where the TIBCO application (engine or adapter) is deployed to:
C : \ t ibc o \ t ra \ doma in\ DOMAI N_NAME \ app I i c a t i on \ DE PLOYMENT_FOLDE
R NAME\ENTERPRISE ARCHTVE NAME-PROCESS A,RCHIVE NA,ME.CInd
Analysís: A one linc script to start the BW engine. For initial debugging of a
deployed componcnt this script can be used to start the component. This should
be done in a command window in order to see stderr startup messages even if
it will not start.
On the client machine the TIBCO application (engine or adaprer) is deployed to:
C:\ t ibco\ tra\domain\oOuarN_NAME \appI icat ion\DEPLOYMENT_FOLDE
R NAME\ENTERPRTSE ARCHIVE NA,ME- PROCESS ARCHIVE NAME.TTA
Analysis: A text file containing startup information used by the startup script
(CMb file) to obtain deploy"igW configuration intormation frorn in"
admin server. This file also defines "ngin.
the-working !nvironmenr for this componenr.
Steps
t. Check yorn bwpXX project into TIBCO XML Canon (running on the instructor server).
I From the Designer menu of your bwpXX project, select Project > Save As
T Select the XML Canon tab and confìgure the connection as fbllows:
a For the XML Canon category, click Browse
a In the "Browse fbr Project Folder" dialog:
- In the http:l/ fìeld enter eduswr: 99 83
- Click Connect
a If prompted, provide your userxX credentials and click OK
You should now have a WebDAV connection to the XML Canon Server tiom Designer
evidenced by the userXX category (and others) to which you have access in Canon:
2. Create a new Canon child category named bwpXX and save your prolect t0 lt.
I In the ''Browse For Pro.iect Folder" dialog, double-click the userXX category
r Click the New Folder icon at the upper right of the dialog
r Name the new folder the same as your project: bwpxx (replace XX with your lD)
r Click OK to create the l'older: you should now see fblder /userXX/bwpXX
r Highlight the bw'pXX fbldcr and click Select Folder
r Back at the "Savc Project" dialog, verify that your XML Canon Category is listed as:
http : / / edwswr : 9 983 /userxx/bwpxx/
r Click OK to save the proìect to Canon
3. Your project is now saved to Canon, clr is it? Verify at http://edusvr:9983 as userXX.
r Using Internet E,rpLorer, access the XML Canon desktop using the tbllowing URL:
http: / /edusvr:9983
r Provide your userXX credentials and click Submit to login into Canon
r From the Canon home page select Brow.re > Categories
r Expand the userXX category; you should see that it contains the child category bwpXX
r Select the bwpXX category; you should see that it is...empty; Why'l Because you have not
yet checked the project ì:esources into XML Canon
r In Designer you now should see locks on all project fblders and resources
a An asterisk next to each asset indicates that it has been anal,v-zed by Canon
Analysis: Canon analyzes XML documents for version control and differencing.
Non-XML documents can bc stored and versioned by Canon but are not analyzed.