Powered By Blogger

Friday, June 28, 2013

SOA 11g - Set/Get Preference Property and change it on runtime from Oracle EM

Deployment descriptors are BPEL process service component properties used at runtime by Oracle WebLogic Server, Oracle Enterprise Manager, or both. Basically it is like a variable whose value we can change from EM console without doing any code change.



Set Preference property in Composite.xml: First of all you need to define Preference property in Composite.xml file.
  •      Open Composite.xml file in source mode.
  • ·         Add Preference property in inside Component section. Here I am using it for Email so my property name is "bpel.preference.Email", you can give it any name as per your requirement.

                 bpel.preference.{CustomName}

 <component name="CustomerNotification">
        <implementation.bpel src=" CustomerNotification.bpel"/>
        <property name="bpel.config.transaction">required</property>
        <property name="bpel.config.oneWayDeliveryPolicy">sync</property>
        <property name="bpel.preference.Email">test@test.com</property>
    </component>

Set Preference property in Composite.xml: Use this preference property inside BPEL.

  • To use this property inside BPEL you need to use ora:getPrefernce("CustomName") function.

                              ora:getPreference('Email')

Change
Preference property from EM: Update preference property value in EM console.
  • We can update this property from MBean Browser inside EM console.
  •   Go to EM console (http://host:7001/em)
  •   Navigate to "Farm_base_domain" -> "Weblogic Domain" folder -> Right click on your domain -> "System MBean Browser"


  • Go to "oracle.soa.config" -> "soa-server" -> "SCAComposite" -> Choose your composite
  • Then navigate to "SCAComposite.SCAComponent" -> your component name -> Click on "properties"
  •  Now you can see all the preference properties that you defined in your composite. You can change preference property value here.

Click apply to take effect.


Thursday, June 27, 2013

Resume VMware virtual machine

Sometimes after suspending the virtual machine in VMWare it cannot resume and gives the following error


VMware Player unrecoverable error: (vmx)
Exception 0xc0000006 (disk error while paging) has occurred.
A log file is available in "__A folder Path__".  A core file is available in "__A folder Path__".  Please request support and include the contents of the log file and core file.  
To collect data to submit to VMware support, run "vm-support".
We will respond on the basis of your support entitlement.

and to fix that do the following:


  1. If you do not need that virtual machine you can delete it and setup a new one
  2. If you need that virtual machine you can erase the suspended state and return to you virtual machine as if you did not suspend it, to do so follow these steps:


  • Go to the folder contains the virtual machine..
  • Search for the the file with extension .vmem and have the name as same as the name of the virtual machine.
  • Delete the .vmem file and the go the VMware workstation and run you virtual machine from it.
  • And error message will appear just press OK.
  • When you asked about you virtual machine select I copied it.
  • You will be asked whether to take the ownership for this virtual machine or not, and you have to take the ownership.
  • When you are asked whether to discard the suspend state or not, you have to discard it.

Now your virtual machine will run normally as if you never suspended it.

Tuesday, June 18, 2013

BAM Email Configuration to Get Report on External email ID

Oracle BAM- Send the report to external email id’s through Alert

By default we can’t send the reports to an external email id’s from a BAM server, the reports only can be send to a users configured with Oracle BAM servers(through weblogic console).This document  will explain how to enable the BAM server to send the reports to the external email ids.

1.    Below screen show the details to change for the email drivers details .This should be configured in UMS (through em console)


2.    By default AlertActionAllowExternalEmail property in the BAMCommonConfig.xml file is set as false. Change the value of AlertActionAllowExternalEmail property to true in the BAMCommonConfig.xml file to enable the external email feature.

3.    The BAMCommonConfig.xml file can be located in the following location

/u00/app/fmw_desktop/Oracle/Middleware36/user_projects/domains/base_domain/config/fmwconfig/servers/bam_server1/applications/oracle-bam_11.1.1/config

Note: Change this as per convero environment.

Create an Alert to send the report to the External Email
1.    Login to the Architect window; select the Alert from the drop down list and click on Create New Alert.

2.    Click on Create New Rule

3.    Select the option as shown below (Change the action according to your requirement)

4.    Click on next and select the Action as shown below.


5.    Click on the select report link and select the report that need to be send to the external email when the alert is fired.


6.    Click on select user and enter the external email ids separated with semicolon as shown below


7.    The below is the email sent the external email is.



SOA Testing by QUASAR Testing tool

Quasar SOA Testing Tool

Quasar is a SOA testing tool. Allowing for easy monitoring and generation of SOA events.Quasar is the ideal light weight tool for unit testing a variety of SOA components. The Quasar is next generation tool for SOA testing to support varies component and protocols used with SOA implementation.

The most important support from Quasar testing tool are:

SOAP Client / Server
  •     Make SOAP requests (also available through command line interface)
  •     Reply to SOAP requests
  •     Unit test your SOAP services
  •     Regression test your SOAP services
  •     Stress / Performance test your SOAP components
JMS Client
  •    Publish JMS messages (also available through command line interface)
  •     Listen to JMS messages (also available through command line interface)
  •     Make JMS requests (also available through command line interface)
  •     Reply to JMS requests
  •     Browse JMS queues
  •     Unit test your JMS components
  •     Regression test your JMS components
  •     Stress / Performance test your JMS components
JMS Manager
  •     Create and Delete Users
  •     Create and Delete Groups
  •     Create and Delete Queues
  •     Create and Delete Topics
  •     Functionality is vendor dependent.
JDBC Client
  •     Insert records into tables
  •     Update records in tables
  •     Delete records from tables
  •     Browse database tables
For more information about tool ,you can http://www.integrationcentral.com/product.html

The tool interface looks like:

 
 Some sample of WebService and JMS testing is as follow:

Create SOAP Publisher Connection

User need to right click on SOAP under Publisher and Open WSDL Wizard:
 User need to pass the Webservice WSDL url:
 The tool will query the WSDL location,read WSDL contains and popuplate all meothds realted to Webservice:

Select all choices:


 You are done and now the Webservice points arr ready for Testing And it will also persisted by tool for next time use.


Redmine and BPEL Fault Integration

The support guys will work on daily fault conditions occurred with BPEL process due to any business fault or run time fault. Here I am showing how we can capture the raised fault from BPEL process and then call redmine web service to create the tickets for take action by production support guys.