Advertisements
RSS

Tag Archives: EM

Using global token variables for SOA and BPM SCA composites

Our Oracle BPM project is going live and so many user stories lately are targeted to the operational support team to help them ease the deployment and maintenance through the environments.

Since we are already using the Credential Store Framework (blog here) to centralize the authentication/authorization part of our Oracle BPM (and SOA) SCA composites our application configuration plans became smaller and much easier to maintain.

The only deltas in our configuration plans through dev, tst, acc and prd are the endpoint hostname & ports in the different environment. Configuration plans are composite-specific so we need to maintain them for each SCA composite application and often have to change the same value in multiple plan files. For example: the Oracle WebCenter Content endpoint is used by many of our BPM processes.

So together with our Oracle Fusion Middleware administrator “Two Tone” Tony van Esch we dove into the fact that Oracle Fusion Middleware 11.1.1.7 (PS6) supports the ability to use Token Configuration. Also check Tony’s blogpost of our adventure. Tokens helps us, identical to the CSF, to define a global configuration which can be used by multiple SCA composites we deploy on the SOA-INFRA.

In your Enterprise Manager right-click on soa-infra -> SOA Administration -> Token Configuration

Token Configuration

Token Configuration

Here you will see 2 options, the second (most straightforward version) is to manually add, delete, modify changes and commit them straight into the Metadata Manager (MDM). The top option (Bulk Append Tokens) allow you to load large numbers of tokens from a mdm-url-resolver.xml file into the MDM.

Below is an example of an mdm-url-resolver.xml file which bulk loads multiple tokens:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
 <comment>URL Resolver file used by the Metadata manager</comment>
 <entry key="ucmProtocol">http</entry>
 <entry key="ucmHostname">ucm.rubix.local</entry>
 <entry key="ucmPort">7301</entry>
</properties>

To use these new token values from your MDM you simple configure your composites.xml to look something like this:

</pre>
<binding.ws port="..." location="${ucmProtocol}://${ucmHostname}:${ucmPort}/..." soapVersion="1.1">
</binding.ws>
<pre>

For us this simplified our release process (we actually don’t need any configuratuion plans anymore). This makes deployment through OTAP much easier and less likely to fail through any human mistake. Besided that when using automated deploy tooling it saves you on scripting numberous replace actions.

Some mental notes: !!

  • Tokens are only supported for the host, port & protocol at the ws.binding location and properties under the reference tag in your composites.xml. Don’t try using them in the import section
  • You will need to restart your SOA-INFRA after adding or modifying the tokens before they can be used (small disappointment here)
  • You cant create token names with special characters, host-name for instance won’t work. Also dots seem to be a problem, so just keep it simple and use camelcase.
  • Tokens don’t seem to work in MDS reference WSDLs
  • By default there is 1 default out-of-the-box variable named ${serverURL} which can be used in your composites.xml to point to the SOA server itself. It has to be configured on a different location in Enterprise Manager soa-infra under SOA Administration -> Common properties. Again a restart is necessary. I don’t really get the point myself of separating these settings in your SOA configuration. My advice would be that you define the soa binding tokens together with all other tokens and don’t use this.

serverUrl

References:

Advertisements
 
2 Comments

Posted by on 20-11-2013 in BPM, EM, Oracle, SOA Suite

 

Tags: , , ,

Allowing read-only access on SOA/BPM instances in Enterprise Manager

A simple blogpost, but this situation occured in our environment. In our case the project team woud like to support the releases and user acceptance tests (UAT) better and requested access to the Acceptance environment. The purpose was having read-only access to the SCA composite instances for the Oracle BPM/SOA developers.

So after checking the Oracle Enterprise Manager Roles section in the Oracle Fusion Middleware Administrators Guide we discovered that this was actually quite simple to arrange in Oracle Enterprise Manager.

First the user must be a member of the Monitor group in Weblogic to be able to login to the Enterprise Manager console.

CONSOLE

After that the admin must make sure that the Weblogic Monitors group is a member of the SOAMonitor Role in Enterprise Manager. This can be arranged by right-click soa-infra -> Security -> Application Roles
Search for all the roles by clicking on the play button, selecting SOAMonitor, edit and adding the group there.

EM2

 
Leave a comment

Posted by on 31-10-2013 in EM, Oracle

 

Tags: ,

Debugging Oracle BPM and Events (Oracle EDN)

We are using Oracle EDN events to communicate between Oracle BPM instances and from the Oracle ADF tasks to Oracle BPM. We use the correlation configuration to make sure the events arrive at the correct instances.

We had our share of problems with events during our project and it often took us some time to debug it. Since documentation is scattered across blogs, support sites and some manuals to configure the whole setup. The documentation about debugging your problems is very thin.

1. Check EM logging (duh)

All event steps are logged and the Enterprise Manager ECID (Execution Context ID) can help you detect what is going wrong.

2. Use Oracle Enterprise Manager’s ability to check the Business Events:

right click soa-infra and voila: Business Events! It shows an overview of registered events, amounts, subscriptions and is also the place for recovery of your events,

EM_EDN_small

3. Check your Oracle BPM project project_properties.wsdl file

This file contains the alias settings for your event correlation. In one case we had a “corrupt” file holding old alias settings which caused problems. Our file contained old correlation configurations and old variables.

Correlation definition not registered.
The correlation set definition for operation {http://schemas.oracle.com/events/edl/ZaakAuditEvent}ZaakAuditEvent, process myPartition/myBPMprocess!1.0*soa_e2845e50-44d9-4272-ba3d-47657fcfd9b7/myBPMprocess, is not registered with the server.

The correlation set was not defined in the process. Redeploy the process to the container.
ORABPEL-03802

and this message:

cannot find the property alias {someAlias} the message type {someType}
The property alias named in the error message was not defined in the BPMN/WSDL source. Check the BPMN/WSDL source to ensure that the property alias named in the error message had been defined. ORABPEL-03812

EM_LOG_small

4. Use the EDN DB logging servlet

As explained by the Oracle A-Team here. EDN comes with a EDN DB logging servlet to view logging information generated by the EDN component. It is located here:
http://<hostname&gt;:<port>/soa-infra/events/edn-db-log

Oracle EDN DB log

5. Examine the EDN database tables

Also explained by the Oracle A-Team in their blogpost. The 2nd option is to check the Oracle SOA-INFRA database tables EDN_EVENT_QUEUE_TABLE and EDN_OAOO_DELIVERY_TABLE. We had our portion of stuck event records in these tables, which apparantly block all other events as well.

References:

 
2 Comments

Posted by on 08-08-2013 in BPM, EDN, EM, Oracle

 

Tags: , , ,

It’s a cold winter in the Netherlands and that probably means to cold for Rob Zoeteweij for riding on his Harley. (joke shamelessly stolen from Jacco ;-) )

So he found time to publish a 40 page paper called “Oracle Enterprise Manager 12c Facts and Concepts” on his blog. Go check it out!

 

Enterprise Manager Cloud Control - Rob Zoeteweij

Oracle Enterprise Manager 12c was released October 2011 and introduced a complete rewritten framework for monitoring and managing Data Centre components.

Where Oracle Enterprise Manager evolved from just a Database Monitoring tool (EM 10.1) to include Middleware targets and targets within the complete Oracle Software Stack and even non-Oracle targets (like MS SQL Server, IBM Websphere, BEA Systems, Storage and Network devices and others…), to a Grid supporting and Database Lifecycle support tool. Enterprise Manager 12c now supports Lifecycle Management throughout the complete Oracle Software and Hardware Stack (Enterprise Manager OPS Center 12c), delivering “Application to Disk” monitoring, advanced management for Oracle Hardware, Virtualized environments and fully supporting Oracle’s Cloud concepts including PaaS (Platform as a Service), IaaS (Infrastructure as a Service), DBaaS (Database as a Service), MWaaS (Middleware as a Service) and several more being announced (Schema as a Service, Testing as a Service).

Even more than before, encouraging…

View original post 71 more words

 
Leave a comment

Posted by on 19-01-2013 in EM, Oracle

 

Tags: , ,

Auto Discovery of Targets in EM12c

Very interesting blogpost from Rob Zoeteweij, make sure to download his instructions (PDF) regarding the Auto Discovery feature of targets in Enterprise Manager 12c.

Enterprise Manager Cloud Control - Rob Zoeteweij

Using Enterprise Manager 11 and earlier, you needed to install an Agent any time a new Server was introduced in your datacentre.

Then after you would have created a new Database or any other Target Type, you would need to perform a discovery using the Agent that was monitoring the specific server.

Starting with Enterprise Manager 12c your Targets can get discovered automatically even if no Agent has been installed yet.

Auto Discovery in EM12c

 

View original post

 
Leave a comment

Posted by on 03-02-2012 in EM

 

Tags: , ,