Oracle Service Bus 12c - Administration Ed 1 (Activity Guide)
Oracle Service Bus 12c - Administration Ed 1 (Activity Guide)
Oracle Service Bus 12c - Administration Ed 1 (Activity Guide)
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Oracle Service Bus 12c:
Administration
Activity Guide
D88517GC10
Edition 1.0 | July 2015 | D91946
Learn more from Oracle University at oracle.com/education/
Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Disclaimer
This document contains proprietary information and is protected by copyright and other intellectual property laws. You may copy and
print this document solely for your own use in an Oracle training course. The document may not be modified or altered in any way.
Except where your use constitutes "fair use" under copyright law, you may not use, share, download, upload, copy, print, display,
perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part without the express authorization
of Oracle.
Unauthorized reproduction or distribution prohibited Copyright 2016, Oracle and/or its affiliates
The information contained in this document is subject to change without notice. If you find any problems in the document, please
report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not
warranted to be error-free.
If this documentation is delivered to the United States Government or anyone using the documentation on behalf of the United
States Government, the following notice is applicable:
Trademark Notice s a
h a
c l)
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective
l
nte uide
owners.
Author
e
@ nt G
e z
u tude
Cindy Church
s q
Technical Contributors and Reviewers ( f cva this S
Mary Peek, Takyiu Liu, David J. Mills, Irise
Li,
a Wunderlich,
dRobert se Matt Slingsby, Jay Kasi,
Armando Hernandez, William Prewitt t a t o u
C as nse
Editors
u e z lice
Smita Kommini, Raj
sqKumar,
a b le Abraham
Nikita
e V fer
l
Graphic
e i p
Designer
a n s
F Bopaiah
Seema n -t r
n o
Publisher
Jobi Varghese, Jayanthy Keshavamurthy
Practices for Lesson 2: Getting Started with Oracle Service Bus ...............................................................2-1
Practices for Lesson 2....................................................................................................................................2-2
Practices for Lesson 3: Installing Oracle Service Bus 12c ..........................................................................3-1
Practices for Lesson 3: Overview ...................................................................................................................3-2
Practice 3-1: Installing Oracle Service Bus 12c .............................................................................................3-3
Practice 3-2: Installing Service Bus Schemas by Using the Repository Creation Utility .................................3-9
Practice 3-3: Creating a WebLogic Domain for Oracle Service Bus...............................................................3-15
Practice 3-4: Deploying Web Service Applications.........................................................................................3-25
Practice Solutions ..........................................................................................................................................3-27
Practices for Lesson 4: Service Bus Administration Tools .........................................................................4-1
s a
)h
Practices for Lesson 4: Overview ...................................................................................................................4-2 a
c l
n t el ide
Practice 4-1: Testing a SOAP-Based Pipeline ...............................................................................................4-3
Solution Instructions .......................................................................................................................................4-12
@ e G u
ez den
Practices for Lesson 5: Service Bus Management Fundamentals ..............................................................5-1 t
q u
Practices for Lesson 5: Overview ...................................................................................................................5-2
s tu
v a S
Practice 5-1: Managing Service Bus Sessions ...............................................................................................5-3
(fc e this
Practice 5-2: Customizing a Service Bus Configuration .................................................................................5-9
a
Practice 5-3: Managing Service Bus Using WLST
d us
e.........................................................................................5-16
(Optional) Practice 5-4: Propagating a Service
s t a Bus
e to .................................................................5-22
Configuration
a
C cens
Solution Instructions .......................................................................................................................................5-30
Practices for Lesson 6: Reporting
z
ue ...................................................................................................................6-2
li
and Monitoring .......................................................................................6-1
s q l e
e
Practice 6-1: V fService
Practices for Lesson 6:
Monitoring rabHealth .........................................................................................................6-3
Overview
e
e l ip6-2: Defining
a n sService-Level Agreements ..........................................................................................6-9
Practice
F n-Analyzing
Practice 6-3:
t r Service Bus Reports .................................................................................................6-18
n o
Solution Instructions .......................................................................................................................................6-22
Practices for Lesson 7: Service Bus Security ...............................................................................................7-1
Practices for Lesson 7: Overview ...................................................................................................................7-2
Practice 7-1: Configuring the Security Environment .......................................................................................7-4
Practice 7-2: Applying a Security Policy to Proxy Services ............................................................................7-9
Practice 7-3: Testing the Proxy Service Security Implementation ..................................................................7-13
Practice 7-4: Propagating Identity from Service Bus to Secured Web Service ..............................................7-18
Solution Instructions .......................................................................................................................................7-30
Practices for Lesson 8: Service Bus High Availability .................................................................................8-1
Practices for Lesson 8: Overview ...................................................................................................................8-2
Practice 8-1: Creating a Service Bus Cluster .................................................................................................8-3
Practice 8-2: Initializing a Service Bus Cluster ...............................................................................................8-11
Practice 8-3: Load Balancing Service Endpoint .............................................................................................8-15
Practice Solutions ..........................................................................................................................................8-21
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Password document for Oracle Service Bus 12c Administration
Username: weblogic
password: welcome1
Database
Sys: dba
s a
password: welcome1 h a
l c l)
e nte uide
e z @ nt G
Database Schema PROD
s q u tude
password: oracle
( f cva this S
e da use
a sta se to
Database Schema PROD1 z C en
e l i c
password: oracle squ rable
e V fe
e l i p a n s
F n-t r
noSchema PROD2
Database
password: oracle
username: jdoe
password: welcome1
username: joe
password: welcome1
For Practice 7-3, step 2d
username: joe
password: notwelcome1
Unauthorized reproduction or distribution prohibited Copyright 2016, Oracle and/or its affiliates
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Unauthorized reproduction or distribution prohibited Copyright 2016, Oracle and/or its affiliates
s a
h a
l c l)
e nte uide
Practices for z @
Lesson
n t G1:
q e
u tude
Introduction
s
( f c va his S
e d aChapterse1 t
s t a e to u
z Ca cens
s q ue le li
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
Practices for z @
Lessonn t G2:
q e
u tudwithe
Gettinga s Started
S Oracle
v
(fc e thBus
Service is
a
ed Chapter
t a t o us2
C as nse
u e z lice
sq rable
e V fe
e l i p a n s
F n-t r
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
a
)h
c l
n t el ide
@ e G u
Practices for ez Lesson
e t
n 3:
Installingq u
s Oracle d
tu Service Bus
v a S
a (fc e this
12c
a ed Chapter
o us3
t
as nse t
C
z lice
u e
sq rable
e V fe
e l i p a n s
F n-t r
no
Run the Oracle Repository Creation Utility to create the Service Bus schemas (to
support the reporting feature and Oracle WSM policies)
Create a WebLogic domain for Oracle Service Bus
Deploy back-end web service applications
The Oracle WebLogic Server 12.1.3.0 software has already been installed on the classroom
machines.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Assumptions
Unauthorized reproduction or distribution prohibited Copyright 2016, Oracle and/or its affiliates
The Oracle WebLogic Server 12.1.3.0.0 software must be installed in the Oracle
Middleware Home directory /u01/app/oracle/fmw_admin/12.1.3.0/wlserver.
(This has been installed for you.)
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 is installed.
The /home/oracle/stage directory must contain the software for Oracle Service Bus
12c 12.1.3.0.
The following environment variables are used in the lab environment and are included in your
.bash_profile file:
MIDDLEWARE_HOME=/u01/app/oracle/fmw_admin/12.1.3.0
s a
a
)h
JAVA_HOME=/usr/java/jdk1.7.0_71
c l
Tasks n t el ide
e G u
1. In a terminal window, navigate to the installation directory. z@ t
q u e den
$ cd /home/oracle/stage
v a s S tu
2. Start the Service Bus installation by invoking(fthe is
c javathexecutable from the JDK directory
on your system. a
ed o us e
a
st se t jar fmw_12.1.3.0.0_osb.jar
$ /usr/java/jdk1.7.0_71/bin/java
a
C some
The Oracle installer performs
z c ensystem checks and launches the installation wizard.
e
qu busing
3. Complete the installation l i
e the graphical user interface by following the steps below:
s l
a. ClickV Next in thera
Welcome screen.
b. ip
e s f e
Fel then-drop-down
tran menu.
Select the Oracle home directory /u01/app/oracle/fmw_admin/12.1.3.0 using
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f c va his S
c. Review the Feature Sets included ina
d e t
the current installation, and then click Next.
e s
s t a e to u
z Ca cens
s q ue le li
e V ferab
e l ip rans
F n-t
no
e. After the installer does the installation prerequisite checks, click Next.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
h. Click Next.
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Assumptions
Oracle Service Bus 12.1.3.0.0 is installed on the system.
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 is installed.
Tasks
1. Open a terminal window.
2. Navigate to the directory that has the rcu script.
s a
$ cd /u01/app/oracle/fmw_admin/12.1.3.0/oracle_common/bin
)h a
3. Confirm that JAVA_HOME is set to the correct path.
l c l
a. To confirm that the environment variable is set correctly, enter the n t efollowing e
idcommand:
e
@ nt G u
$ java -version
e z
b. Ensure that the Java version is 1.7.0_71, as shown s q t u de
uin the image:
( f cva this S
e da use
a s ta e to
c. If you do not see thatC
z c e ns then set JAVA_HOME to
Java version,
s q ue le li
/usr/java/jdk1.7.0_71.
V f e r ab
4. Confirm thatMIDDLEWARE_HOME is set to the correct path.
l e
To confirm s
a. ip
n that the environment variable is set correctly, enter the following command:
e
F $nls r a
-t $MIDDLEWARE_HOME
o
b.n Ensure that you see these directories included in the list: osb, oracle_common,
wlserver.
9. Click Next.
s a
a
)h
c l
11. Select Create new prefix and enter PROD.
n t el ide
12. Expand AS Common Schemas in the Component table and makee
@ G
the followingu selections,
and then click Next: ez den t
Metadata Services s q u tu
v a S
Audit Services
a (fc e this
Audit Services Append
a ed o us
Audit Services Viewer st t
a
C Services
Oracle Platform Security n s e
e z l i c e
s qu Service
User Messaging
b le
V fer
WebLogic a
Services
l i p e
Oracle n s Scheduler
Enterprise
e
F Common r a
-t Infrastructure Services (selected by default)
o n
n SOA Suite
SOA Infrastructure
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
13. Verify that the prerequisite checks have passed
a
and
histhe password as follows, and
(fcandeenter
then
t click OK.
a st se t
Password: See the OracleServiceBus12cPassword file.
z C cen
Confirm Password:
q u e theeOracleServiceBus12cPassword
See li file.
s erab l
V
e nsf
l i p
Fe n-tra
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e d a indicates
18. Verify that each of the component schemas
s e a Success status, and then click
t a to u
Close. Do not close the terminal window. You can use it in the next section.
C as nse
u e z lice
sq rable
e V fe
e l i p a n s
F n-t r
no
Assumptions
Unauthorized reproduction or distribution prohibited Copyright 2016, Oracle and/or its affiliates
The Oracle WebLogic Server 12.1.3.0.0 software must be installed in the Oracle
Middleware Home directory /u01/app/oracle/fmw_admin/12.1.3.0.
The Oracle Service Bus 12c 12.1.3.0.0 is installed into the specific Oracle Home
directory /u01/app/oracle/fmw_admin/12.1.3.0.
The Oracle Database 11g instance is running with the required Service Bus schemas.
Tasks
1. Start the Oracle Fusion Middleware Configuration Wizard by entering the following
commands in a terminal window:
s a
$ cd /u01/app/oracle/fmw_admin/12.1.3.0/oracle_common/ a
)h
c l
common/bin
n t el ide
$ ./config.sh
@ e G u
ez den
2. In the Domain Location field, leave the directory the same, except replacet base_domain
with osb_domain.
s q u tu
v a S
a (fc e this
a ed o us
a st se t
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
3. Click Next.
4. Choose the templates.
a. Select Create Domain Using Product Templates.
b. Select the following available templates:
Oracle Service Bus 12.1.3.0 [osb]
WebLogic Advanced Web Services for JAX-RPC Extension 12.1.3.0
[oracle_common]
ODSI XQuery 2004 Components 12.1.3.0 [oracle_common]
Oracle Enterprise Manager 12.1.3.0 [em]
Oracle WSM Policy Manager 12.1.3.0 [oracle_common]
Oracle JRF 12.1.3.0 [oracle_common]
Copyright 2015, Oracle and/or its affiliates. All rights reserved.
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed the o us
Next.
t
5. On the Application Location screen,
as nse
verify t domain name and location, and then click
C
z lice
Domain name: osb_domain
u e
Domain location:sq rable
e V fe
e l i p a n s
/u01/app/oracle/fmw_admin/12.1.3.0/user_projects/domains
Application r location:
F/u01/app/oracle/fmw_admin/12.1.3.0/user_projects/applications/osb_domain
n -t
n o
6. Configure the Administrator user name and password using the following settings, and then
click Next:
Name: See the OracleServiceBus12cPassword file.
Copyright 2015, Oracle and/or its affiliates. All rights reserved.
s a
a
)h
c l
el clickiNext:
8. Enter the following settings for the Database Configuration Type, and tthen
n de
Vendor: Oracle e
@ nt G Version u
Driver: *Oracles Driver (Thin) for Service e z
u tude
connections;
s q
cva this S
9.0.1 and later
DBMS/Service: orcl ( f
Host Name: localhost
e da use
Port: 1521
a sta se to
z C cen
Schema Owner: PROD_STB
q e
u See e li
s
Schema Password: l the OracleServiceBus12cPassword file.
Note: e TheVSchemaf rab in this table must match the value that you assigned to schema
eOwners
l ip earlier
owners
e a n s you ran the RCU utility. Do not leave it at the default with the DEV
when
r
Fprefix nbecause
-t that is used for a different course.
o
n the Get RCU Configuration button to retrieve the database schema.
9. Click
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
a screen.
11. Click Next on the Component Datasources
e d se
u
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a fc this
(administration
e d use
Note: This creates a default domain with an server and one Service Bus
sta se to
managed server called osb_server1.
a
C cen
e z
u le li
s q
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e daServeruscreen,
se and then click Next:
sta se to
14. Enter the following on the Administration
Name: AdminServer a
C cen
e z
u le li
Listen Address: localhost
s q
Listen Port:
V 7001
f e r ab
Server
l e
ip Groups:n sUnspecified
e
F n-t r a
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
f cvaandththen
15. Enter the following on the Managed Server screen,
( is Sclick Next:
Name: osb_server1
e da use
Listen Address: localhost ta
a s se to
Listen Port: 7003
z C cen
Server Groups: q e
u le li
OSB-MGD-SVRS-COMBINED
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da100%,
19. When the Configuration Progress reaches
u e Next.
sclick
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed o us
a
21. Start the administration server.st se t
z C ways
differentic ento start the server. You can simply double-click the
a. There are several e l
squ rable
e V fe
e l i p a n s
F n-t r
noStart SA Admin Server icon on the desktop and enter the
administrative credentials (See the OracleServiceBus12cPassword file) when
prompted. Or you can execute the following commands:
1) Open a new terminal window, and navigate to the
/u01/app/oracle/fmw_admin/12.1.3.0/user_projects/domains/osb_
domain/bin directory.
2) Enter the following command:
$ gnome-terminal -title AdminServer e ./startWebLogic.sh
If prompted, enter the administrative credentials: weblogic/ See the
OracleServiceBus12cPassword file.
Note: This command starts the server in a separate terminal window with the
appropriate title so that you do not confuse it with other terminal windows. You can
also start it by using a separate terminal window with just the
./startWebLogic.sh command.
Tip: If you prefer, create a boot.properties file for the domain to avoid
supplying credentials on subsequent server restarts.
s a
a
)h
c l
22. Start the Service Bus managed server.
n t el ide
e theGStart
a. Similarly, start the Service Bus managed server by double-clicking
@ u SA OSB
ez den t
s q u tu
v a S
a (fc e this
Server icon on the desktop e
d usand enter the administrative credentials
a
st se to file) when prompted. Or you can
(see the OracleServiceBus12cPassword
a
Ccommand:
execute the following
e z l i c en
squ rable-title SBosb_server1
$ gnome-terminal Server e
V fe
./startManagedWebLogic.sh
e
e l i p
When n s enter the administrative credentials: See the
prompted,
a
n -t r
F OracleServiceBus12cPassword file.
o
n Note: You can also start it by using a separate terminal window with just the
./startManagedWebLogic.sh osb_server1 command.
b. It will take a couple of minutes to start. Make sure that you see the message Server
started in RUNNING mode to confirm that the Service Bus managed server is
running.
c. Minimize the terminal windows but do not close them. If you close these windows, it will
shut down the servers, and you will need to start them again.
Tasks
1. Deploy the back-end web service applications:
a. Open a terminal window and navigate to the practices directory:
$ cd /home/oracle/labs_SA/Practice_03
b. Deploy the service applications by using the following command:
$ ./deploy_apps.sh
Wait until you see the message Deployment of service applications complete! The
Deployment State for each of the six applications should be completed.
s a
2. Verify that all the back-end web service applications are deployed on the WebLogic
h a
administration server and are running.
l c l)
nte uide
a. Double-click the Firefox Web Browser launcher on the desktop and start the Oracle
e
e z @ nt G
Enterprise Manager Fusion Middleware Control (EM) Console by entering the following
URL:
http://localhost:7001/em s q u tude
f cva this S file) credentials.
b. Log in using (see the OracleServiceBus12cPassword
(
e da dialog
If you see an Accessibility Preferences
u sebox, click Continue.
a s ta expand
c. In the Target Navigation section,
e to WebLogic Domain > osb_domain >
AdminServer.
z C cens
s q ue le li
e V ferab
e l ip rans
F n-t
no
d. In the Application Deployments section, verify that the following applications are listed
under Application Deployments:
CreditCardValidationService_WS
OrderServices
OrderStatusApplication
PaymentServices
ServiceA_App-Service_A-context-root
Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Note: If you do not see these applications, go back to the terminal window where you ran
s a
a
the deployment script and check back through the messages to see what caused them to
h
fail.
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
be installed. Your instructor can give you information for uninstalling a domain, if necessary.
Tasks
1. Install Oracle Service Bus 12c by following the instructions in Practice 3-1.
2. Create the schemas in the database:
a. In a terminal window, navigate to the Solutions directory:
$ cd /home/oracle/labs_SA/Practice_03/Solutions
b. Run the script to create the schemas using RCU:
s a
$ ./create_schemas.sh a
)h
Verify that the schema was properly created. c l
n t el ide
@ e G u
ez den t
s q u tu
3. Create the Service Bus domain. v a S
a. Create the Service Bus domain following a e t his in 3-3
c instructions
(fthe
b. Start the WebLogic administration
a edservero andusService Bus managed server by
following the instructions s t
a nearwhen t
ethe ofadministration
the end Practice 3-3. The back-end service
C
applications will be deployed e n s server starts.
e z l i c
s qu 3-4,
c. Complete Practice
b l estep 1.
d. VerifyVthat all theraweb service applications are deployed and running on the WebLogic
e
ip ran s
administrationf e
server by following the instructions in Practice 3-4, step 2.
e l
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
Practices for z @
Lesson n t G4:
q e de
u Administration
Service s Bus t u
f
Tools
( cva this S
e da use
a sta se Chapter
to 4
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
and use the Invocation Trace to see the proxy service error.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
This shows the message flow diagram of the specific services to be tested.
ShippingService Diagram (SOAP-Based Service):
s a
h a
Assumptions
The Oracle Service Bus 12c 12.1.3.0 is installed and is running. tel
cl) e
e nare running.
u id
The back-end web service applications have been deployed
z@ and
n G
t Enterprise
Note: Throughout the practice guides, the abbreviation FMWC u e
q Stud e
refers to the
Manager Fusion Middleware Control console. a s
( f cv this
Tasks
e da use
1. Deploy the Service Bus project. ta to
a s e
a. Open a terminal window
z ns to the
C andcenavigate
u e e li
/home/oracle/labs_SA/Practice_04/deploy_projects
q
directory.
b. Executethe
a l
s deploy_projects.sh
b script to load the Service Bus project for this
e V
practice (andf e r
subsequent practices) into the WebLogic domain.
i p s
Fel $n./deploy_projects.sh
- tran
noYou should see the following messages at the end:
...
Creating a session...
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
a is S
c. Navigate to Service Bus Project > Homec>vOperations.
a ( f th
d e
t a e to us
C as nse
u e z lice
sq rable
e V fe
e l i p a n s
F n-t r
no
s a
h a
l c l)
e. Click the Test button to launch the Test Console. e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
f. The Test Console launches in a separate browser window. The shipOrder operation
takes shipping information and returns a tracking number. In the Payload section, click
Browse, navigate to /home/oracle/labs_SA/Practice_04/resources, and
open Payload.txt.
Note: This proxy service has only one operation; but if it had more, you would start by
selecting the operation that you want to test from Available Operations.
s a
h a
l c l)
e nte uide
e z @ nt G
g. Click Execute to test the pipeline.
s q u tude
h. Observe the Request Document and thecResponse
( f va hisDocument
S and answer the
following questions:
da use t
1) What is the shippers first e
name?
a
2) What is the shippers
ta name?
slast e to
z C type?
3) What is theeshipping c e ns
q u was
4) Whatsresponse l e li
V erab returned by the pipeline service?
l i p e nsf
Fe n-tra
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Answers:
1) Harry
2) Potter
3) Fedex
4) Tracking number: Hr14d683c1-3407-407a-a0d0-ee4824066055 (or something
similar)
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
Answers:
v a S
isFedex model. For example, it
a (fc into
a) The proxy transformed the message
e t h
the
HarryPotter. a ed (Harry)
concatenated the FirstName
o u sand LastName (Potter) to one Name,
b) The shipperC
st
fedEx. se
isa
t
j. Click Back tou e
return cenConsole input page and change the
z to theliTest
sq rable node in the Payload to ups.
<java:ShippingType>
e V fe
e l i p a n s
F n-t r
no
k. Execute the test again and inspect Invocation Trace > RouteNode1 > Message
Context Changes > added $transformMsg. How does the UPS message type differ
from the fedEx one?
s a
h a
l c l)
e nte uide
e z @ nt G
s q u and
Answer: The first name and last name are kept separate
t u de is an address
there
cva this S
element, Adr, which contains the separate address elements.
3. View an error in the Test Console. ( f
e da input
a. Click Back to return to the Test Console
u sepage. Change the
<java:OrderNumber> s a Payload
in tthe
e toto test.
a
C cens
z
ue le li
s q
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
Answer: The fault code is Server. The reason is that the format was incorrect.
OrderNumber is meant to be a number and it received a string. nte
e u ide
e. Close the Test Console.
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
2. Execute the deploy_projects.sh script to load the Service Bus project for this practice
into the WebLogic domain.
3. You should see the following messages at the end:
...
Creating a session...
@ e G u
a. In a browser window, log in to the Service Bus Console at http://localhost:7001/em as
weblogic/ See the OracleServiceBus12cPassword
ez den
file. t
q u tu Notification and
s the Practice_04
b. In the console, click Project Explorer and expand
v a S
Shipping projects.
a (fc e this
a ed o us
a st se t
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
5. Optionally, you can follow the instructions in Practice 4-1 steps 2 and 3 to test the pipeline.
s a
h a
l c l)
e nte uide
Practices for z @
Lesson n t G5:
q e de
u Management
Service s Bus t u
f cva this S
Fundamentals
(
e da use
a sta se Chapter
to 5
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
changes. Before activating your changes, the console notifies you of any conflicts your changes
might have caused. You will practice resolving those conflicts for a clean activation.
You use two different browser instances to log in to two different Service Bus consoles. You
also use different user credentials to log in to simulate a conflicting scenario in modifying
Service Bus resources. For simplicity, lets define:
Service Bus Console 1: Mozilla Firefox Web browser instance 1
Service Bus Console 2: Mozilla Firefox Web browser instance 2
Tasks
1. Set up the practice environment. s a
a
)h
a. In a Terminal window, navigate to
c l
/home/oracle/labs_SA/Practice_05/create_user.
n t el ide
b. Execute the create_user.sh script to add a new administrative@ e userG("jdoe")u to
osb_domain. Make sure you see the following message e t
ez afterdexecuting
n the script:
s q u tu
v a S
a (fc e this
a ed o us
t orewarnings
Note: You can ignore anyserrors
a t as long as the script indicates that "jdoe"
C
was created successfully. e n s
c. Close all ofq u z weblicbrowsers.
eopen
2. Log in to V
your
s abConsole
theServicerBus
le as the weblogic user to create a new session. For this
i p
practice,e call this
s e 1.
fconsole
l
Fa.e Open n
traaFirefox web browser and navigate to the Service Bus Console at
n -
nohttp://localhost:7001/servicebus.
s q ue le li
e V ferab
e l ip rans
F n-t
no
s q u tude
Services, and click LocalShippingService.
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
e. Click Save.
v a is S
f. Navigate to the same location in console
a (f2c(Private
e t hWindow). Select Random for the
d
Load Balancing Algorithm, andethen
us and click Activate.
click Save.
a description
t a t o
C as nse
g. In console 2, click Activate. Enter
u e z lice
sq rable
e V fe
e l i p a n s
F n-t r
no
h. Return to console 1 and activate the session. Were you able to activate the session? If
not, what message did you get?
Hint: You should have received a message about a concurrency conflict.
j. To resolve the concurrency conflict, select the LocalShippingService, and click the
Synchronize icon.
s a
)h a
c l
n t el ide
@ e help G uif you need
k. Activate the session. Do not forget to add a description. Descriptions
ezby other
e n t
s q u
to roll back, and when you are viewing sessions created
tu d users.
l. Log out and close console 2 (Private Window). v a S
a (fc e this
5. Resolve a conflict.
a ed o us
a. Create a new session in a st s1.e t
console
b. In Project Explorer, z C cetonPractice_04 >Shipping > Business Services.
navigate
q e lito LocalShippingService and click the Delete button.
u box lnext
e
c. Select thescheck
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
differently with different names, port numbers, and so on. You also create a customization file
that can be repeatedly used to automatically do the find and replace on environment variables.
This is particularly useful when frequently moving a configuration from a development to a
testing environment.
In this practice, you:
Find and replace environmental values in a Service Bus configuration
Create a customization file to automatically find and replace specific values
Execute a customization file
s a
Tasks
h a
1. Change the port number of the WebLogic server in osb_domain to 7101.cl)
n t el ide
a. Log in to the WebLogic Server Administration Console of osb_domain
@ e G u
(http://localhost:7001/console) using the weblogic/ See
ez den t
OracleServiceBus12cPassword File credentials.
s q u tu
v a S
a (fc e this
a ed o us
a st se t
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
b. Navigate to osb_domain > Environment > Servers, and click AdminServer(admin)
in the Summary of Servers section.
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed o us
a st se t
z C cen
q e
u le li
s
e V ferab
e l ip rans
Fe. Saven -t your changes, and then in Resources, click Activate Changes. You might be
n o
logged out automatically. If not, log out of the console.
f. Log in again to the WebLogic Administration Console at the new listen port to verify the
change.
2. In the Service Bus Console, find and replace values for the Service Bus projects to reflect
the new port number.
a. Log in to the Service Bus Console for osb_domain by specifying the new port number
in the URL (http://localhost:7101/servicebus) and using weblogic/ See
OracleServiceBus12cPassword File.
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed o us
a st se t
d. Create a new session. C cen
zthat
e. To rectify the u
q e
error
e li received in the previous step, you need to change the port
you
number ofsthe l
erab services. Navigate to Admin > Configuration and select
Service Bus
FindV
and Replace.
l i p e nsf
Fe n-tra
no
s a
h a
g. Close the dialog box. l c l)
h. How many environment variables were changed? e nte uide
Answer: 4 e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
g. Save the customization file by selecting Save File and clicking OK. The file is saved as
s a
h a
OSBCutomizationFile.xml in the Downloads folder. Close the Configuration
window. l c l)
h. e nte uide
Edit OSBCutomizationFile.xml in a text editor such as gedit or Emacs (right-click
z @ nt G
the file and select Open With > editor name), and replace all the instances of 7101 with
e
q u tude
7001. Save and close the file after making the changes.
s
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
i. Return to the Service Bus Console and navigate to Admin > Configuration and select
Execute Configuration File.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
C successfully.
n. Verify that the testzruns
c en
e l i
squ rable
e V fe
e l i p a n s
F n-t r
no
Tasks s a
)h a
1. Modify a WLST script to export a Service Bus configuration file.
c l
a. Open the /home/oracle/labs_SA/Practice_05/wlst/export
n t el ide
/wlstScript_export.py file in a text editor (right-click theefile and G
@ u Open with
click
Other Application, and then select a Text Editor.) ez den t
q u tu in the file. You will
see comments for where to add each linefc
as
b. Add the appropriate code as instructed at the appropriate
ofvcode. is S
location
a ( e th
Note: Alternatively, you can replace
e d the wlstScript_export.py
u s file in the
Fel tonthe n
exporting a Service configuration to a JAR file. It is also set up to connect initially
- t r a
Administration Server in osb_domain.
n o
Note: The solution script for exporting a Service Bus configuration is provided in the
/home/oracle/labs_SA/Solutions/wlst/export directory. In case you fail to
s a
create the configuration file correctly, use the script provided with the solutions.
)h a
Optionally, you can view the contents of the file by right-clicking
c l
Practice_05_sbconfig.jar and selecting Open with "Archive Manager". Now you
n t el ide
can view the contents of the exported project.
@ e G u
ez den t
q u
s file u osb_domain. The
tinto
4. Modify a WLST script to import a Service Bus configuration
v a S
a fc this
sample configuration file (which creates the (Sample_OSB_Project) is already provided
ed oa unew
with the script file. The script will also create e
s session and finally activate the session.
a
st file insea textt
a. Open the /home/oracle/labs_SA/Practice_05/wlst/import
a
/wlstScript_import.py
z C cen editor. Add the appropriate code as instructed
at the appropriate
q u e e li
location in the file. You will see comments for where to add each line
of code. s l
erabyou can replace the wlstScript_import.py file in the
e
Note: VAlternatively,
f
l i p n s
Fe edited
n - t r a
/home/oracle/labs_SA/Practice_05/wlst/import
file from the
directory with the already
no/home/oracle/labs_SA/Practice_05/Solutions/wlst/import
wlstScript_import.py
directory. If
you do so, skip to Step 5 that follows.
b. This WLST script is already set up to import the appropriate classes needed for
importing a Service Bus configuration to a JAR file. It is also set up to connect initially
to the administration server in osb_domain.
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed o us
5. In a Terminal window, navigate
a stto se t
C cen
/home/oracle/labs_SA/Practice_05/wlst/import
z and execute the
executeScripts.sh
s q ue filelfile
e i the Sample_OSB_Project project from the
to limport
erab
sample_sbconfig.jar
V into osb_domain.
Note: e
l i p n s f script for importing a Service Bus configuration file is provided in the
The solution
e -tra
Fyou
/home/oracle/labs_SA/Practice_05/Solutions/wlst/import directory. In case
nofailnto write the script correctly, use the script provided with the solutions.
s a
a
)h
c l
7. Delete Sample_OSB_Project from osb_domain.
n t el ide
a. Click the Create button to start a new session.
@ e G u
b. In Resources, select Sample_OSB_Project (ensureethat z nothing
e t
nelse is selected)
and click Delete. s q u tu d
v a S
a (fc e this
a ed o us
a st se t
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Tasks
1. Set up the practice environment.
a. In a Terminal window, execute the following command to create a new PROD1 prefix.
$ cd /home/oracle/labs_SA/Practice_05/create_schema
s a
$ ./create_schema.sh a
) h 3-3.
b. Create a new SB domain called prod_domain using the instructions in c l
Lesson
Use PROD1 for the schema, 7091 for the admin server port number,
n t eland 8091
idefor the
OSB managed server.
@ e G u
e z e n t
squ Stud
2. Start the Administration Server and the Service Bus Managed Server in prod_domain.
a. Open a new Terminal window and navigate v toathe
(fc e this
/u01/app/oracle/fmw_admin/12.1.3.0/user_projects/domains/prod_do
a
main/bin directory.
a ed o us
b. Start the Administration Server
a st bysexecuting
e t the following command (all on one line):
$ gnome-terminal
z C-title c en "ProdAdminServer" e ./startWebLogic.sh
e l i
s u rathe
If prompted,qenter
b leadministrative credentials: weblogic/welcome1.
Note:VThis commande so thatstarts the server in a separate Terminal window with the
i p e s f
Fel can n
appropriate title you do not confuse it with other server Terminal windows. You
- t r
also
a start it using a separate terminal window with just the ./startWebLogic.sh
n o n
command.
It will take a couple of minutes to start up. Make sure you see the message "Server
started in RUNNING mode" to confirm that the Administration server is running.
c. Similarly, start the Service Bus Managed Server. From the
/u01/app/oracle/product/fmw/12.1.3.0/user_projects/domains/prod_
domain/bin directory, execute the following command:
$ gnome-terminal -title "ProdServiceBusServer" e
"./startManagedWebLogic.sh osb_server1"
When prompted, enter the administrative credentials: weblogic/ See
OracleServiceBus12cPassword File.
a. In a web browser, navigate to the Service Bus Console for the original domain
(osb_domain) at http://localhost:7001/servicebus. Log in as weblogic/ See
OracleServiceBus12cPassword File.
b. Navigate to the Resources section of the Service Bus Console.
c. Select Practice_04.
d. Click the Export button.
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed o us
a st se t
z C cen
q e
uResourcese li box, ensure that Practice_04 is selected and System
e. In the Exports
erab l dialog
is notVselected.
l i p e n s f
Fe n-tra
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
s t a e to
4. Import the configuration file into prod_domain.
a
a. Start the Service BusCConsole forsprod_domain by navigating to
e z i c
http://localhost:7091/servicebus
l en in a web browser.
b. Log in as s
qu ble
weblogic/welcome1.
e
c. Create
ra
V a newfesession.
s
ip ranto the Resources section of the Service Bus Console.
Fd.el Navigate
n -t
n o
f. Browse to the location where you saved the Service Bus configuration JAR file,
sbconfig.jar, and open the file. Click Next.
s a
h a
l c l)
e nte uide
e z @ nt G
qu SClick
issselected.
g. Ensure that the Practice_04 configuration filea t udeImport.
( f cv this
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
h. Activate the session. Do not forget to add a description and click Activate.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
c. In the Folder Definition a staopensethetoTest Console for
pane,
z C cen
e
u le li
ConfirmationEmailQueue_pipeline
q by clicking the test button.
s rab change CustomerID and OrderID to 3.
V fesection,
d. In the Payload
e
e l ip rans
F n-t
no
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
h. Export the Practice_04 project. ed s
t a 3 if tyou
o uneed
a s se
Hint: View the instructions in step a reminder.
z C cen
q e
u le li
s
erab
e
Note:VThe f
configuration file, named sbconfig(1).jar, is saved to the Downloads
l i p n s
Fe n-tra
folder.
no
7. Verify that the changes to the service reflect successfully in prod_domain.
a. Return to the prod_domain Service Bus Console.
b. Create a session.
Note: You will be prompted to log in again so there is no confusion between the two
Service Bus Consoles.
c. Import the sbconfig(1).jar file.
f. Log out of the Service Bus Console for prod_domain and close the browser window.
8. Shut down the Administration Server and Service Bus Managed Server in prod_domain.
a. Return to the Terminal windows that are executing the Administration Server and
Service Bus Managed Servers for prod_domain (ProdAdminServer and Prod Service
s a
Bus Server). h a
l c l)
Important: Ensure that you are not shutting down the osb_domain server.
e nte uide
b. Enter the Ctrl + C" key combination in each Terminal window to shut down the
servers.
e z @ nt G
q u tude
c. Close the Terminal windows after the servers stop.
s
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Assumptions
The Practice_04 project is deployed on the Service Bus server (performed in
Practice 4-1).
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed o us
a st se t
Tasks z C cen
q e
u le li
s
1. Navigate to /home/oracle/labs_SA/Practice_05/Solutions/wlst/export
a b and
e V fer
run the executeScripts.sh file to export the Service Bus configuration file.
i p
el that
2. Verify
s
anexport file Practice_05_sbconfig.jar was created in
the
- t r
F/home/oracle/labs_SA/Practice_05/wlst/export.
non you can view the contents of the file by right-clicking
Optionally,
Practice_05_sbconfig.jar and selecting Open with "Archive Manager." Now you
can view the contents of the exported project.
3. Navigate to /home/oracle/labs_SA/Practice_05/Solutions/wlst/import and
run the executeScripts.sh file to import the Service Bus configuration file.
4. Perform steps 6 and 7 in Practice 5-3 to verify that the new project was created and then to
delete the new project.
s a
h a
l c l)
e nte uide
Practices for z @
Lesson
n t G6:
q e de
u andtuMonitoring
Reporting s
( f c va his S
e d aChapterse6 t
s t a e to u
z Ca cens
s q ue le li
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
monitor a service, you must first configure Service Bus to collect statistics for it.
You will monitor the supplied OrderManagementService_proxy, which simply passes
incoming requests through to OrderManagementService that is deployed to the Service Bus
Domain.
Assumptions
Oracle Service Bus 12c 12.1.3.0 is installed and is running for osb_domain.
The web service applications used by the Service Bus services are deployed and
running on Oracle WebLogic server. a
a s
Tasks
c l )h
1. Import the sample Service Bus project by using the Fusion Middlewarete l Console.
Control de
e n u i
a. In Target Navigation, right-click SOA > servicebus(AdminServer)
z @ nand t Gselect Import.
q e
u tude
s
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
b. On the Import Resources page, click the Browse button that is next to Jar Source,
browse to /home/oracle/labs_SA/Practice_06, and open the sbconfig.jar
file. Click Next.
c. Review the contents of the Jar file to be imported, and then click Finish.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
d. Ensure that you see the message The import was completed successfully. Close the
window.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
h. Click Apply.
( f cva this S
e da use
3. Launch the Test Console for OrderManagementServicePipeline.
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
4. FEnsure - t Include Tracing is selected.
that
n o n
5. In the Test Console, execute two test cases for the getOrdersForCustomer operation
and the getOrderStatus operation each. Test both the operations, once with valid data
and once with invalid data. This generates statistics that you will view later.
a. Test the getOrdersForCustomer operation with valid parameters. Select
getOrdersForCustomer from the Available Operations drop-down list at the top,
and then enter the following payload values:
<java:FirstName>: Tom
<java:Id>: 1001
<java:LastName>: Harkey
Click Execute.
b. Click Back.
c. Test the getOrdersForCustomer operation again with invalid parameters. Enter the
following payload values:
<java:FirstName>: No
<java:Id>: 99
<java:LastName>: Body
s a
Click Execute. You will see an error message in the Response Document, a
h as
) such
The invocation resulted in an error. l c l
n t e i d e
d. Click Back.
@ e G u
e. Test the getOrderStatus operation with a valid parameter. ez list, n
Select
e t
getOrderStatus from the Available Operationsq
s u
drop-down
t u d and then enter the
following payload value: a
cv this S
( f
<ser:orderId>: 1001
e da use
sta se to
Click Execute.
f. Click Back. a
C cen
e z
g. Test the getOrderStatus
u li operation again with invalid parameters. Enter the
following s
q b l
payload value:e
e V f e ra99
e l a n s You will see an error message in the Response Document, such as
ipClick Execute.
<ser:orderId>:
F The n r
-tinvocation resulted in an error.
n o
h. Close the Test Console.
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed o us in the table under Services.
c. Click the OrderManagementServicePipeline
d. Record the following datasfrom
a t the eService
t Metrics table. You will find the Failure Ratio
by clicking within theC
en s
Services section:
e z l i c
squ rable
Field Value
e V Overallf e Avg.
i p s
Fel n-traResponse
n Time
no Message Count
Error Count
Failure Ratio
e. If no data is available, the three-minute aggregation interval may have already elapsed.
Run the client application test and switch to Since Last Reset in the Search section.
purposes of this practice, alerts from either SLA will be delivered to a JMS destination that is
deployed to Service Bus Domain (although typically the destination would be some centralized
operations center).
In this practice, you:
Configure a JMS alert destination
Assign an SLA to a proxy service
Monitor alerts triggered from an SLA
Tasks a
a s
1. Create a JMS Connection Factory and Queue and log their JNDI names.
c l )h
a. Open a Terminal window and navigate to the
/home/oracle/labs_SA/Practice_06/resources directory. n t el ide
@ e Factory G u
b. Execute the create_jms.sh script to create a JMS Connection
e z e n t and JMS
Queue within the osb_domain domain. You will see
s q uthe d
following
t u message if the script
is executed successfully.
( f cva this S
e da use
a s ta e to
c. Launch the WebLogic
z CServerc e ns
Administration Console for the osb_domain domain
e li
squ rable
(http://localhost:7001/console) using the (See OracleServiceBus12cPassword
File) credentials.
e V fe
e l i p a n s
F n-t r
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a e to
stthe
e. Record the JNDI names a s resources:
C cenfollowing
of
Resource e
u z l i JNDI Name
q
s erab
AlertQueue l e
V f
e AlertConnectionFactory
l i p n s
Fe n-tra
no
2. Configure SLA Alerts for the OrderManagementService_proxy Proxy Service.
a. In the Fusion Middleware Control Console Target Navigation section, expand SOA >
Service Bus > Practice_06.
b. Click the Operations tab.
c. Select the options to enable SLA Alerts and Pipeline Alerts. Make sure the
Aggregation Interval is set to 3 minutes, and then click Apply.
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed o us
a st se t
g. Click Apply.
z C cen
q e
u le li
s ab create a JMS alert destination.
Buseconsole,
3. In the Service
r
e V f
a. ip
e l a n s Service Bus session.
Create a new
Fb. Innthe r
-t Resources tab, right-click the Practice_06 project and select Create > Folder.
o
c.n In the Create a New Folder Resource Name field, enter Alerts. Click Create.
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed o us
a
e. In the Create Alert Destinationst dialog,
s e tenter JMSAlertDestination for Resource
Name. z C cen
f. Click Create. q e
u le li
s
erab
g. p e V
In the Alerts f
Destination Definition > JMS Destination section, click the Add button
e l i to r
add a n
the JMS Destination.
F n-t
h. o
n aUsing the JMS JNDI names recorded earlier, enter the full Destination URI. Recall that
JMS URL is of the form
jms://<host>:<port>/<ConnectionFactoryJndiName>/<QueueJndiName>
Hint: Use Localhost for <host> and 7003 for <port>. Use the JNDI name
recorded earlier for the AlertQueue and AlertConnectionFactory options.
s a
h a
l c l)
e nte uide
z
j. Click OK. Your Alert Destination page should look like the@following:t G
u e d e n
a s q S tu
v
(fc e this
a
ed o us
a
a st se t
k. Click the Save button.
z C cen
e
u and
l. Activate theqsession e li a description.
include
s l
e V ferab
l ip an rSLA
4. Define
e a n s based on error count.
rule
Fa. Create
n -t a new session.
o
b.n In Resources, click Practice_06 > Proxy Service, and then click
OrderManagementService_proxy.
c. Click the SLA Alert Rules tab.
b. Click the SLA Alert Rules tab in the Service Bus console.
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
d. Click Execute.
v a S
a
c error.
e. Repeat the previous steps to generate a(fsecond
e t his
edID ofo1001.
f. Execute a third test using a correct
a us
g. Close the Test Console. st t
z Ca cense
q uethe dashboard
7. View the alerts using
s l e li in the Fusion Middleware Control Console.
a. Under
e f rab click service-bus (AdminServer).
eNavigation,
VTarget
b. lip
e n s and then the SLA Alerts tab, if it is not already visible. If you do not
Click Dashboard,
a
F see n r
t SLA Alerts, click Refresh on your browser.
-the
o
n Note: You might have to wait for up to 3 minutes for this to display. If you still cannot
see the alerts, double-check your configuration settings. Did you set the aggregation
interval for your Alert Rule to 3 minutes, or is it still set to the default of 10 minutes?
s a
a
Note: If your response time is very fast, you may not see a major alert for Order
h
Response Time.
l c l)
c. te uide
Click an area of the pie chart to filter the alerts being displayed.
e n
d. @ nt G
Locate the Alert Name column. Click one of the alerts to view its details.
e z
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Tasks
1. Enable the OrderManagementServicePipeline report option.
a. In Enterprise Manager Target Navigation section, click Practice_06.
b. Click the Operations tab.
c. Select to enable the Reports option for the Pipeline. s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
d. Click Apply. e da use
a sta se to
z C inspect
2. In the Service Bus console, c enthe report action in the Proxy Service Pipelines
Message Flow. qu
e l i
s rable
a. ClickV the VieweMessage Flow icon for OrderManagementServicePipeline.
l i p e n s f
Fe n-tra
no
s a
a
)h
c l
n t el ide
@ e G u
c. Click the RouteTo_getOrderStatus node and select ezViewdRoute.
e n t
s q u tu
v a S
a (fc e this
a ed o us
a st se t
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
d.no Click the Report action in the message flow. It extracts the order status information
from the services response. Note that this action executes an XPath expression to
construct the body of the custom report:
Note: You can also create an XSLT transformation to extract data into a report.
Similarly, the key name specifies the order ID.
e. Click Close.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a s ta e to
Search reports usingC s All Dates.
nsetting
the default
e
z
ue le li c
s q
e V ferab
e l ip rans
F n-t
no
b. Click a Report Index to view a reports contents.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s b
d. Viewe Vthecustom
f e rabody of the report.
i p s
Fel n-tran
no
Solution 6-1
1. Import the solution_6_1_sbconfig.jar configuration file located in the
/home/oracle/labs_SA/Practice_06/Solutions directory.
Note: If you started the practice, you must delete the Practice_06 project in the Service Bus
s a
console before importing the solution. If the project already exists in Service Bus, there
might be a conflict of resources.
a
)h
c l
2. el ide
Optionally, execute Tasks 3 to 6 of Practice 6-1 to test the proxy service and monitor
n t
statistics.
@ e G u
ez den t
s q u tu
Solution 6-2 v a S
is JNDI names.
1. Create a JMS Connection Factory and Queue, a (fcandelogththeir
a. Open a Terminal window and a ed oto the
navigate us
t
as nse t
/home/oracle/labs_SA/Practice_06/resources directory.
C
z licescript to create a JMS Connection Factory and JMS
e
b. Execute the create_jms.sh
u
sqsuccessfully.
Queue within
a b le
the osb_domain domain. You will see the following message if the script
V fer
is executed
e
e l i p a n s
F n-t r
no
2. Import the solution_6_2_sbconfig.jar configuration file located in the
/home/oracle/labs_SA/Practice_06/Solutions directory.
Note: If you started the practice, or completed the previous practice, you must delete the
Practice_06 project in the Service Bus console before importing the solution. If the project
already exists in SB, there might be a conflict of resources.
3. Optionally, execute Tasks 6 and 7 of Practice 6-2 to test and view the alerts.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
Practices for z @
Lesson n t G7:
q e de
u Security
Service s Bus t u
( f c va his S
e d aChapterse7 t
s t a e to u
z Ca cens
s q ue le li
e V ferab
e l ip rans
F n-t
no
Each credit validation provider has different authentication requirements. Pega Corporation
decided to use Oracle Service Bus to mediate security. Pega Corporation has standardized on
UserNameToken as the corporate authentication protocol.
CreditCardService_Proxy proxy service on Service Bus requires UserNameToken-based
authentication. To test the security implementation, you use the Service Bus Test Console. You
use the Test Console to provide credentials (username/password) to authenticate the
CreditCardService_Proxy proxy service. The identity of the authenticated user in Service Bus
will be propagated to the CreditCardValidationService web service by using SAML.
After this practice is complete, the execution flow will look as follows:
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Assumptions
Unauthorized reproduction or distribution prohibited Copyright 2016, Oracle and/or its affiliates
Oracle Service Bus 12c 12.1.3.0 is installed and is running for the osb_domain.
Oracle Web Services Manager is enabled and configured to work with Service Bus.
CreditCardValidationService web service application is deployed and running on
Oracle WebLogic server.
Tasks
1. Create a user in WebLogic Server (WLS) by using Enterprise Manager. The Service Bus
proxy service uses the WLS default authenticator to authenticate the username and
password in the WS-Security SOAP Headers received from the client. The user created
s a
a
using Enterprise Manager is available to the WLS default authenticator.
h
c l)
a. In Enterprise Manager, right-click osb_domain and select Security > Users and
l
Groups.
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
erab
c. Clicke VCreate fMap.
l i p n s
Fe n-tra
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
f.elip n s Key page, specify the following options and then click OK.
In the Create
a
F Map: n r
-toracle.wsm.security
o
n Key: joe-key
Type: Password
User Name: joe (same as entered in Service Bus Console)
Password: See OracleServiceBus12cPassword File (same as entered in
Service Bus Console)
Confirm Password: See OracleServiceBus12cPassword File
You should see the message: The credential key, joe-key, has been created.
s a
g. Expand oracle.wsm.security and you should see joe-key.h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Tasks
1. Import the sample Service Bus project by using the Service Bus console.
a. In Service Bus Console, create a new session.
b. In the Resources tab, click Import Config Jar.
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a e t histoand open the sbconfig.jar
fc navigate
c. On the Import Config Jar page, browse (and
a st se t
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a staindicating
e tothe import was successful, and then click
Close. z C cens
e. You should see the message
s a
a
)h
e. Under the Security tab, select From OWSM Policy Store, and then click Attach
c l
Policies.
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed o us
a st se t
z C cen
q e
u le li
s
e V ferab
e l ip rans
Ff. Innthe
-t Security Policies CreditCardService_Proxy dialog box, enter
o
n oracle/wss_username_token_service_policy in the Name field, and then click
Search.
Assumptions
The Oracle WSM security environment is configured to protect Service Bus services.
Respective Oracle WSM key is defined.
Respective user identities are created in Oracle WebLogic Server.
The Service Bus proxy service is secured with the
oracle/wss_username_token_service_policy Oracle WSM policy.
Tasks
s a
a
)h
1. Perform a positive test to verify that the proxy service is securely invoked successfully.
c l
a. In Service Bus Console, navigate to the Practice_07 > Proxy Service
n t el ide
folder.
b. Click the green arrow button in the Actions section to launch the
@ e Test u for the
Console
G
CreditCardService_Proxy proxy service.
ez den t
s q u tu
v a S
a (fc e this
a ed o us
a st se t
z C cen
q e
u le li
s
e V ferab
e l ip rans
Fc. Innthe
-t Test Console, enter and
values in the Payload field. Specify the card number as
n o
1234-1234-1234-1234 the card type as AMEX as shown in the screenshot
below.
Because the CreditCardService_Proxy proxy service is attached with the User Name
Token Oracle WSM policy, you notice a Security section in the Test Console with an
oracle/wss_username_token_client_policy policy name and with a csf-key property.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
etoratestb the proxy service.
e. Click e VExecutef
l i p n s
Ff.e You n - ra see the following response (in addition to SOAP headers).
tshould
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
c. On the Settings for User: joe page, click the Passwords tab. l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
e. Execute the same test case (the one you performed for the positive test)
c l)using the
t
Service Bus Test Console. You see the request fail with the following
n
l
e response, i d e
because joes password does not match the value used in the
@ e CredentialG uMap.
ez den t
s q u tu
v a S
a (fc e this
a ed o us
a st se t
z C cen
q e
u le li
s
erofauserb
3. Reset etheV f
password joe back to (See OraScleServiceBus12cPassword
i p
el -tran s
FFile).
non
Assumptions
The CreditCardService_Proxy proxy service is secured with the User Name Token
s a
Oracle WSM policy. a
)h
c l
n t el ide
The password of user joe is reinstated to See OracleServiceBus12cPassword
File.
@ e G u
ez den t
Tasks
s q u tu
c v a i s S
1. Add a SAML service Oracle WSM policy to the CreditCardValidationService web
( f h
service application.
da usManager,
ofeEnterprise
a. In the Target Navigation panel
e t expand WebLogic Domain >
sta se to
osb_domain and click AdminServer.
a
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
da use
c. On the Web Services page, clickeCreditCardValidationPort.
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
c. In the Test Console, enter values in the Payload field. Specify the card number as
1234-1234-1234-1234 and the card type as AMEX as shown in the screenshot
below. Make sure the Include Tracing option is selected.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f c va his S
f. Close the Test Console.
e d a se t
t a to u
s
a policy
3. Add a SAML client Oracle WSM stoe the CreditCardService business service.
z C e n
q u e e create
a. In Service Bus Console,
l ic a new session.
b. Navigate s l
b > Business Service and click CreditCardService.
to Practice_07
a
V
e nsfe r
l i p
Fe n-tra
no
s a
a
)h
c l
n t el ide
@ e
f. In the results table, select oracle/wss10_saml_token_client_policy G u and click
ez den t
Attach.
s q u tu
v a S
a (fc e this
a ed o us
a st se t
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
d.no Click Execute to test the proxy service.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Tasks
1. In the Service Bus console, import the configuration file, solution_7_sbconfig.jar,
provided in the /home/oracle/labs_SA/Practice_07/Solutions directory.
Note: If you already partially completed the practices and created the Practice_07 project,
then you must delete the existing Practice_07 project from the Service Bus Console before
s a
importing the solution file.
h a
2. c l)
Execute Task 4 of Practice 7-4 to test the security implementation.
l
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
a
)h
c l
n t el ide
@ e G u
Practices for ez Lesson
e t
n 8:
Service q u d
tu Availability
s BusSHigh
v a
a (fc e8 this
Chapter
a ed o us
a st se t
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
time.
Service Bus is a proven, lightweight SOA integration platform, designed for connecting,
mediating, and managing interactions between heterogeneous backend services, messaging
services, and legacy endpoints. The purpose of this practice is to provide the detailed steps of
architecting and implementing Service Bus for high availability that is critical for a mission-
critical production deployment.
In this practice, you create a new Service Bus domain (ServiceBusClusterDomain) that consists
of an administrative server and two clustered managed servers. You then test the load
balancing and failover capabilities. The backend service application
s
(CreditCardValidationService) is deployed on to the services domain. For simplicity of the a
h a
practice, you use the osb_domain as the services domain. You can view the architecture as
follows: l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Tasks
1. Navigate to the Practice_08 folder and run the script to create a new schema PROD2.
Open a Terminal window, navigate to the
/home/oracle/labs_SA/Practice_08/create_schema directory. Enter the
following command to run the RCU utility:
$ ./create_schema.sh
2. Start the Oracle Fusion Middleware Configuration Wizard by entering the following
commands in a Terminal window:
s a
$ cd /u01/app/oracle/fmw_admin/12.1.3.0/oracle_common/) h a
c l
common/bin
n t e l
i d e
$ ./config.sh
@ e G u
ez replace
3. In the Domain Location field, leave the directory the same except
e t
n base_domain
with ServiceBusClusterDomain_domain.
s q u tu d
v a S
a (fc e this
a ed o us
a st se t
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
4. Click Next.
[oracle_common]
ODSIXQuery 2004 Components 12.1.3.0 [oracle_common]
Oracle Enterprise Manager 12.1.3.0 [em]
Oracle WSM Policy Manager 12.1.3.0 [oracle_common]
Oracle JRF 12.1.3.0 [oracle_common]
WebLogic Coherence Cluster Extension 12.1.3.0 [wlserver]
c. Click Next.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
6. In the Application Location screen, verify the domain name and location.
Domain name: ServiceBusClusterDomain_domain
Domain location:
/u01/app/oracle/fmw_admin/12.1.3.0/user_projects/domains
Application location:
/u01/app/oracle/fmw_admin/12.1.3.0/user_projects/applications/Servi
ceBusClusterDomain_domain
7. Click Next. s a
8.
a
)h
Configure the Administrator username and password using the following settings:
c l
Name: weblogic
n t el ide
e G
Password: See OracleServiceBus12cPassword File (enter twice to confirm)
@ u
ez den t
9. Click Next.
q u tu
s 1.7.0_71/usr/java/jdk1.7.0_71
c v a
10. Select Production for Domain Mode and Oracle HotSpot
i s S for
JDK, and then click Next.
a f
( e th
d
e to us
t a
C as nse
u e z lice
sq rable
e V fe
e l i p a n s
F n-t r
no
14. Click Next after the JDBC Test is complete. If there are connection errors, click the Back
button to make the appropriate correction.
15. Click Next in the Component Data Sources page.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
a
)h
c l
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed o us
a st se t
z C cen
q e
u le li
s rabServers using the following settings, and then click Next when
e V Managed
18. Configure the
completed. f e
e l
Caution: n s the existing osb_server1 before creating these two managed servers;
ipDo notradelete
F simply
instead, o n -t rename the first server Node1, and then add the second server, Node2.
n
Add a managed server:
Name: Node1
Listen Address: 127.0.0.1
Listen Port: 7072
Server Groups: OSB-MGD-Servers-Combined
Add a second managed server:
Name: Node2
Listen Address: 127.0.0.1
Listen Port: 7073
Server Groups: OSB-MGD-Servers-Combined
19. Configure the cluster name as ServiceBusCluster and leave the other fields blank. Click
Next.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e
20. Assign servers to the clusters by using
dthea rightuarrow,
se and then click Next.
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
21. Keep the default settings in the Coherence Clusters screen, and then click Next.
22. Click Next in the Machine Configuration screen.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
24. Review the final Configuration screene da secluster was created.
to ensureuthe
a sta window.
25. Click Finish and close the terminal e to
z C cens
s q ue le li
e V ferab
e l ip rans
F n-t
no
Tasks
1. Start the Service Bus cluster in the ServiceBusClusterDomain_domain.
a. Open a new Terminal window and navigate to the
/u01/app/oracle/fmw_admin/12.1.3.0/user_projects/domains/Service
BusClusterDomain_domain/bin directory.
b. Start the Administration server by executing the following command in the Terminal
window:
$ gnome-terminal -title "Cluster AdminServer" e
./startWebLogic.sh
s a
When you are prompted, enter the administrative credentials of the a
)h
ServiceBusClusterDomain_domain as weblogic/ See c l
n t el ide
OracleServiceBus12cPassword File.
@ ewindow G uthe
ez dserver.
Note: This command starts the server in a separate Terminal
e t with
n You can also
q u
appropriate title so you do not confuse it with the osb_domain
tu
s the ./startWebLogic.sh
start it using a separate Terminal window withv ajust S
command.
a (fc e this
Wait for the AdminServer to starteup
d beforeustarting
s the managed servers. The
managed servers will takesa t a t o
few minutes each to start up.
c. Similarly, start the clustered
z e nse servers by executing the following commands in
Ca cmanaged
ue lEnter
the Terminal window.
boot-up.sq e li the credentials weblogic/welcome1 at the time of server
V f e r ab
l e
ipNode1" s
$ gnome-terminal
n -title "Node1" e "./startManagedWebLogic.sh
e
F n-t r a
no$Node2"
gnome-terminal -title "Node2" e "./startManagedWebLogic.sh
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
s a
a
)h
c l
c. Close the Test Console. n t el ide
@ e G u
z
ecluster. e n t
4. Test the failover capability of Service Bus in a Serviceq u
Bus d
tu+ C keys in the Node2
v as the S
(f e this
a. Shut down the Node2 managed server bycpressing Ctrl
Terminal window. Close the terminala window.
b. Open the Fusion Middleware Control
a ed Console
o us (localhost:7071/em) to view the
server details. t
as nse t
C
z lControl
c. In the Fusion Middleware
ce Console Target TheNavigation, select WebLogic
u e i
q Node2bisledown.
Domain > ServiceBusClusterDomain_domain. server health is displayed and
sthat
V fera
indicates
e
e l ip rans
F n-t
no
Assumptions
Unauthorized reproduction or distribution prohibited Copyright 2016, Oracle and/or its affiliates
Tasks
1. Start the Node1 managed server.
2. In the Service Bus Console for the ServiceBusClusterDomain_domain domain
(http://localhost:7071/servicebus), create a new session.
3. Add and load balance the credit service endpoints.
s a
h a
a. In Resources, navigate to the Practice_08 > Business_Service folder.
l c l)
b. Click the validationForCC Business Service to access the configuration page.
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
c. Create a session and click the validateForCC entry.
d. Click the Transport tab to view the Endpoint URIs.
Endpoint URI:
http://localhost:7001/ServiceC_context-root/CCService_A_Port
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
f.elip a n
Click Save.
s
Fg. Activate
n r
-t the session with an appropriate description.
n o
4. Test the service endpoint load-balancing capability.
a. Navigate to the Practice_08 > Proxy_Service folder
b. Launch the Test Console for the ValidateCredit Proxy service.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s rab and run the test a few more times, and then close the Test
e. ClickV the Backebutton
l e
ipConsole.n s f
e
F n-t r a
nothe service monitoring statistics.
5. View
a. In the Fusion Middleware Control Console, right-click SOA >
servicebus(AdminServer) and navigate to Home > Service Health.
s a
a
)h
c l
b. Click Search.
n t el ide
@ e G u
ez den t
s q u tu
v a S
a (fc e this
a ed o us
a st se t
z C cen
e
u le li Business Service to view the aggregate service metrics.
c. Select the validationForCC
q
Take a s b the metrics page and get familiar with the available data.
e V minutefetorabrowse
e l ip rans
F n-t
no
Note: Sometimes it can take a few minutes after starting one of the nodes for metrics
collection. If you do not see any metrics on this page, wait for a bit longer and try again.
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no
Tasks
1. Import the project file.
a. Start the servers by completing Practice 8-2, Task 1.
b. Start Service Bus Console for the ServiceBusClusterDomain using
http://localhost:7071/servicebus (See OracleServiceBus12cPassword File).
c. Create a new session.
d. Import the configuration file
s a
/home/oracle/labs_SA/Practice_08/Solutions/solution_8_sbconfig.j a
)h
c l
el ide
ar.
e. Activate the session.
e n t u
@ t G
2. Test load balancing and failover.
q u ez dtheenfailover capability of
a. Follow the instructions in Tasks 3 and 4 of Practice
Service Bus in a Service Bus cluster. v a s S tu
8-2 to test
s a
h a
l c l)
e nte uide
e z @ nt G
s q u tude
( f cva this S
e da use
a sta se to
z C cen
q e
u le li
s
e V ferab
e l ip rans
F n-t
no