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 ..

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Tips and tricks straight from the SOA / BPM development team at Oracle HQ

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today