Re: Alan: batch database insert

2011-06-03 Thread Claus Ibsen
Hi Can you explain a bit more what you mean? Camel does have a MyBatis component as well http://camel.apache.org/mybatis And in the end its all just Java code, so you can do whatever you want from a Java bean, if there is nothing out of the box that fits your needs. On Sat, Jun 4, 2011 at 1:12

A problem of XSLT

2011-06-03 Thread ext2
Hi: Recently I am using camel xslt to do xml transform; If the xslt processor's input is a xml string, the transform result is correct; But if the xslt processor's input is a org.w3c.xml.Node which is build from the exactly same xml string; then thing's will be very strange: If I using the lat

Alan: batch database insert

2011-06-03 Thread Alan Camillo
Hello! How can I make a batch insert in database using camel? Today I'm using mybatis to do the insert operations. But I believe they don't have suporte.

Re: deadLetterChannel with enrich

2011-06-03 Thread boday
hmmm...I just tried this and it worked as expected...I made a few tweaks in place of your bean/aggregator classes... @EndpointInject(uri = "mock:outbox") protected MockEndpoint mock; @Test public void test() throws Exception { mock.expectedM

Re: What is the meaning of payload in camel?

2011-06-03 Thread David Karlsen
Yup - that would be the inbout message payload. 2011/6/3 Hadrian Zbarcea > Thanks David, > > In code that means Exchange.getIn().getBody(); > > Hadrian > > On Jun 3, 2011, at 2:27 PM, David Karlsen wrote: > > > Yes - it is the main data/contents of a message (exchange). > > An exchange contains

Re: What is the meaning of payload in camel?

2011-06-03 Thread Hadrian Zbarcea
Thanks David, In code that means Exchange.getIn().getBody(); Hadrian On Jun 3, 2011, at 2:27 PM, David Karlsen wrote: > Yes - it is the main data/contents of a message (exchange). > An exchange contains the data plus headers. The headers are usually used to > control sending through an endpoint

Re: What is the meaning of payload in camel?

2011-06-03 Thread David Karlsen
Yes - it is the main data/contents of a message (exchange). An exchange contains the data plus headers. The headers are usually used to control sending through an endpoint - but is not part of the data sent. 2011/6/3 ltomuno > data? > content? > thanks -- -- David J. M. Karlsen - http://www

deadLetterChannel with enrich

2011-06-03 Thread Greg McFall
Hi, I have the following configuration: errorHandler( deadLetterChannel("direct:deadChannel") .disableRedelivery() ); from("direct:inbox") .enrich("direct:enri

Re: active mq message lost

2011-06-03 Thread boday
are you doing this in a unit test? If so, you might need to add a delay (Thread.sleep(1000), etc) to make sure the queue is processed before the unit test ends. otherwise, post your entire example so we can help you further... guddu wrote: > > Hi, thanks for the reply. > > Have tried in while

Re: Custom error handler around one endpoint

2011-06-03 Thread Alan Camillo
The doTry can be used too: http://camel.apache.org/try-catch-finally.html Alan Camillo On Thursday, June 2, 2011, Greg McFall wrote: > Hi, > As best I can tell, there is just one error handler for the entire context. > Is there a way to create a custom error handler that can be applied > around

Camel with Netty, strange requirement

2011-06-03 Thread Sachin
Hi , I am using Camel 2.6 with netty 3.2.3 version. My netty producer and consumer are working fine and i am able to process request and response using Object en/decoder. But i have a strange requirement. An other client, which is writing request on port, is not using camel or netty, it's a simple

Re:Re: are there chinese documents with camel

2011-06-03 Thread ltomuno
thanks At 2011-06-03 16:27:27,"Willem.Jiang" wrote: >I wrote some pieces of Chinese articles to introduce some basic concepts of >Camel. >You can find them in my Chinese blog. > >[1]http://jnn.iteye.com/category/27938 > >Willem > >-- >View this message in context: >http://camel.465427.n5.na

What is the meaning of payload in camel?

2011-06-03 Thread ltomuno
data? content? thanks

Re: are there chinese documents with camel

2011-06-03 Thread Willem.Jiang
I wrote some pieces of Chinese articles to introduce some basic concepts of Camel. You can find them in my Chinese blog. [1]http://jnn.iteye.com/category/27938 Willem -- View this message in context: http://camel.465427.n5.nabble.com/are-there-chinese-documents-with-camel-tp4447206p4450530.htm

Re: Camel email and SSL

2011-06-03 Thread Claus Ibsen
Camel uses Java Mail for the mail provider. So I suggest to take a look at how to configure that. Usually thats a bit cumbersome with System properties and whatnot. Also you may check some SSL based unit tests in camel-mail source code. On Thu, Jun 2, 2011 at 3:45 AM, Bharat Goyal wrote: > I am

Re: CamelContext start and stop question

2011-06-03 Thread Claus Ibsen
Hi See this FAQ http://camel.apache.org/running-camel-standalone.html Which has a link to this cookbook example how to keep it running http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html 2011/6/3 ltomuno : > java code: > CamelContext context = new DefaultCamelContext()

Re: CamelFileName over JMS - Bug or working as designed ?

2011-06-03 Thread Claus Ibsen
Hi Yes that is working as expected. The filename is relative. On Fri, Jun 3, 2011 at 8:53 AM, preben wrote: > Hi > > I'm sending a file over JMS using Oracle AQ. > > InRoute >               >                         >                         >                         >