« Oracle SOA Suite 11g R1 Patchset 1 (aka 11.1.1.2.0) has been released | Main | PS1: JDeveloper SOA designer bug - hanging expression builder »

Preview feature: SCA Spring C&I support

As part of the new release, we also added support for Spring components.

The idea is to give the developer full Java support, and a powerful IOC container. Only thing needed, annotate your beans, and wire them on composite level.

This presents a few interesting challenges, especially around xml -> java and back serialization. As most SOA Suite users know, most the things you can do, are based on xml, via WSDL (e.g. BPEL & Mediator). With the spring support we also added the notion of <interface.java> for binding.ejb and implementation.spring

<?xml version="1.0" encoding="windows-1252" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:sca="http://xmlns.oracle.com/weblogic/weblogic-sca">
       
  <!--
    The below sca:service(s) corresponds to the services exposed by the 
    component type file: SpringPartnerSupplierMediator.componentType
  -->  
       
  <sca:service name="IInternalPartnerSupplier"
        target="InternalPartnerSupplierMediator"
        type="com.otn.sample.fod.soa.internalsupplier.IInternalPartnerSupplier"/>

<!-- the partner supplier mediator bean with the ejb -->
<bean id="InternalPartnerSupplierMediator"
class="com.otn.sample.fod.soa.internalsupplier.InternalSupplierMediator"
scope="prototype">
<!-- inject the external partner supplier bean -->
<property name="externalPartnerSupplier"
ref="IExternalPartnerSupplierService"/>
<!-- inject the quoteWriter -->
<property name="quoteWriter" ref="WriteQuoteRequest"/>
</bean>

<!-- declare local reference, that are wired outside -->
<sca:reference name="IExternalPartnerSupplierService"
type="com.otn.sample.fod.soa.externalps.IExternalPartnerSupplierService"/>

<sca:reference type="com.oracle.xmlns.Write_ptt"
name="WriteQuoteRequest"/>

</beans>

Here is how it looks like in the composite editor

11g_spring_component.jpg

Note:
In order to get the spring designer, and component - go to $JDeveloper_HOME/integration/seed/soa/configuration and open soa-config.xml. Search for ${SPRING_COMPONENT_NAME_L} and remove the xml comments (<!-- -->) around it. Restart JDeveloper :-).

Happy bean hunting .. I'll post a quick how-to shortly, trying to find space for my viewlet ..

TrackBack

TrackBack URL for this entry:
http://blogs.oracle.com/mt/mt-tb.cgi/15195

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on November 10, 2009 2:17 PM.

The previous post in this blog was Oracle SOA Suite 11g R1 Patchset 1 (aka 11.1.1.2.0) has been released.

The next post in this blog is PS1: JDeveloper SOA designer bug - hanging expression builder.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle