camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "arepaka@hotmail.com" <arep...@hotmail.com>
Subject Re: Is camel-beanio working ?
Date Mon, 24 Sep 2012 17:40:58 GMT
*jar* beanio-2.0.1.jar

*config file*  beanio-2.0.1.jar\org\beanio\internal\config\beanio.properties
(I think the error is while loading this config file)

*blueprint*

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:camel="http://camel.apache.org/schema/blueprint"
       xsi:schemaLocation="
       http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
       http://camel.apache.org/schema/blueprint
http://camel.apache.org/schema/blueprint/camel-blueprint-2.10.0.xsd">
       
    
    <bean id="process" class="com.mycompany.ProcessEmpl"/>
    
    
    <bean id="emplAggregationStrategy"
class="com.mycompany.EmplAggregationStrategy"/> 
    

	
    <property-placeholder id="myblueprint.placeholder"
persistent-id="camel.blueprint"
xmlns="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0" >
        <default-properties>
            <property name="inputEndpoint" value="file:target/inbox"/>
            <property name="outputEndpoint" value="file:target/outbox"/>
        </default-properties>
    </property-placeholder> 

  	<camelContext id="emplBlueprintContext"
xmlns="http://camel.apache.org/schema/blueprint">
    <dataFormats>
    	<beanio id="emplUnmarshal" mapping="emplInfoInput.xml"
streamName="emplInfoInput"/>
    	<beanio id="emplMarshal" mapping="emplInfoOutput.xml"
streamName="emplnfoOutput"/>
  	</dataFormats>
    <route id="emplInfo">
        <from uri="file:camel/input"/>
        
        <unmarshal ref="emplUnmarshal"/>
        <split strategyRef="emplAggregationStrategy">
        	<simple>body</simple>
            <bean method="processEmpl" ref="process"/>
            <marshal ref="emplMarshal"/>
        </split>
        <to uri="file:camel/output"/>
    </route>
</camelContext>

</blueprint>



--
View this message in context: http://camel.465427.n5.nabble.com/Is-camel-beanio-working-tp5719695p5719866.html
Sent from the Camel Development mailing list archive at Nabble.com.

Mime
View raw message