Archive

Archive for the ‘BAM’ Category

How to disable BAM from EM Console

August 24, 2012 Leave a comment

We can disable Oracle BAM sensor data publishing from EM console completely or particular composite. For example In performace testing if you face any problem while publishing sensor data to BAM Server, you can disable the BAM Sensor publishing from EM Console and continue the performance test without restarting the SOA servers.

Disable BAM Sensor data publishing completely from all the composites
1. Login into EM Console
2. Expand SOA , Right Clik soa-infra(soa_server1) , Select SOA Administration and Click on BPEL Properties
3. Check Disable BPEL Monitors and Sensors option to disable the sensor.
 

DisableBAMSensorFromEM

DisableBAMSensorFromEM

 
Disable BAM Sensor data publishing from particular Composite
1. Select particular composite
2. Select Settings –> Click on Enable/Disable Business Monitoring..
3. Choose Disable All to disable sensor for particular composite.

 

DisableBAMInComposite

DisableBAMInComposite

 

DisableBAM

DisableBAM

Advertisements
Categories: BAM Tags: , , ,

ICommand utility for Importing and Exporting Oracle BAM Components

December 30, 2011 1 comment

ICommand is a command-line utility (and web service) for import, export, rename , clear and delete Oracle BAM (Business Activity Monitoring) components.

Location of Icommand Utility in SOA Suite installation directory

${MiddlewareHome}/Oracle_SOA1/bam/bin

 
Icommand usage on importing BAM Component(Active data Object)

./icommand -cmd import -file C:\RechargeDataObject.xml -delay 1000 -continueonerror 1

 
Icommand usage on exporting BAM Component(Active data Object)

./icommand -cmd export -name /Training/SampleSensorInformation -type dataObject -file C:/SOA11G/SampleSensorInfo.xml

Integrating BPEL and BAM in Oracle SOA11G using Sensors

October 6, 2011 1 comment

In this post we will see how to integrate BPEL with BAM Dashboard using BAM sensors in Oracle SOA 11G.

Here I have taken train ticket booking example. The User will pass the information which is required to book the train ticket. Here I have give a sample contract used for ticket booking sample.

Contract

Contract

2.Then I have created bpel process to book the ticket.

2.1 In the First Initialization activity will initialize the “dateOfBokking” to current time and “ticketStatus” to “PROCESSING”.

2.2. The ticketStatus will updated to “CONFIRMED” after checking the availability and payment completion.

BPELProcess

BPELProcess


3. Create Active Data Objects from BAM by entering into BAM application as BAM Architect.

BAMArchitect

BAMArchitect

4. Create a folder “TicketBooking” inside “Training” Folder.

CreateFolder

CreateFolder

5. Create a Data Object for monitoring the datas from BAM.

BookingDataObject

BookingDataObject

6. Then To Create different type of chart based on the Data Object column details, enter as Active Studio

BAMStudio

BAMStudio

7. Then Choose any Tab based on requirement. My reports or Shared Reports. Then Created one folder “TicketBookingDashboard” inside “Training” folder.
Then Click Create New Report to create a Report.

CreateReport

CreateReport

8. Then Choose one Template from the provided template. I have chosen First Column third one.

ChooseTemplate

ChooseTemplate

9. Choose the ChartType.

ChooseChartType

ChooseChartType

10. Select Updating Order List then choose Data Object –>Select Data Fields required to monitor –> Finish

ChooseDataObject

ChooseDataObject

DataFields

DataFields

11. Then Select 3D Bar chart. Then Choose Data Object –> Choose Chart values –> Finish

BarchartDataObject

BarchartDataObject

BarChartDataFields

BarChartDataFields

12. Select 3D Pie Chart. Select Data Object –> choose Data Fields –> Finish.

PieChartdataFields

PieChartdataFields

13. Now the Ticket Booking Dashboard will look like the below. Then Save the Report.

DashBoard

DashBoard

14. Now the Data Objects and Report are created for monitoring the Ticket Booking application.

15. Now configure the Sensor and Sensor Action on the BPEL process by clicking the monitor button.

MonitorMode

MonitorMode

16. Configure the Sensor in Initialization activity.

ConfigureSensor

ConfigureSensor

Init_CreateActivitySensor

Init_CreateActivitySensor

16.1. Add the Variable by clicking the + symbol.

createVariable

createVariable

XpathBuilder

XpathBuilder

Init_Sensor

Init_Sensor

17. Configure the Sensor at assignResponse activity . Because At assingResponse activity only the variable “ticketStatus” in inputVariable is updated to “CONFIRMED”. To monitor this ticketstatus varible put a sensor like shown above.

CompletionActivitySensor

CompletionActivitySensor

18. Create BAM Sensor Action from the bpel project structure like shown below.

CreateBAMSensorAction

CreateBAMSensorAction

18.1. Create BAM Sensor Action for InitActSensor configured at Initialization activity.

CreateSensorAction_1

CreateSensorAction_1

18.2. To get the Data Objects from BAM configure BAM Connection. To configure BAM Connection please click here. Select Operation is UpSert. If the record not available in BAM Data objects means it will insert the record else update the record into Data object table.

SelectBAMDataObject

SelectBAMDataObject

18.3. Select one Unique ID in the Data object table to update the record incase if it will be available. Then create Mapping XSL file by clicking + symbol.

CreateSensorAction_2

CreateSensorAction_2

Sensor Action Mapping file for sensor placed at Initialization activity.

InitSensorActionMapping

InitSensorActionMapping

19. Similarly configure Sensor Action for assiognResponse activity like configured before to monitor the final ticket status.

CompleteSensorAction

CompleteSensorAction

Create Sensor Action mapping file for sensor placed at assignResponse activity.

CompleteSensorActionMapping

CompleteSensorActionMapping

20. Deploy the BPEL process and Test teh BPEL. The BAM Dashboard will be updated automatically with any refresh button in the Dashboard.

The Sample Dashboard for ticket booking. based upon your reuirement you can design your dashbord based on the data object fields you have in Data Objects.

TicketBookingReport

TicketBookingReport

Configure BAM Connection in Jdeveloper11G

September 29, 2011 2 comments

1. Open Jdeveloper11G. In left side panel find Connections folder under Application Resources option like shown below.

CreateBAMConnection

CreateBAMConnection

2. Give BAM server details in fields which was given while configuring soa domain.

BAMConnection_ServerDetail

BAMConnection_ServerDetail

3. Click Test COnnection button.

Failing_BAMConnection

Failing_BAMConnection

Please follow the below steps to configure successful BAM connection.

4. Go to Admin Server Console using the url (http://:/console ).
4.1. Click the Deployments option given at the left side Domain Structure panel. Then find OracleBamAdapter component from the list of deployed components.

OracleBamAdapter_Component

OracleBamAdapter_Component

4.2. Click on OracleBamAdapter then Configuration –> Outbound Connection Pools then expand oracle.bam.adapter.adc.RMIConnectionFactory

OutboundConnectionPool

OutboundConnectionPool

4.3. Click on eis/bam/rmi and and enter Property Values column.
Note: To enter Property values column just clik inside the box and enter the value then Click Enter button to set the value

Input the data like shown below.

EnterPropertyValues

EnterPropertyValues

4.4. Save details and come again to OracleBamAdapter component to update the deployment with the Plan.xml file under the /Oracle_SOA1/soa/BAMPlan

Select OracleBamAdapter and Click Update button and change the Plan.xml path under BAMPlan folder like shown below and click Finish to update deployment.

ChangePlanPath

ChangePlanPath

5. Edit BAMICommandConfig.xml file placed under the location /Oracle_SOA1/bam/config/

  <ADCServerName>localhost</ADCServerName>
  <ADCServerPort>9011</ADCServerPort>

6. Edit BAMCommonConfig.xml file in the location /user_projects\domains\soa_domain\servers\bam_server1\tmp\_WL_user\oracle-bam_11.1.1\1o1igs\APP-INF\classes\config\

  <ADCServerName>localhost</ADCServerName>
  <ADCServerPort>9011</ADCServerPort>

7. Edit BAMServerConfig.xml file in the location /user_projects\domains\soa_domain\servers\bam_server1\tmp\_WL_user\oracle-bam_11.1.1\1o1igs\APP-INF\classes\config\

<ApplicationURL>http://localhost:9011</ApplicationURL>

8. Edit BAMWebConfig.xml file in the location /user_projects\domains\soa_domain\servers\bam_server1\tmp\_WL_user\oracle-bam_11.1.1\1o1igs\APP-INF\classes\config\

    <ServerName>localhost</ServerName>
    <ServerPort>9011</ServerPort>

9. Then restart BAM server and check oracle-bam (11.1.1) application is Active

OracleBAMStatus

OracleBAMStatus

10. Now test BAM connection by Clicking Test Connection button. Now the Status is success.

Success_BAMConnection

Success_BAMConnection