How did you put the message into the "activemq:SiebelOutbound2" ?
Can you make sure the message body is not null ?

Willem
----------------------------------
Apache Camel, Apache CXF committer
Open SOA http://www.fusesource.com
Blog http://willemjiang.blogspot.com
Tiwtter http://twitter.com/willemjiang 


ovalerio wrote:
> 
> Hi 
> 
> thanx a lot. I have already tried but no way.
> 
> this is my camel.xml configuration file:
> 
>   <camelContext xmlns="http://camel.apache.org/schema/spring";>
>     <route id="msginbound" trace="true" streamCache="true">
>         <from uri="activemq:SiebelOutbound2"/>
>         <doTry>
>             <to uri="validator:file:../conf/schema.xsd"/>
>             <to uri="activemq:valid"/>
>             <doCatch>
>                
> <exception>org.apache.camel.ValidationException</exception>
>                 <to uri="activemq:invalid"/>
>             </doCatch>
>             <doFinally>
>                 <to uri="activemq:finally"/>
>             </doFinally>
>         </doTry>
>     </route>
> </camelContext>
> 
> i keep opn receiving the text of the message null. I don't have this issue
> if i use activemq only (without camel). Any other clue?
> 
> 
> Received message of type [class
> org.apache.activemq.command.ActiveMQTextMessage] from consumer
> [ActiveMQMessageConsumer { value=ID:VPC2K3SRV-2781-1278006762086-2:1:1:1,
> started=true }] of session [ActiveMQSession
> {id=ID:VPC2K3SRV-2781-1278006762086-2:1:1,started=true}] |
> org.springframework.jms.listener.DefaultMessageListenerContainer |
> DefaultMessageListenerContainer-1
> 2010-07-01 19:53:36,034 | DEBUG | Endpoint[activemq://SiebelOutbound2]
> consumer receiving JMS message: ActiveMQTextMessage {commandId = 6,
> responseRequired = false, messageId =
> ID:VPC2K3SRV-1935-1278001989403-0:5:1:1:1, originalDestination = null,
> originalTransactionId = null, producerId =
> ID:VPC2K3SRV-1935-1278001989403-0:5:1:1, destination =
> queue://SiebelOutbound2, transactionId =
> TX:ID:VPC2K3SRV-1935-1278001989403-0:5:1, expiration = 0, timestamp =
> 1278006815162, arrival = 0, brokerInTime = 1278006815172, brokerOutTime =
> 1278006815943, correlationId = null, replyTo = null, persistent = true,
> type = SiebelJMSMessage, priority = 4, groupID = null, groupSequence = 0,
> targetConsumerId = null, compressed = false, userID = null, content =
> null, marshalledProperties = null, dataStructure = null, redeliveryCounter
> = 0, size = 1028, properties = null, readOnlyProperties = true,
> readOnlyBody = true, droppable = false, text = } |
> org.apache.camel.component.jms.EndpointMessageListener |
> DefaultMessageListenerContainer-1
> 
> 
> 
> 
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/XML-VALIDATION-with-CAMEL-tp510975p653695.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to