vm intro demo

35
7/23/2019 VM Intro Demo http://slidepdf.com/reader/full/vm-intro-demo 1/35 Oracle® SOA Suite 11 Hands-On Workshop VM Intro / Demo / Deployment

Upload: blinking02

Post on 19-Feb-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 1/35

Oracle® SOA Suite 11

Hands-On WorkshopVM Intro / Demo / Deployment

Page 2: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 2/35

Before you begin

General notes:

1. All notable references, functions or actions to be performed by the student (forexample, text to be entered or buttons to click) are for the most part bolded.

2. There is a directory called /home/oracle/MyFiles on your file system. This includessample files, XSDs, and directories that ill be utili!ed durin" the orkshop.

3. #t is recommended that you allocate at least $%& of memory to runnin" this ima"e(The default) due to the number of runnin" components. So basically this is sayin" a'%& serer or laptop is minimal. Approx *%& of disk ill be re+uired for theexpanded files (%& -A- compressed).

4. Those ishin" to run a  Hosted / ersion ill need to place an 0T1 re+uest atetc.us.oracle.com

5. 1onnections to the 2eblo"ic Serer, &A3 Serer, 4dbc datasource references anddatabase schema used in the 5abs hae already been pre6created in the ima"e.#nformation on ho those ere set up is in the Appendix.doc file.

The following paths are where the software compoents are installed:

5o"in 78930 directory:   /home/oracle

9racle 2eblo"ic Serer (S9A Suite):   /home/oracle/Middleware/home_soa11g 9racle 2eblo"ic Serer (9S&):   /home/oracle/Middleware/osb_1031

Deeloper ...:   /home/oracle/Middleware/jdev11g 

Deeloper pro4ect files:   /home/oracle/jdeveloper/mywor Support files used in 5abs:   /home/oracle/My!iles

The sections in this document are:

tarting up the !M"are #mage

The $ermit Application cenario

%emoing the &ntire Flow

%eploying '(ompleted) *abs into +%e,eloper

tart up the !M"are #mage

S9A " 2orkshop ; <3 #ntro =

Page 3: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 3/35

-ote: This startup flow assumes you ha,e extracted the !M"are into a local

directory and are using one of the following to load and run it:

a) <32are 2orkstation .> or hi"her  b) <32are ?layer =.>.x or hi"her c) <32are Serer =.x or hi"her 

. Start up the ima"e by clickin" the tart this ,irtual machine/ link. (<32are

"orstatio# e%ample show# here)

=. # f your runnin" this ima"e on dual6core laptop or serer you can bump up the number 

of processors to to. . Double click on this line in &M"are

"orstatio# and make the chan"e. This ill "ie you a little more performance.

$. #f your runnin" the ima"e from &M"are 'layer  you can define to procesors byeditin" the &*01233gA.,mx file in the directory here you extracted theima"e. 1han"e the line that says numvcpus = "1" to numvcpus = "2".

Then brin" it up.

 

'. #f you "et the screen belo, select the # mo,ed it/ radio button and click 4 .

S9A " 2orkshop ; <3 #ntro $

Page 4: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 4/35

>. The <3 ill take a number of minutes to start. ?art of the startup flo is the 9racleX0 Database that stores metadata for 9racleS9A Suite and has the schema referencedin the labs to store data for the ?emit Applications bein" re+uested. After the ima"estarts you should see a screen like the folloin":

. Start the 2eblo"ic Applicaton Serer by double6clickin" 5  ri"ht6clickin" on thetart/top "eblogic er,er6s7/ desktop icon and selectin" pen/.

S9A " 2orkshop ; <3 #ntro '

Page 5: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 5/35

*. At the prompt click 4 . ((tart is the de)ault )

@. At the next prompt take the default *admi#) and click 4 .

. After * ; minutes you should see the Admin serer started. 1lick (lose.

S9A " 2orkshop ; <3 #ntro >

Page 6: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 6/35

B. Status is displayed. 1lick (lose.

. Cou can no do the demo flo.

Permit Application Scenario

or the remainder of the orkshop, you ill focus on buildin" out the scenario shon inthe folloin" +omposite ,pplicatio# dia"ram. This composite definition is defined and

S9A " 2orkshop ; <3 #ntro

Page 7: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 7/35

desi"ned in 9racle Deeloper. #t follos the industry standard S1A ((ervices

+ompo#e#t ,rchitecture-. S1A is a set of specifications, hich describe a model for buildin" applications and systems usin" a Serice69riented Architecture. S1A extendsand complements prior approaches to implementin" serices, and S1A builds on openstandards such as 2eb Serices.

This process is a ?ermit Application scenario for receiin" and handlin" permit re+uests.

The aboe dia"ram shos a real orld scenario simple enou"h that it can be completeddurin" the orkshop. The folloin" proides a brief oerie of the scenario:

• 9n the left hand of the dia"ram to data inputs exist to send permit application

data to the (omposite Application flo:. Batch File #nput (multiple re+uests are placed ia comma delimited

file (.cs)=. An exposed A$ interface to take an X35 payload in.

• The Mediator components are responsible of any routin" and transformations

that need to take place.

• The 5ules component is responsible for checkin" a local Dictionary and doin" an

ealuation on data alues passed in.

S9A " 2orkshop ; <3 #ntro *

Page 8: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 8/35

• The 8uman "or9flow component is called heneer a response from ealuatin"

a rule says that approal is re+uired. The end users "o into a &(usiness) ?(rocess)3(odel) 2orklist application to A$$5!& or 5&+&(T re+uests.

• The BAM ( usi#ess ,ctivity Mo#itori#g   component is fed from initial data sent

into the 'ermit,pp# 3editor. The real time dashboard displays the results.

• The B$&* process component proides the business lo"ic and orchestration for

handlin" permit applications. or each re+uest a +redit(core eb serice is calledand returns a alue based on the first character of the SSE of the input payload.The credit scores are sent to the rules en"ine for ealuation. The result of the ruleill be ,uto,pprove, ,pproval euired , or e#ied . #f Approal -e+uired/ isreturned, a 8uman 2orkflo ill be executed to allo a permit reieer tomanually A??-9<0 or -001T the application re+uest. The &?05 process endsith data a"ain bein" sent to &A3 (pdates the status o) the reuest ) and arious portions of the payload are ritten to three database tables.

• 9n the ri"ht hand side of the dia"ram, the serices that are needed by the &?05

 process are identified.a. $ermit%B ; 0xternal reference to rite three database tables ( Master

  etail relatio#ships). b. (reditcore ; 0xternal 2eb Serice created from a 2SD5 definition

and deployed to the application serer.c. $ermit% ; 0xternal 2eb Serice interface into the &A3 data ob4ect

that eFre insertin" or updatin".

%emoing the &ntire Flow

"e are going to bring up the BAM %ashboard and test the application. "e will open

a precreated report based on the BAM %atab;ect we are populating from the

composite. ince your !M could be hosted or standalone the hostname of the !M

may be different. o< we will use the #$ address assigned to your !M and use this in

the 05* to bring up the dashbord.

S9A " 2orkshop ; <3 #ntro @

Page 9: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 9/35

1.  &rin" up a Terminal indo by double clickin" the Desktop icon 9- by ri"htclickin" and selectin" pen/.

2. -un the command /sbin/ifconfig and rite don the #? address for your ima"e: ( #this e%ample its6 172.189.148.3)

3. CouFll hae to place your <3 in a 2indo/ instead of ull Screen/. 2e need to dothis because this ersion of &A3 re+uires #0* for the console. 3ouse up to the topcenter of the <3 screen and a drop don ill appear. 1lick the #n a "indow/ icon:

4.  Eo, ell "o to our 2indos 9S enironment and brin" up the ,M ,ctive &iewer  to look at our dashboard. At this point no data exists. 9pen #0* *#ter#et :%plorer )and "o the G-5 http:HH=.@.'.$:*BBH9racle&A3

5. ubtitute your #$ address in place of the example aboe here if itFs different. 5o" inusin" weblogic passord: welcome3.

S9A " 2orkshop ; <3 #ntro

Page 10: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 10/35

6. 1lick on the Acti,e !iewer button

7. 2hen Actier <ieer indo comes up, resi=e it so youFll be able to "o back andforth beteen it and the <3 ima"e indo durin" testin". 1lick on elect 5eport.

S9A " 2orkshop ; <3 #ntro B

Page 11: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 11/35

8. 1lick on the second folder on the left, hared 5eports.

9. #n the (elect a eport dialo". Select $ermit "or9shop %ashboard and click 4 .

S9A " 2orkshop ; <3 #ntro

Page 12: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 12/35

10. The dashboard ill run and you should see the folloin":

11. &ack inside the <3 ima"e brin" up the irefox broser by double clickin" on theDesktop icon 9- by ri"ht clickin" and selectin" pen/.

S9A " 2orkshop ; <3 #ntro =

Page 13: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 13/35

12. 9nce the broser is up select the &nterprise Manager ast5ink from the toolbar.

13. 5o"in usin" weblogic/welcome3

14. After a minute or so the 0nterprise 3ana"er main dashboard comes up shoin" thedomains in this installationI in our case domain.

15. Eai"ate don to Farm2domain3 A soainfra $ermitApp(omposite and

click this link.

16. 1lick the Test button.

17. Eo, e ill cut and paste a test/ payload into the broser. 3inimi!e the broserand open a terminal indo on the 5inux desktop usin" the icon.

S9A " 2orkshop ; <3 #ntro $

Page 14: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 14/35

18. 1han"e directory into 3yiles ( cd My> ) and type: gedit ample$ermit".xml

?hit 5eturn/&nter@

19. rom the "edit indo select &dit elect All and then select &dit (opy.

Minimi=e the terminal indo.

20. %o back to the broser and scroll don toards the bottom ere you see the  #put ,rgume#ts/ section. #n this section choose M* !iew.

21. -i"ht click anyhere inside the ar"ument pane and choose elect All. The test payload ill be hi"hli"hted.

S9A " 2orkshop ; <3 #ntro '

Page 15: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 15/35

22. 8old don the J1trlK key on the keyboard and type /. This ill paste the contents

you copied from ithin the "edit session. 1lick the button.

23. ;he )irst time this is ru# a)ter a# ,pplicatio# (erver startup< it may tae a mi#ute or

 so to i#sta#tiate all o) the )low logic. (ubsuue#t e%ecutio#s will be uicer . Thecomposite flo ill execute and a response ill be displayed:

S9A " 2orkshop ; <3 #ntro >

Page 16: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 16/35

24. 1lick the $ermitApp(omposite link under Farm32domain3 A soainfra.

Then select the most recently completed instance. #n the case belo #D L =BBBB.

25. The Trace flo shos the components that executed and their status.

S9A " 2orkshop ; <3 #ntro

Page 17: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 17/35

26. Selectin" the $ermitApp#n mediator link brin"s up the flo of execution throu"h the3ediator component. 0xpand the payload/ for the  #put payload received /. Thisill sho hat came into the 3ediator in addition to 8eader information:

27. 0xpandin" the response payload that came back from the &?05 process shos theinstance#D that as "enerated for this &?05 execution:

S9A " 2orkshop ; <3 #ntro *

Page 18: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 18/35

28. eceived respo#se )rom operatio# =e%ecute= o) service

='ermit'rocess.permitprocess_clie#t= 

29. 1lose the indo, click on the #nstance #% link a"ain and select the $ermit$rocess &?05 component.

30. 1lick on the Flow tab. This shos the actual &?05 actiities that executed.

31. Selectin" any of the actiities in the flo ill sho you the state of the X35 payload bein" handled by that actiity. or example, the recei,e#nput shos the input payload sent from the 3ediator.

S9A " 2orkshop ; <3 #ntro @

Page 19: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 19/35

32. Selectin" the #voe_+redit(core actiity shos the SSE bein" sent to the 2ebSerice and the response of C3. (lose the pop up.

33. Selectin" the reply>utput  actiity shos the response sent back to the ?ermitApp#nmediator component.

S9A " 2orkshop ; <3 #ntro

Page 20: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 20/35

34. %o back to the &A3 dashboard and you ill see a record has been inserted into theunderlyin" 'ermitata Data9b4ect. The #sta#ce  in this case is CDDD3 hich isthe instance #D of the composite executed. The permit re+uest as  ,tuo ,pproved   based on the content of the payload comin" in.

 

35. Eo, eFll test the &atch ile input. &ack in the <3 ima"e close the Trace loindos. Minimi=e the broser indo and open up another Terminal indo fromthe Desktop. 1han"e directory into 3yilesHfilesHin ( cd My>/files/in )

36. Type ' cp ../../permit.cs, . (Eote: #nclude the M.F) and hit return. This ill copy a

sample comma delimited file to the current directory. The file contains seen recordsand should be picked up ithin B seconds.

S9A " 2orkshop ; <3 #ntro =B

Page 21: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 21/35

37. #mmediately return to the &A3 ?ermit dashboard to see any updatin" takin" place.As soon as the file is picked up and processed you ill see the dashboard react.-ecall that seen ne records are added. Three of the re+uests still need to beapproed or re4ected as indicated dby the number of # 'rocess records in the ,pplicatio# ispositio# ie.

38. &ack in the <3 ima"e e ill no use B$M "or9list to complete the # 'rocess re+uests. Cou ill A$$5!& one of the re+uests and 5&+&(T the other two.

39. rom the broser ri"ht click B$M "or9list from the !ast?i#  menu and selectpen in a -ew Tab/.

S9A " 2orkshop ; <3 #ntro =

Page 22: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 22/35

40. 5o" in as weblogic/welcome3

41. CouFll notice three permit re+uests aitin" for approal or re4ection. These ere threeout of the seen re+uests in the batch file hos credit score started ith the number

C/ and thus the -ules en"ined returned the  ,pproval euired / status. 8uman2orkflo inoked and no itFs in your hands. 1lick on the topmost re+uest to seedetails. @>;:6;he )irst time this optio# is e%ecuted it may tae a mi#ute to i#sta#tiatea#d display i# the lower pa#el.

42. #n the details section you can erify the SSE of the re+uest:

43. Approe the re+uest by clickin" the Appo,e button:

S9A " 2orkshop ; <3 #ntro ==

Page 23: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 23/35

44. The instance flo ill be completed the the re+uest ill be remoed from the tasksaitin" on action.

45. Select and 5&+&(T the to remainin" tasks.

46. %o to the &A3 ?ermit dashboard to check the updated status of these three re+uests.

47. Maximi=e the <3 ima"e indo as e are done ith the &A3 dashboard.

48.%o to the broser and click the soainfra 6Adminer,er7 link to see the most recentinstances. CouFll notice that there are * ne executions that took place and completed.#f you ould like to drill into the flo details of a "ien instance feel free to do so.Cou can l5ook at the arious payload alues returned durin" these executions.

S9A " 2orkshop ; <3 #ntro =$

Page 24: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 24/35

49. or example, the returned alues from the inoked +redit (core eb serice illsho differnet returned alues dependin" on the first character of the SSE (1 A 593<

2 A 844< 3 A B21)

50. 0x: SSE starts ith : (output show# )rom !low page o) #voe_+redit(core step)

51. 0x: SSE starts ith =: (output show# )rom ,udit ;rail page o) the #voe_+redit(core

 step)

S9A " 2orkshop ; <3 #ntro ='

Page 25: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 25/35

52. inally, eFll look at data ritten into the database tables. 9pen up +%e,eloper 33g  by double clickin" on the Desktop icon 9- ri"ht clickin" the icon and selectin"pen/.

53. 1lick the atabase @avigator  icon.

54. Eai"ate don to #%& (onnections soademo Tables. This ill reeal the

 precreated database tables set up for this orkshop. ( @>;:6 #)o o# the creatio# o)

the database schema is i# the ,ppe#di%.doc)

S9A " 2orkshop ; <3 #ntro =>

Page 26: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 26/35

 

55. Double click the Applicant table. Then select the %ata tab all the bottom of theindo that comes up.

56. The ei"ht ?ermit re+uests that hae been submitted and completed up to this point areshon (>#e )rom the CM? cutDa#dDpaste a#d seve# via the batch )ile)

A??5#1AET

57. 5ook at the data contained in the ,:(( and ':M;,''?+,;>@  tables.

S9A " 2orkshop ; <3 #ntro =

Page 27: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 27/35

ADD-0SS

?0-3#TA??5#1AT#9E (first half)

?0-3#TA??5#1AT#9E (second half)

Deployin" 1ompleted/ 5abs into Deeloper 

S9A " 2orkshop ; <3 #ntro =*

Page 28: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 28/35

#n this section e ill sho ho to re6deploy any of the completed 5abs in thisorkshop in case some people anted to start from a particular spot or maybe they 4ustneed to catch up because they are stuck.

-T&: #f you ha,e not yet created the A"or9shop application in +%e,eloper

then s9ip to tep E

3. #f you hae already done some ork in Deeloper e need to first delete your

current application. #f itFs not already runnin" start +%e,eloper 33g by double6clickin" 5  ri"ht6clickin" and selectin" pen/.

C. -i"ht click on the A"or9shop application in the ,pplicatio# @avigator tab andclick %elete Application.

 @>;:6 ) your replaci#g the +redit(core applicatio#< the# substitute its #ame herei#stead o) (>,"orshop. "e will be usi#g (>,"orshop as the e%maple i# this

docume#t.

1. 1lick es at the +om)irm elete ,pplicatio# prompt.

S9A " 2orkshop ; <3 #ntro =@

Page 29: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 29/35

. 1lick es at the next prompt.

. Minimi=e Deeloper.

E. Double click on the Terminal Desktop icon or ri"ht click on it and select pen/.

. 1han"e directory to /home/oracle/jdeveloper/mywor N cd ;de,>/my>

H. 0xecute a ls/ command to see the directory contents:

S9A " 2orkshop ; <3 #ntro =

Page 30: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 30/35

I. #f you hae already done ork on the 1reditScore or S9A2orkshop applications thenthose directories may still be on the filesyatem.

 3D. Delete any remainin" references by executin"N rm Jrf A"or9hop (0xact match,

no wildcardsEE)

An ls/ shos:

33. 0n=ip the completed 5ab of your choice ( :%ampleF +redit(core_?ab1.Gip<

(>,"orshop_?ab5_+ompleted.Gip< etc)

0xample:

3C. %o back to Deeloper and select File pen from the menu bar. Browse to the

 /home/oracle/jdeveloper/mywor/(>,"orshop or +redit(core directory dependin"on hat you extracted. #n this case itFs the S9A2orkshop directory. 1lick pen.

S9A " 2orkshop ; <3 #ntro $B

Page 31: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 31/35

+lic > a#d Ies to a#y Migratio# staus prompts you may receive.

31. The last step is to deploy the 1omposite. ( @>;:6 ;he +redit(core a#d (>,"orshopcomposites deploy the same way).

or this example e are "oin" to deploy the $ermitApp(omposite pro4ect in the(>,"orshop application.

 

3. -i"ht click on the $ermitApp(omposite pro4ect in the ,pplicatio# @avigator  andselect %eploy $ermitApp(omposite to *ocalApper,er

3. #n the (>, eployme#t +o#)iguratio# ialog / select the checkbox marked,erwrite any existing composites with the same re,ision #%/ and click 4 .

S9A " 2orkshop ; <3 #ntro $

Page 32: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 32/35

3E. After the composite successfully compiles you may be prompted for credentials to the2eblo"ic application serer. 0nter weblogic/welcome3 at the prompt and click 4 .

S9A " 2orkshop ; <3 #ntro $=

Page 33: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 33/35

6-T&: Any warnings displayed are 4 as these are simple string to int datatype

con,ersions that are handled fine during execution7

3. #n the A tab the lo" should sho a successful build and in the %eployment tab the

lo" should sho a successful deployment.

3H. #f you are redeployin" 5ab > or 5ab they include 8uman 2orkflo. The Task orm"enerated and used in the &?3 2orklist application is in a separate pro4ect in theS9A2orkshop apllication and is deployed in a different ay.

#n the ,pplicatio# @avigator  tab click on the $ermitTas9Form pro4ect ithin the(>,"orshop application.

S9A " 2orkshop ; <3 #ntro $$

Page 34: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 34/35

3I. rom the Deeloper menu bar selectApplication %eploy $ermitTas9Form to *ocalApper,er

CD. #f this Taskorm is already on the application serer you ill be prompted tocomfirm. 1lick es.

S9A " 2orkshop ; <3 #ntro $'

Page 35: VM Intro Demo

7/23/2019 VM Intro Demo

http://slidepdf.com/reader/full/vm-intro-demo 35/35

C3. #n the Deployment tab the lo" should sho a successful deployment:

CC. Deployments are no finished.