You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hise-commits@incubator.apache.org by rr...@apache.org on 2010/09/05 22:38:53 UTC
svn commit: r992906 - in /incubator/hise/trunk/hise-examples/osgi: ./
claimsHandling-bundle/ claimsHandling-bundle/src/main/resources/
claimsHandling-bundle/src/main/resources/META-INF/spring/
claimsHandling-karaf/src/main/resources/
Author: rr
Date: Sun Sep 5 22:38:53 2010
New Revision: 992906
URL: http://svn.apache.org/viewvc?rev=992906&view=rev
Log:
HISE-87: Dispatching requests from files through camel
Added:
incubator/hise/trunk/hise-examples/osgi/approve.xml
Modified:
incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/pom.xml
incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/ExampleTasks.wsdl
incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/META-INF/spring/beans.xml
incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/main/resources/features.xml
Added: incubator/hise/trunk/hise-examples/osgi/approve.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/approve.xml?rev=992906&view=auto
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/approve.xml (added)
+++ incubator/hise/trunk/hise-examples/osgi/approve.xml Sun Sep 5 22:38:53 2010
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+ <soap:Body>
+ <cla:approve xmlns:cla="http://www.insurance.example.com/claims">
+ <ClaimApprovalRequest>
+ <cla:cust>
+ <cla:id>123</cla:id>
+ <cla:firstname>Edmund</cla:firstname>
+ <cla:lastname>Zorn</cla:lastname>
+ </cla:cust>
+ <cla:amount>1234</cla:amount>
+ <cla:region>usa</cla:region>
+ <cla:prio>2</cla:prio>
+ <cla:activateAt>2009-01-02T12:00:00</cla:activateAt>
+ </ClaimApprovalRequest>
+ </cla:approve>
+ </soap:Body>
+</soap:Envelope>
Modified: incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/pom.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/pom.xml?rev=992906&r1=992905&r2=992906&view=diff
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/pom.xml (original)
+++ incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/pom.xml Sun Sep 5 22:38:53 2010
@@ -48,12 +48,17 @@
javax.wsdl,
META-INF.cxf,
META-INF.cxf.osgi,
+ META-INF.cxf.transport.nmr,
+ META-INF.cxf.binding.nmr,
org.apache.cxf.bus,
org.apache.cxf.bus.spring,
org.apache.cxf.bus.resource,
org.apache.cxf.configuration.spring,
org.apache.cxf.resource,
org.apache.cxf.transport.http_osgi,
+ org.apache.servicemix.cxf.transport.nmr,
+ org.apache.servicemix.nmr.api,org.apache.servicemix.nmr.api.event,org.apache.servicemix.nmr.api.internal,
+ org.apache.servicemix.camel.nmr,
org.apache.servicemix.util,
org.springframework.beans.factory.config
</Import-Package>
Modified: incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/ExampleTasks.wsdl
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/ExampleTasks.wsdl?rev=992906&r1=992905&r2=992906&view=diff
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/ExampleTasks.wsdl (original)
+++ incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/ExampleTasks.wsdl Sun Sep 5 22:38:53 2010
@@ -10,7 +10,10 @@ Business Machines Corporation, Oracle In
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.insurance.example.com/claims"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:nmr="http://cxf.servicemix.apache.org/transport/nmr"
+ xmlns:nmrb="http://cxf.apache.org/bindings/nmr"
+ >
<wsdl:types>
<xsd:schema elementFormDefault="qualified"
targetNamespace="http://www.insurance.example.com/claims"
@@ -102,7 +105,7 @@ Business Machines Corporation, Oracle In
</wsdl:binding>
<wsdl:service name="ClaimsHandlingService">
<wsdl:port name="ClaimsHandlingPort" binding="tns:ClaimsHandlingBinding">
- <soap:address location="http://localhost:8090"/>
+ <nmr:address location="nmr:ClaimsHandlingService"/>
</wsdl:port>
</wsdl:service>
@@ -120,7 +123,7 @@ Business Machines Corporation, Oracle In
</wsdl:binding>
<wsdl:service name="ClaimsResolvingService">
<wsdl:port name="ClaimsResolvingPort" binding="tns:ClaimsResolvingBinding">
- <soap:address location="http://localhost:9999"/> <!--some non existing destination, since it has to be initialized from callback EPR -->
+ <soap:address location="http://localhost:8181/ClaimsResolvingService"/> <!--some non existing destination, since it has to be initialized from callback EPR -->
</wsdl:port>
</wsdl:service>
Modified: incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/META-INF/spring/beans.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/META-INF/spring/beans.xml?rev=992906&r1=992905&r2=992906&view=diff
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/META-INF/spring/beans.xml (original)
+++ incubator/hise/trunk/hise-examples/osgi/claimsHandling-bundle/src/main/resources/META-INF/spring/beans.xml Sun Sep 5 22:38:53 2010
@@ -10,79 +10,74 @@
WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the
License for the ~ specific language governing permissions and limitations
~ under the License. -->
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
- xmlns:ins="http://www.insurance.example.com/claims" xmlns:osgi="http://www.springframework.org/schema/osgi"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
- http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
- http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
- ">
- <import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
- <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
-
- <osgi:reference id="hiseEngine" interface="org.apache.hise.api.HISEEngine"
- bean-name="hiseEngine" />
- <osgi:reference id="transactionManager"
- interface="org.springframework.transaction.PlatformTransactionManager"
- bean-name="transactionManager" />
-
- <bean class="org.apache.hise.engine.store.HISEDeployer"
- init-method="init" destroy-method="destroy">
- <property name="hiseEngine" ref="hiseEngine" />
- <property name="deploymentInfo">
- <bean class="org.apache.hise.engine.store.HISEDD">
- <property name="humanInteractionsResource" value="classpath:Htd1.xml"></property>
- <property name="tasksDI">
- <list>
-
+<beans xmlns="http://www.springframework.org/schema/beans"
+xmlns:camel-osgi="http://camel.apache.org/schema/osgi"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:ins="http://www.insurance.example.com/claims" xmlns:osgi="http://www.springframework.org/schema/osgi" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
+ http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
+ http://camel.apache.org/schema/osgi http://camel.apache.org/schema/osgi/camel-osgi.xsd
+">
+ <import resource="classpath:META-INF/cxf/cxf.xml"/>
+ <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
+ <import resource="classpath:META-INF/cxf/cxf-extension-http.xml"/>
+ <import resource="classpath:META-INF/cxf/transport/nmr/cxf-transport-nmr.xml" />
+ <import resource="classpath:META-INF/cxf/binding/nmr/cxf-binding-nmr.xml" />
+ <import resource="classpath:org/apache/servicemix/camel/nmr/camel-nmr.xml" />
+ <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml"/>
+
+ <osgi:reference id="hiseEngine" interface="org.apache.hise.api.HISEEngine" bean-name="hiseEngine"/>
+ <osgi:reference id="transactionManager" interface="org.springframework.transaction.PlatformTransactionManager" bean-name="transactionManager"/>
+ <bean class="org.apache.hise.engine.store.HISEDeployer" init-method="init" destroy-method="destroy">
+ <property name="hiseEngine" ref="hiseEngine"/>
+ <property name="deploymentInfo">
+ <bean class="org.apache.hise.engine.store.HISEDD">
+ <property name="humanInteractionsResource" value="classpath:Htd1.xml"/>
+ <property name="tasksDI">
+ <list>
<bean class="org.apache.hise.engine.store.TaskDD">
<property name="taskName">
<bean class="javax.xml.namespace.QName" factory-method="valueOf">
- <constructor-arg type="java.lang.String" value="{http://www.insurance.example.com/claims}Task1"></constructor-arg>
+ <constructor-arg type="java.lang.String" value="{http://www.insurance.example.com/claims}Task1"/>
</bean>
</property>
<property name="handler" ref="hiseJaxWSService1"/>
<property name="sender" ref="hiseJaxWSSender1"/>
</bean>
-
-
</list>
</property>
</bean>
</property>
</bean>
-
-
-
<bean id="hiseJaxWSService1" class="org.apache.hise.engine.jaxws.HISEJaxWSService" init-method="init">
<property name="hiseEngine" ref="hiseEngine"/>
- <property name="transactionManager" ref="transactionManager"></property>
+ <property name="transactionManager" ref="transactionManager"/>
</bean>
-
- <jaxws:endpoint id="Htd1" address="/ClaimsHandlingService/"
- implementor="#hiseJaxWSService1" serviceName="ins:ClaimsHandlingService"
- endpointName="ins:ClaimsHandlingPort" publish="true"
- wsdlLocation="classpath:ExampleTasks.wsdl" />
-
+ <jaxws:endpoint id="Htd1" implementor="#hiseJaxWSService1" serviceName="ins:ClaimsHandlingService" endpointName="ins:ClaimsHandlingPort" publish="true" wsdlLocation="classpath:ExampleTasks.wsdl"/>
<bean id="hiseJaxWSSender1" class="org.apache.hise.engine.jaxws.HISEJaxWSClient" init-method="init">
- <property name="wsdlDocumentLocation" value="classpath:ExampleTasks.wsdl"></property>
+ <property name="wsdlDocumentLocation" value="classpath:ExampleTasks.wsdl"/>
<property name="serviceName">
<bean class="javax.xml.namespace.QName" factory-method="valueOf">
- <constructor-arg type="java.lang.String" value="{http://www.insurance.example.com/claims}ClaimsResolvingService"></constructor-arg>
+ <constructor-arg type="java.lang.String" value="{http://www.insurance.example.com/claims}ClaimsResolvingService"/>
</bean>
</property>
</bean>
+ <jaxws:endpoint id="Htd2" address="/ClaimsReminderService" implementor="#hiseJaxWSService1" serviceName="ins:ClaimApprovalReminderService" endpointName="ins:ClaimApprovalReminderPort" publish="true" wsdlLocation="classpath:ExampleTasks.wsdl"/>
+ <bean id="sampleUsers" class="org.apache.hise.example.osgi.SampleUsers" init-method="init">
+ <property name="hiseEngine" ref="hiseEngine"/>
+ <property name="transactionManager" ref="transactionManager"/>
+ </bean>
- <jaxws:endpoint id="Htd2" address="/ClaimApprovalReminderService/" implementor="#hiseJaxWSService1" serviceName="ins:ClaimApprovalReminderService" endpointName="ins:ClaimApprovalReminderPort" publish="true" wsdlLocation="classpath:ExampleTasks.wsdl"/>
-
- <bean id="sampleUsers" class="org.apache.hise.example.osgi.SampleUsers" init-method="init">
- <property name="hiseEngine" ref="hiseEngine"></property>
- <property name="transactionManager" ref="transactionManager"></property>
- </bean>
-
-</beans>
+ <camel-osgi:camelContext xmlns="http://camel.apache.org/schema/spring">
+ <route>
+ <from uri="file:input?delete=true" />
+ <convertBodyTo type="javax.xml.transform.stream.StreamSource"/>
+ <enrich uri="nmr:{http://www.insurance.example.com/claims}ClaimsHandlingPort"/>
+ <to uri="file:input-processed"/>
+ </route>
+ <route>
+ <from uri="nmr:ClaimsResolvingService"/>
+ <to uri="file:output"/>
+ </route>
+ </camel-osgi:camelContext>
+</beans>
Modified: incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/main/resources/features.xml
URL: http://svn.apache.org/viewvc/incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/main/resources/features.xml?rev=992906&r1=992905&r2=992906&view=diff
==============================================================================
--- incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/main/resources/features.xml (original)
+++ incubator/hise/trunk/hise-examples/osgi/claimsHandling-karaf/src/main/resources/features.xml Sun Sep 5 22:38:53 2010
@@ -17,35 +17,7 @@
limitations under the License.
-->
<features>
- <feature name="hise" version="${hise.version}">
- <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.2.2_5</bundle>
- <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.openjpa/1.2.1_2</bundle>
- <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon/9.1.0.8_1-SNAPSHOT</bundle>
- <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.serp/1.13.1_2</bundle>
- <bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.java-persistence-api-1.1.1/1.4.0</bundle>
- <bundle>mvn:org.springframework/spring-orm/${spring.version}</bundle>
- <bundle>mvn:org.springframework/spring-jdbc/${spring.version}</bundle>
- <bundle>mvn:org.springframework/spring-aspects/${spring.version}</bundle>
- <bundle>mvn:org.apache.hise/hise-bundle/${hise.version}</bundle>
- </feature>
- <feature name="hise-h2" version="${hise.version}">
- <bundle>mvn:com.h2database/h2/1.1.117</bundle>
- <feature version="${hise.version}">hise</feature>
- </feature>
- <feature name="hise-sqlserver" version="${hise.version}">
- <bundle>wrap:mvn:com.microsoft.sqlserver/sqljdbc/1.2</bundle>
- <feature version="${hise.version}">hise</feature>
- </feature>
- <feature name="hise-oracle" version="${hiset.version}">
- <bundle>wrap:mvn:oracle/ojdbc5/11.1.0.6.0</bundle>
- <feature version="${hise.version}">hise</feature>
- </feature>
- <feature name="claims-handling-h2-example-osgi" version="${project.version}">
- <feature version="${hise.version}">hise-h2</feature>
- <bundle>mvn:org.apache.hise.hise-examples.osgi.claimsHandling/claimsHandling-bundle/${project.version}</bundle>
- </feature>
- <feature name="claims-handling-sqlserver-example-osgi" version="${project.version}">
- <feature version="${hise.version}">hise-sqlserver</feature>
+ <feature name="claims-handling-example-osgi" version="${project.version}">
<bundle>mvn:org.apache.hise.hise-examples.osgi.claimsHandling/claimsHandling-bundle/${project.version}</bundle>
</feature>
</features>