Re: why my Processor throw Exception but producer can't throw it
Hi Can you be a bit more precise what the problem is? Its not totally clear from the code snippets and your description. And what version of Camel are you using? On Tue, Sep 20, 2011 at 6:23 AM, xiangqiuzhao xiangqiuz...@gmail.com wrote: Producer producer = endpoint.createProducer(); producer.process(exchange); //throw an Exception return (Maplt;String, Objectgt;)exchange.getOut().getBody(); //why run to here? my route defined from(direct://test).process(ProcesssA).to(myComponent://).process(ProcessB); if my ProcessA throw an Exception, but why it continue to call myComponent and processB. -- View this message in context: http://camel.465427.n5.nabble.com/why-my-Processor-throw-Exception-but-producer-can-t-throw-it-tp4821356p4821356.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
java.net.UnknownHostException: gmail.com
When I try to create a camel route which should send a mail with attachment from my mail account to other, using the example provided in http://camel.apache.org/mail.html and after resolving all dependencies I hit the error java.net.UnknownHostException: gmail.com stacktrace: org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Unknown SMTP host: gmail.com; nested exception is: java.net.UnknownHostException: gmail.com at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:419) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:342) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:357) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:346) at org.apache.camel.component.mail.MailProducer.process(MailProducer.java:44) at com.sap.esb.camel.test.Routing$1.configure(Routing.java:67) at org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:322) at org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:277) at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:263) at org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:603) at com.sap.esb.camel.test.Routing.main(Routing.java:43) Caused by: javax.mail.MessagingException: Unknown SMTP host: gmail.com; nested exception is: java.net.UnknownHostException: gmail.com at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1704) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:525) at javax.mail.Service.connect(Service.java:291) at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:389) ... 10 more Caused by: java.net.UnknownHostException: gmail.com at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:284) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:227) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1672) ... 13 more code-snippet: .. Endpoint endpoint = context.getEndpoint(smtp://mymai...@gmail.com?port=25password=myPasswordto=some_...@hismailserver.com); Exchange exchange = endpoint.createExchange(); Message in = exchange.getIn(); in.setBody(Hello ); in.addAttachment(books.xml, new DataHandler(new FileDataSource(toSend/madhav_books.xml))); Producer producer = endpoint.createProducer(); producer.start(); producer.process(exchange); ... what might be causing this ? -- View this message in context: http://camel.465427.n5.nabble.com/java-net-UnknownHostException-gmail-com-tp4822079p4822079.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: java.net.UnknownHostException: gmail.com
It seems like your computer do not have access to the google mail server. Make sure the host name is correct according to either imap or smtp. See for example this FAQ https://mail.google.com/support/bin/answer.py?answer=77659 On Tue, Sep 20, 2011 at 12:49 PM, yogeshks1990 yogesh190...@gmail.com wrote: When I try to create a camel route which should send a mail with attachment from my mail account to other, using the example provided in http://camel.apache.org/mail.html and after resolving all dependencies I hit the error java.net.UnknownHostException: gmail.com stacktrace: org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Unknown SMTP host: gmail.com; nested exception is: java.net.UnknownHostException: gmail.com at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:419) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:342) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:357) at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:346) at org.apache.camel.component.mail.MailProducer.process(MailProducer.java:44) at com.sap.esb.camel.test.Routing$1.configure(Routing.java:67) at org.apache.camel.builder.RouteBuilder.checkInitialized(RouteBuilder.java:322) at org.apache.camel.builder.RouteBuilder.configureRoutes(RouteBuilder.java:277) at org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:263) at org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:603) at com.sap.esb.camel.test.Routing.main(Routing.java:43) Caused by: javax.mail.MessagingException: Unknown SMTP host: gmail.com; nested exception is: java.net.UnknownHostException: gmail.com at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1704) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:525) at javax.mail.Service.connect(Service.java:291) at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:389) ... 10 more Caused by: java.net.UnknownHostException: gmail.com at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:284) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:227) at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1672) ... 13 more code-snippet: .. Endpoint endpoint = context.getEndpoint(smtp://mymai...@gmail.com?port=25password=myPasswordto=some_...@hismailserver.com); Exchange exchange = endpoint.createExchange(); Message in = exchange.getIn(); in.setBody(Hello ); in.addAttachment(books.xml, new DataHandler(new FileDataSource(toSend/madhav_books.xml))); Producer producer = endpoint.createProducer(); producer.start(); producer.process(exchange); ... what might be causing this ? -- View this message in context: http://camel.465427.n5.nabble.com/java-net-UnknownHostException-gmail-com-tp4822079p4822079.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
why camel can't use log4j.xml
i use log4j.xml in my project classpath, content like: log4j:configuration appender name=camel class=org.apache.log4j.RollingFileAppender layout class=org.apache.log4j.PatternLayout /layout filter class=org.apache.log4j.varia.LevelRangeFilter /filter /appender category name=org.apache.camel additivity=false priority value=debug/ appender-ref ref=camel/ appender-ref ref=camelerror/ appender-ref ref=camelstdoutd/ /category root priority value=all/priority appender-ref ref=async/ /root /log4j:configuration why can't logging the debug info into the camel.log file? -- View this message in context: http://camel.465427.n5.nabble.com/why-camel-can-t-use-log4j-xml-tp4822172p4822172.html Sent from the Camel - Users mailing list archive at Nabble.com.
Re: why my Processor throw Exception but producer can't throw it
On 9/20/11 12:23 PM, xiangqiuzhao wrote: Producer producer = endpoint.createProducer(); producer.process(exchange); //throw an Exception return (Maplt;String, Objectgt;)exchange.getOut().getBody(); //why run to here? my route defined from(direct://test).process(ProcesssA).to(myComponent://).process(ProcessB); if my ProcessA throw an Exception, but why it continue to call myComponent and processB. That is because the Camel Error Handler[1] can catch the error and do some work for you. I'm not sure which kind of error handler you configured for you route. -- View this message in context: http://camel.465427.n5.nabble.com/why-my-Processor-throw-Exception-but-producer-can-t-throw-it-tp4821356p4821356.html Sent from the Camel - Users mailing list archive at Nabble.com. -- Willem -- FuseSource Web: http://www.fusesource.com Blog:http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang
Re: Configuring multicasts broker
You need to pass a discovery broker URI to the ConnectionFactory: http://activemq.apache.org/discovery-transport-reference.html On Fri, Sep 16, 2011 at 9:06 AM, Muhammad Ichsan ich...@gmail.com wrote: I set up many ActiveMQ brokers using this: transportConnector uri=tcp://localhost:0 discoveryUri=multicast://default/ How to configure Camel to connect to the cluster? Because ports the brokers listen to is vary (not fixed). I'm new to clustering. Thanks -- ~The best men are men who benefit to others http://michsan.web.id 一緒に勉強しましょう! Yang berkualitas memang beda rasanya! http://rizqi-cookies.com -- Cheers, Jon --- FuseSource Email: j...@fusesource.com Web: fusesource.com Twitter: jon_anstey Blog: http://janstey.blogspot.com Author of Camel in Action: http://manning.com/ibsen
RE: NMR Thread Pool
Hi Łukasz, Thanks a lot. It seems that it is possible to configure nmr-consumer-specific thread pools by means of the org.apache.servicemix.nmr.cfg file. For example to configure thread pool for the consumer that consumes messages from MyEndpoint it is necessary to add the following settings into the org.apache.servicemix.nmr.cfg: nmr.endpoint.MyEndpoint.corePoolSize=20 nmr.endpoint.MyEndpoint.maximumPoolSize=20 nmr.endpoint.MyEndpoint.queueSize=4096 nmr.endpoint.MyEndpoint.allowCoreThreadTimeOut=true nmr.endpoint.MyEndpoint.keepAliveTime=6 Unfortunately it's hardly possible to configure endpoint-producer-specific thread pools, because endpoint names for nmr-producers look like this org.apache.servicemix.camel.nmr.ServiceMixProducer-org.apache.servicemix.nmr.core.util.UuidGenerator@daece7 Best Regards, Sergey Zhemzhitsky -Original Message- From: Łukasz Dywicki [mailto:l...@code-house.org] Sent: Monday, September 19, 2011 8:55 PM To: users@camel.apache.org Subject: Re: NMR Thread Pool Hey Sergey, As far I know it is possible for JBI components by setting particular thread pool properties. For example servicemix-cxf-se by modifing org.apache.servicemix.components.cxfse configuration. But it is not possible for camel-nmr. Best regards, Lukasz Hi all, I'm wondering whether it is possible to tune the NMR thread pool in camel? The reason is I would like to configure nmr consumer to use, for example, 20 threads. Is it possible to achieve? Best Regards, Sergey Zhemzhitsky ___ The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. If you need assistance please contact our Contact Center (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp ___ The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. If you need assistance please contact our Contact Center (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp
SMPP Bind timeout
Hi, I am trying to bind an endpoint to a Huawei SMSC. For some reason I am getting a bind timeout from servicemix. When I run a standalone jsmpp client it seems to bind fine. It must be some timer setting, but not sure where or what I should tell the Huawei guys to check for me. The error I get i shown below in hte stack trace. What setting could give the issue? The same code binds fine to another SMSC instance. Regards Jan Exception in thread SpringOsgiExtenderThread-14 org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: Endpoint[smpp://esb2@10.148.29.7:5019?password=** user=esb2systemType=cp]. Reason: java.io.IOException: Waiting bind response take time to long: N o response after waiting for 6 millis when executing bind with sessionId 8882f615 and sequenc eNumber 1 at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:362) at org.apache.camel.impl.ProducerCache.acquireProducer(ProducerCache.java:93) at org.apache.camel.impl.ProducerCache.startProducer(ProducerCache.java:124) at org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:144) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52) at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66) at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52) at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66) at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77) at org.apache.camel.processor.interceptor.TraceInterceptor.doStart(TraceInterceptor.java:429) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52) at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66) at org.apache.camel.processor.RedeliveryErrorHandler.doStart(RedeliveryErrorHandler.java:847) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52) at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66) at org.apache.camel.processor.DefaultChannel.doStart(DefaultChannel.java:146) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:83) at org.apache.camel.processor.MulticastProcessor.doStart(MulticastProcessor.java:893) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52) at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66) at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77) at org.apache.camel.processor.DelayProcessorSupport.doStart(DelayProcessorSupport.java:211) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52) at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66) at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52) at org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:66) at org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:77) at org.apache.camel.processor.interceptor.TraceInterceptor.doStart(TraceInterceptor.java:429) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) at
Re: NMR Thread Pool
Sergey, If you will use JBI component (in fact covered NMR with forced XML payload) you can specify service/endpoint name. Maybe this will let you to configure thread pool? Regards, Lukasz Hi Łukasz, Thanks a lot. It seems that it is possible to configure nmr-consumer-specific thread pools by means of the org.apache.servicemix.nmr.cfg file. For example to configure thread pool for the consumer that consumes messages from MyEndpoint it is necessary to add the following settings into the org.apache.servicemix.nmr.cfg: nmr.endpoint.MyEndpoint.corePoolSize=20 nmr.endpoint.MyEndpoint.maximumPoolSize=20 nmr.endpoint.MyEndpoint.queueSize=4096 nmr.endpoint.MyEndpoint.allowCoreThreadTimeOut=true nmr.endpoint.MyEndpoint.keepAliveTime=6 Unfortunately it's hardly possible to configure endpoint-producer-specific thread pools, because endpoint names for nmr-producers look like this org.apache.servicemix.camel.nmr.ServiceMixProducer-org.apache.servicemix.nmr.core.util.UuidGenerator@daece7 Best Regards, Sergey Zhemzhitsky -Original Message- From: Łukasz Dywicki [mailto:l...@code-house.org] Sent: Monday, September 19, 2011 8:55 PM To: users@camel.apache.org Subject: Re: NMR Thread Pool Hey Sergey, As far I know it is possible for JBI components by setting particular thread pool properties. For example servicemix-cxf-se by modifing org.apache.servicemix.components.cxfse configuration. But it is not possible for camel-nmr. Best regards, Lukasz Hi all, I'm wondering whether it is possible to tune the NMR thread pool in camel? The reason is I would like to configure nmr consumer to use, for example, 20 threads. Is it possible to achieve? Best Regards, Sergey Zhemzhitsky ___ The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. If you need assistance please contact our Contact Center (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp ___ The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. If you need assistance please contact our Contact Center (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp
RE: NMR Thread Pool
Łukasz, I don't like to use JBI in favor of Camel. I think that consumer thread pool configuration by means of org.apache.servicemix.nmr.cfg will fit my needs. Best Regards, Sergey Zhemzhitsky -Original Message- From: Łukasz Dywicki [mailto:l...@code-house.org] Sent: Tuesday, September 20, 2011 6:37 PM To: users@camel.apache.org Subject: Re: NMR Thread Pool Sergey, If you will use JBI component (in fact covered NMR with forced XML payload) you can specify service/endpoint name. Maybe this will let you to configure thread pool? Regards, Lukasz Hi Łukasz, Thanks a lot. It seems that it is possible to configure nmr-consumer-specific thread pools by means of the org.apache.servicemix.nmr.cfg file. For example to configure thread pool for the consumer that consumes messages from MyEndpoint it is necessary to add the following settings into the org.apache.servicemix.nmr.cfg: nmr.endpoint.MyEndpoint.corePoolSize=20 nmr.endpoint.MyEndpoint.maximumPoolSize=20 nmr.endpoint.MyEndpoint.queueSize=4096 nmr.endpoint.MyEndpoint.allowCoreThreadTimeOut=true nmr.endpoint.MyEndpoint.keepAliveTime=6 Unfortunately it's hardly possible to configure endpoint-producer-specific thread pools, because endpoint names for nmr-producers look like this org.apache.servicemix.camel.nmr.ServiceMixProducer-org.apache.servicemix.nmr.core.util.UuidGenerator@daece7 Best Regards, Sergey Zhemzhitsky -Original Message- From: Łukasz Dywicki [mailto:l...@code-house.org] Sent: Monday, September 19, 2011 8:55 PM To: users@camel.apache.org Subject: Re: NMR Thread Pool Hey Sergey, As far I know it is possible for JBI components by setting particular thread pool properties. For example servicemix-cxf-se by modifing org.apache.servicemix.components.cxfse configuration. But it is not possible for camel-nmr. Best regards, Lukasz Hi all, I'm wondering whether it is possible to tune the NMR thread pool in camel? The reason is I would like to configure nmr consumer to use, for example, 20 threads. Is it possible to achieve? Best Regards, Sergey Zhemzhitsky ___ The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. If you need assistance please contact our Contact Center (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp ___ The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. If you need assistance please contact our Contact Center (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp ___ The information contained in this message may be privileged and conf idential and protected from disclosure. If you are not the original intended recipient, you are hereby notified that any review, retransmission, dissemination, or other use of, or taking of any action in reliance upon, this information is prohibited. If you have received this communication in error, please notify the sender immediately by replying to this message and delete it from your computer. Thank you for your cooperation. Troika Dialog, Russia. If you need assistance please contact our Contact Center (+7495) 258 0500 or go to www.troika.ru/eng/Contacts/system.wbp
Re: Logging XSLT
see the http://camel.apache.org/xslt.html camel-xslt component and this https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/component/xslt/XsltRouteTest.java unit test for an example of doing the XSLT... not sure what you what you are trying to do with the protocol piece though...can you elaborate szaruba wrote: Hello, In our project we are using Apache Camel to create an interface between two software systems. While we transform XML Data we need to automatically create a XML based protocol. Here is an simplyfied example of what i mean: persons.xml: persons personfirstnamestefan/firstname/person personfirstnamelukas/firstname/person /persons transform.xsl shall transform the persons.xml file employees xsl:for-each select=persons/person employeenamexsl:value-of select=firstname//name/employee /xsl:for-each /employees After the transformation: employees employeenamestefan/name/employee employeenamelukas/name/employee /employees The protocol of this transformation should look like this: step name=XSLT Transformation date=17.09.2011 time=21:52 duration=00:11 result=Success msg type=Info date=17.09.2011, time=21:52 XSLT loaded /msg msg type=Info date=17.09.2011, time=21:52 persons/person/firstname stefan was selected and transformed to employees/employee/name stefan /msg msg type=Info date=17.09.2011, time=21:52 persons/person/firstname lukas was selected and transformed to employees/employee/name lukas /msg /step What's the easiest way to accomplish this? How would you solve this problem? - Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/Logging-XSLT-tp4814705p4824454.html Sent from the Camel - Users mailing list archive at Nabble.com.