Wednesday, December 29, 2010

Oracle SOA Suite 11g Skip activites by checking conditions

There might be scenarios where a user may want to skip certain activities based on certain conditions.Eg:- A user may want to skip the assign activity in case a value is already coming for a particular variable.In 10g this was done by using switch block.But in SOA Suite 11g the activities are coming with Skip condition.Almost all activites like assign,transform,invoke,receive etc has a skip condition block where a expression can be built to check for condition for which that activity should be skipped.

Tuesday, November 30, 2010

JDeveloper 11g Audit Project Code

Oracle JDeveloper 11g provides a functionality to audit the code and generate a report for the audit.All you have to do is select the project for which you want to generate the report. I have created a project Test Move file. I select that project in the Application Navigator.



Than go to the Build option in menu and select audit project name.jpr



A report will be generated with all the warnings errors and advisory for the project.
To export the content click on the export button.
You will get various options to export the file.
 I choose the audit-text and got a file like as shown below

Similarly it can be done for adf applications and application level.

Tuesday, November 16, 2010

SOA Suite 11g Edit DVM and Business Rules at runtime using console

Oracle SOA Suite 10g had the features of modifying Domain Value Maps(DVM) at runtime using the ESB Console and Business Rules using the rules author console.But first release of 11g did not provide such features and dvms could be updated only from IDE and same with business rules.But with the release of  SOA Suite 11.1.1.3  its not possible to modify DVM and business rules using composer. The link to access composer is
http://hostname:port/soa/composer.

The way to check for composer is to go to the Weblogic console using http://hostname:port/console and see the deployments section and check for composer Enterprise application.
   Click on soa/composer and than go to Testing tab
Log in to the soa composer using the above links
Enter the username and password.

Wednesday, November 10, 2010

Validate XML with XSD in JDeveloper 11g

If you have a xml and want to validate against in xsd it can be done in Jdeveloper 11g.

Suppose you have a simple xml as below

and the corresponding xsd for it is as follow and you want to validate it
Just Right Click on the XML file in Jdeveloper you will get Validate XML option in the menu.

Click on Validate XML and you will get the results.
Please note the targetnamespace should be their and same for both xsd and xml  and also xsd location should be mentioned in xml file.Like in my case i kept the xsd and xml in same project and xsd was under folder name xsd so in xml file it is reflected as

 xsi:schemaLocation="http://xmlns.oracle.com/TestSOA_jws/Test2/BPELProcess1 xsd/BPELProcess1.xsd"







Monday, November 8, 2010

Oracle Webcenter 11g Unable to load content in a frame. Frame content will load at the top level.

When we add a jspx page to the Oracle Webcenter 11g we get the above mentioned error.



This problem can be resolved by adding the following  context-param in web.xml
    oracle.adf.view.rich.security.FRAME_BUSTING and param-value as never


    Redeploy the code and the error will be gone.





    Add a WebPage to Webcenter Spaces 11g

    To add a webpage(like jspx) to a WebCenter User Account.Log in to Webcenter 11g.

    1. Go to Personal Space.On the right side click on the page options and select create page
    2. Then select the option Web Page
    3. Click on edit button as shown by oval in red
    4. Add the web url.
       


    Thursday, October 28, 2010

    How to install subversion

    Subversion is a open source tool which can be used for maintaining versioning of components.Subversion can now be directly integrated with Oracle Jdeveloper 11g and can be used for maintaining versioning of composites as well as adf projects.The most simple and easy installation for subversion is available by collabNet.Please follow the link below for the subverion installation.

    http://www.open.collab.net/downloads/subversion

    Oracle AIA 3.0 PIPS Available

    Following PIPS are currenlty available for oracle AIA 3.0

    # Oracle Utilities Customer Care and Billing Integration to Oracle Utilities Network Management System Release 3.0 Media Pack

    #Oracle Utilities Customer Care and Billing Integration to Oracle Utilities Meter Data Management Release 3.0 Media Pack

    Oracle AIA 3.0 Patch

    Oracle has released a patch for Oracle AIA 3.0 Number 9717829 for fixing following issues

    # 9612711:JMSUSER NEEDS ADDITIONAL PRIVILAGES FOR XA
    # 9675651:AIA SETUP PAGE FAILS TO LOAD ON SOA PS2 ENV
    # 9670535:AIA 11GR1 INSTALL FAULURE
    # 9493216:DEINSTALLER STUCK
    # 9580890:WLS MULTI-DATA SOURCE CREATION FOR RAC DB
    # 9558865:MIGRATION UTILITY: MIGRATED DVM HAS AN INCOMPLETE NAMESPACE DEFINITION
    # 9705591:DELETE MULTIDATASOURCE
    # 9699304:SIMPLE ORDER OF AIA DEMO ON SOA PS2 FAILS AT RANDOM COMPOSITES
    # 9752859:NEED TO MERGE PS2 RELEASE VERSION OF OER LIB WITH AIAHARVESTER
    # 9948383:JMS FILE STORE CONFIGURATION
    # 9976593:AIA FOUNDATION 3.0 CLUSTER INSTALL BUILD FAILED

    Oracle AIA 3.0 Node Manager I/O error while reading domain directory

    If you are getting the following error while installing Oracle AIA 3.0 on windows XP

    Traceback (innermost last):
    File "", line 1, in ?
    File "", line 123, in nmConnect
    File "", line 618, in raiseWLSTException
    WLSTException: Error occured while performing nmConnect : Cannot connect to
    Node Manager. : I/O error while reading domain directory

    Confirm the Note Manager is up by starting the Node Manager:
    $HOME\Middleware\wlserver_10.3\server\bin
    startnodemanager.cmd hostname port

    As a confirmation the Node Manager Username and Node Manager Password are valid, start the WLST prompt by:

    * Source the environment variables for WLST

    o $HOME\Middleware\wlserver_10.3\server\bin\setWLSEnv.bat
    o cd $HOME\Middleware\user_projects\domains\base_domain
    o Now execute 'java weblogic.WLST'

    * Within the WLST prompt execute "nmConnect('username','password','hostname','port','domain_name','$HOME\\Middleware\\user_projects\\domains\\base_domain')"

    If username and password are correct, no errors are returned

    This error is related to the name of the domain.It is tracked by Bug 10015151 in metalink.Oracle has currently provided the following solutions

    # Wait for the fix for Bug 10015151
    # Create a new domain that do not include an underscore, for example instead of 'domain_name' use 'domain'
    # Use the Silent Installation which bypass the Node Manager prompt. Modify the file on 'cd\Disk1\misc\responseFiles\SampleAIAFP_CompleteResponse.rsp'.

    Sunday, May 30, 2010

    Oracle Mediator Features

    Oracle Mediator
    • Oracle Mediator provides a lightweight framework to mediate between various components within a composite application.
    • Mediator converts data to facilitate communication between different interfaces exposed by different components, which are wired together to build a SOA composite application. For example, a Mediator can accept data contained in a text file from an application or service, transform it to a format appropriate for updating a database that serves as a customer repository, and then route and deliver the data to that database.

    • A Mediator component can evaluate routing rules, perform transformations, validate, and either invoke another service or raise another business event. You can use a Mediator component to handle returned responses, callbacks, faults, and timeouts.

    Oracle Mediator Features

    1. Content-Based and Header-Based Routing

      Oracle Mediator provides support for setting rules based on message payload or message headers.
      You can select elements or attributes from the message payload or the message header and based on the values, you can specify an action. For example, Mediator receives a file from an application or service containing data about new customers. Based on the country mentioned in the customer’s address,you can route and deliver data to the database storing data for that particular country. Similarly, you can route a message based on the message header.

    2. Synchronous and Asynchronous Interactions

      Oracle Mediator provides support for synchronous as well as asynchronous request response interaction. In a synchronous interaction, the client requests for a service and then waits for a response to the request.
      In an asynchronous interaction, the client invokes the service but does not wait for the response. You can specify a timeout period for an asynchronous interaction, which can be used to perform some action, such as raise an event or start a process.

    3. Sequential and Parallel Routing of Messages

      A routing rule execution type can be either parallel or sequential. You can configure the execution type from Routing Rules panel.

    4. Java Callout

      Oracle Mediator provides support for Java callout. Java callouts enable the use of Java code, together with regular expressions.

    5. Event Handling

      An event is a message data sent as a result of occurrence of an activity in a business environment. Oracle Mediator provides support for subscribing to business events or raising business events. You can subscribe to a business event that is raised when a situation of interest occurs.
      For example, you can subscribe to an event that is raised when a new customer is created and then use this event to start a business process such as sending confirmation email.
      Similarly, you can raise business events when a situation of interest occurs.
      For example, raise a customer created event after completing the customer creation process.

    6. Dynamic Routing

      Dynamic Routing separates the control logic, which determines the path taken by the process, from the execution of the process. You can create a dynamic routing rule from the Mediator Editor.

    7. Mediator Echo Support

      Oracle Mediator supports echoing source messages back to the initial caller after any transforms, validations, assignments, or sequencing are performed.

    8. Error Handling

      Oracle Mediator supports both fault policy-based and manual error handling. A fault policy consists of conditions and actions. Conditions specify the action to be carried out for a particular error condition.

    Oracle Service Bus 11g is Out.

    Oracle has released the new version of Oracle Service Bus 11g (11.1.1.3.0) which can now be installed as a managed Server does separating it being tightly coupled with a single weblogic server.It has been certified on the new verion of Weblogic Server 10.3.3.With it the following new versions are avaliable.
    - Repository Creation Utility 11gR1 (11.1.1.3.0)
    - Service Registry 11gR1 (11.1.1.2.0)
    - Enterprise Repository 11gR1 (11.1.1.2.0)
    - SOA Suite 11gR1 (11.1.1.3.0)
    - Oracle JDeveloper 11gR1 (11.1.1.3.0)

    The new Oracle Service Bus 11g requires you to upgrade the Repository Creation Utility 11gR1 to 11.1.1.3.0.
    Weblogic Server to 11.1.1.3.0
    If SOA Suite is also there than the corresponding upgrade 11.1.1.3.0 is also avaliable which is avaliable as patch.