Hi

I think you need to use <from ref="incidentFileEndpoint"/> to indicate
a REFERENCE to an endpoint instead of using uri.


On Mon, Aug 3, 2009 at 3:32 AM, SoaMattH<[email protected]> wrote:
>
> I have the following camel context.
> Every thing works fine for an XML file that is parsed correctly
> However if an Exception occures it ends up in the processed folder
> rather than in the dead letter folder?
>
> Is there somthing I need to do to stop the processing amd leave the file in
> the
> dead letter folder ?? I would tend to think I am just missing a config?
>
>  <!-- =====================================================================
> -->
>  <!-- Camel Context.
> -->
>  <!-- =====================================================================
> -->
>  <camel:camelContext id="camel">
>
>    <camel:package>
>      au.gov.qld.emergency.integration.oms
>    </camel:package>
>
>    <!-- ===================================================================
> -->
>    <!-- Default JMX connector url:
> -->
>    <!--  "service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi/camel"
> -->
>    <!-- ===================================================================
> -->
>    <camel:jmxAgent id="agent" createConnector="true"/>
>
>    <!-- ===================================================================
> -->
>    <!-- Enpoints and processes
> -->
>    <!-- ===================================================================
> -->
>    <camel:endpoint  id="incidentFileEndpoint"
> uri="file://#{omsws.incident.file.landingzone}/"/>
>
>    <camel:dataFormats>
>      <camel:jaxb id="incidentJaxb"
>                  prettyPrint="true"
>                  contextPath="com.myco.incident" />
>    </camel:dataFormats>
>
>    <camel:route>
>      <camel:from uri="incidentFileEndpoint"></camel:from>
>      <camel:doTry>
>          <camel:unmarshal ref="incidentJaxb" />
>          <camel:to uri="bean:incidentReciverFile?method=processIncident" />
>        <camel:doCatch>
>          <camel:exception>java.lang.Exception</camel:exception>
>          <camel:to uri="file://#{omsws.incident.file.deadletter}/"/>
>        </camel:doCatch>
>      </camel:doTry>
>    </camel:route>
>  </camel:camelContext>
>
>
> Thanks Matt
> --
> View this message in context: 
> http://www.nabble.com/Trying-to-put-a-file-in-a-dead-letter-folder-tp24783883p24783883.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to