Okay another problem now, 
I am trying to get the "In" message from a bean and keep it on a file
sender. 
The routing goes fine. but it couldn't write the message on the file. 

Here is some part form the pojo.

                DeliveryChannel channel1 = context.getDeliveryChannel();
                InOnly dsExchange3=jbiClient.createInOnlyExchange();
                dsExchange3.setService(new
QName("http://project/integration","fileSender";));
        
dsExchange3.getInMessage().setContent(exchange.getMessage("in").getContent());
                jbiClient.send(dsExchange3);

Do I have to do some XML processing? 

      ERROR - FileComponent                  - An error occured while
writing file
C:\apache-servicemix-3.3.1\samples\received\servicemix-4734755648828
790750.xml, deleting the invalid file
ERROR - FileComponent                  - Error processing exchange InOnly[
  id: ID:192.168.8.3-126519033ee-2:7
  status: Active
  role: provider
  service: {http://project/integration}receiver
  endpoint: receiverEnd
  in: Unable to display: java.io.IOException: Stream closed
]
javax.jbi.messaging.MessagingException:
javax.xml.transform.TransformerException
: java.io.IOException: Stream closed
        at
org.apache.servicemix.components.util.DefaultFileMarshaler.writeMessa
geContent(DefaultFileMarshaler.java:153)
-- 
View this message in context: 
http://old.nabble.com/accessing-cxfbc-provider-from-a-POJO-tp27244693p27260133.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to