ESB 4.6 + csv:listBinding
fabiano.oss Jul 27, 2009 1:49 PMHi,
I'm try to do the tranformation of a csv file to the java class. For this I'm using the smoocks:
<?xml version="1.0"?> <smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:csv="http://www.milyn.org/xsd/smooks/csv-1.2.xsd" xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd"> <profiles> <profile base-profile="source-csv" /> </profiles> <csv:reader targetProfile="source-csv" fields="cdclasse,classe,codigo,produto,unidade" separator=";" quote='"'> <csv:listBinding beanId="produto" class="mtherm.esb.integracao.Produto"/> </csv:reader> </smooks-resource-list>
and jbossesb:
<action class="org.jboss.soa.esb.smooks.SmooksAction" name="transform-from-csv"> <property name="smooksConfig" value="/cvs.smooks" /> <property name="messageProfile" value="source-csv" /> <property name="java-output-location" value="produtos" /> </action>
But this configuration doesn't work:
[ActionProcessingPipeline] No fault address defined for fault message! To: JMSEpr [ PortReference < <wsa:Address jms:localhost:1099#queue/canal_esb/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost:1099/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:destination-name : queue/canal_esb/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] MessageID: 49077f28-0376-4e38-8604-1ff923937844 RelatesTo: jms:correlationID#49077f28-0376-4e38-8604-1ff923937844
If I take off the line <csv:listBinding..., my csv file is tranformed in xml file.
If I execute my smoock in the standalone way, works fine:
.... JavaResult r = new JavaResult(); smooks.filter(new StreamSource(inputStream), r,execContext); ....
I don't known what's problem with my configuration, can someone help me?