Re: best way to unit test quartz routes

2014-05-06 Thread Minh Tran
Thanks, it did give me some hints. For anyone else interested, the solution I used was to configure the quartz component to not start the scheduler automatically as follows. In the unit test, inject this component in @Autowired private QuartzComponent quartzComponent; Then during t

Re: Calculation of in-flight messages in DefaultShutdownStrategy

2014-05-06 Thread chessami92
So I got a chance to look at this again and I think the root cause is an issue with how the AggregateProcessor responds to prepareShutdown. I think it responds correctely, but the DefaultShutdownStrategy does not consider the fact that doing the prepareShutdown routine may actually spawn more messa

Re: Error loop CannotGetJdbcConnectionException, from route

2014-05-06 Thread kalber
thank you, as always, that's it. Setting consumer.bridgeErrorHandler to true i can handle onException the error. Karlheinz - kh -- View this message in context: http://camel.465427.n5.nabble.com/Error-loop-CannotGetJdbcConnectionException-from-route-tp5750911p5750930.html Sent from the

AW: XSLT without Namespace

2014-05-06 Thread jhm
Have you tried your xsl with an xslt-tool on your input? Or with Xalan: java -classpath xalan.jar;xercesImpl.jar org.apache.xalan.xslt.Process -IN input.xml -XSL transform.xsl > output.xml Jan > -Ursprüngliche Nachricht- > Von: contactreji [mailto:contactr...@gmail.com] > Gesendet: Diens

Re: mocking sftp using CamelTestSupport in pollEnrich

2014-05-06 Thread Claus Ibsen
Hi You can use advice with, or some other ways. See bottom of this page for some links to read http://camel.apache.org/testing On Tue, May 6, 2014 at 2:28 PM, dhavalsdoshi wrote: > Hi, > > *Our Usecase:* On a certain trigger i.e. one file being touched in a > particular location. On this we want

Re: XSLT without Namespace

2014-05-06 Thread Grzegorz Grzybek
Hello By adding ``xmlns="http://www.openapplications.org/oagis/9"`` you actually output the document in this namespace, not in no-namespace. What is your input document? regards Grzegorz Grzybek 2014-05-06 14:41 GMT+02:00 contactreji : > Hi > > I am trying to use XSLT component. > > My incomin

XSLT without Namespace

2014-05-06 Thread contactreji
Hi I am trying to use XSLT component. My incoming xml is a raw xml structure which has no namespace informations associated with it. Is there a way to write xsl code to transform this into another xml structure. I tried xsl code as follows http://www.openapplications.org/oagis/9 ProcessRequi

mocking sftp using CamelTestSupport in pollEnrich

2014-05-06 Thread dhavalsdoshi
Hi, *Our Usecase:* On a certain trigger i.e. one file being touched in a particular location. On this we want to fetch a file from sftp server and then put it on a local file system. We are achieving this in the following way from(

Re: Optional sync for Netty

2014-05-06 Thread Muhammad Ichsan
On Tue, May 6, 2014 at 7:07 PM, Charles Moulliard wrote: > s optional, what did you plan to return to your client > calling your TCP Server exposed by nett There is a situation when my application is failed to get response from a third party, the client must also get the same condition. --

Re: Netty consumer fixed message size.

2014-05-06 Thread Cecilio Alvarez
Hi, thanks again claus. My idea was to send first a 100 length packet with the number of (100 length) packets, post them individually in the route and aggregate them. -- View this message in context: http://camel.465427.n5.nabble.com/Netty-consumer-fixed-message-size-tp5750868p5750923.

Re: best way to unit test quartz routes

2014-05-06 Thread Claus Ibsen
On Tue, May 6, 2014 at 1:36 PM, Minh Tran wrote: > No one else unit tests their quartz routes? > Well Camel tests its own components. So maybe take a peak there https://github.com/apache/camel/tree/master/components/camel-quartz/src/test > On 06/05/2014, at 8:51 AM, Minh Tran wrote: > >> Hi >>

Re: best way to unit test quartz routes

2014-05-06 Thread Minh Tran
No one else unit tests their quartz routes? On 06/05/2014, at 8:51 AM, Minh Tran wrote: > Hi > > Most of my routes start with either direct or jms. So to test I would use the > @MockEndpoints and set all my expectations then trigger the route using a > ProducerTemplate. But I'm struggling to

Re: Netty consumer fixed message size.

2014-05-06 Thread Claus Ibsen
Hi Its more of a netty question than Camel. You need to use a netty codec that matches the protcol you use for the data transfer. Is it 100 fixed length, or is it something else. eg how do you know when you got all the data for a "single message". There is some out of the box codec's for fixed l

Re: Error loop CannotGetJdbcConnectionException, from route

2014-05-06 Thread Claus Ibsen
Hi See these links http://camel.apache.org/why-does-my-file-consumer-not-pick-up-the-file-and-how-do-i-let-the-file-consumer-use-the-camel-error-handler.html http://camel.apache.org/how-do-i-handle-failures-when-consuming-for-example-from-a-ftp-server.html https://camel.apache.org/polling-consume

Re: Error loop CannotGetJdbcConnectionException, from route

2014-05-06 Thread kalber
Sorry i tiping erros, naturly its onException(CannotGetJdbcConnectionException.class). Nevertheless it does not work. - kh -- View this message in context: http://camel.465427.n5.nabble.com/Error-loop-CannotGetJdbcConnectionException-from-route-tp5750911p5750918.html Sent from the Camel -

Re: Optional sync for Netty

2014-05-06 Thread Charles Moulliard
If the response is optional, what did you plan to return to your client calling your TCP Server exposed by netty component ? On Tue, May 6, 2014 at 12:26 PM, Muhammad Ichsan wrote: > Hi All > > Is it possible to make response to be optional in Netty component? > > The following routes still mak

Re: Error loop CannotGetJdbcConnectionException, from route

2014-05-06 Thread Charles Moulliard
Syntax to be used is onException(CannotGetJdbcConnectionException.class) and not onExectption(CannotGetJdbcConnectionException.class). On Tue, May 6, 2014 at 11:51 AM, kalber wrote: > How can i handle this error ? On first exchange i get this error and the > program > loops over it. > > How can

Re: SMPP type connection.

2014-05-06 Thread PinkSs
Hi All, I am using amq+camel+smpp for working with SMSC. I used SMPP as camel coponent and use these endpoints in routes. I want to monitor on SMPP connection bind, logs every SMSC bind and unbind in separate file than activemq.log. Kindly guide me in approaching the mentioned event scenario.

Optional sync for Netty

2014-05-06 Thread Muhammad Ichsan
Hi All Is it possible to make response to be optional in Netty component? The following routes still make all the response sent back to its clients, regardless the body is. ${body} == 'intan' Thanks -- ~The best men are men who

Apache Camel | Custom Error Handler to control behavior per Exception.

2014-05-06 Thread manchandap
Apache Camel provides 2 ways for error handling at context level: /errorHandler /and /onException/. I am looking for a solution that provides best of both the worlds in one configuration. /*What I want is that I should configure one error handler (may be a custom one) and within that custom error

Error loop CannotGetJdbcConnectionException, from route

2014-05-06 Thread kalber
How can i handle this error ? On first exchange i get this error and the program loops over it. How can i intercept this error ? onExectption(CannotGetJdbcConnectionException.class) not works. -- error message --- [org.springframework.jdbc.Canno

Re: Weblogic cluster context loading issue

2014-05-06 Thread GrahamEwings2
Thanks Preben, this change to our ear deployment descriptor (weblogic-application.xml) fixed it: .. .. com.sun.xml.* We did try something similar before but I suspect there was another problem at the time or a just

RE: Issue with digital signature using raw keys

2014-05-06 Thread Siano, Stephan
Hi, I am not sure what you want to do; signature with X.509 keys or with PGP (the key rings in the data format indicate PGP whereas your route indicates X.509). Can you clear this up? Best regards Stephan -Original Message- From: sreejeb2 [mailto:sreejith.gopinat...@lumoenergy.com.au]

Re: Issue with digital signature using raw keys

2014-05-06 Thread Charles Moulliard
You get this exception (org.apache.camel.component.crypto.processor.SigningProcessor) because Camel processor is not able to retrieve from the header ' CamelSignaturePrivateKey'. I suspect that the crypto sign endpoint has not been able to load your file 'my_private_key.ppk'. Can you check that thi

Re: Netty consumer fixed message size.

2014-05-06 Thread Cecilio Alvarez
Thanks Claus for your answer. I'm sure I'm sending blocks of 100 bytes. You are right, sometimes is posting to the route two or more of this blocks together. Is there a way to ensure that each 100 bytes received, the netty component will post a new message? Or I have to create a custom decoder wi