CronScheduledRoutePolicy

2011-07-04 Thread tnk
Hi, I am using CronScheduledRoutePolicy to start/stop route at specific time. I have defined configuration as follows: The problem is with route deployment. If the route is deployed between 10am and 4pm, by default it is stopped (autoStartup="false"), but according to route p

Re: Broker shutdown also shuts Camel application down

2011-07-04 Thread Sander Mak
I just added every bit of exception handling that I could think of to the example: http://pastebin.com/s9nHMihT None of these are triggered by this exception (no additional logging as specified), the program terminates with exact the same output. What am I doing wrong? Thanks, Sander On Tue, Ju

Re: Broker shutdown also shuts Camel application down

2011-07-04 Thread Sander Mak
Thanks, I must add that on the application that I encountered this on I do have an errorHandler defined. Will have to play a bit with it to find out why the exception is not caught then. Since the exception is logged at debug level I was under the impression that it is already handled by AMQ or Ca

Re: camel-cache: NPE for operations not requiring key

2011-07-04 Thread Willem Jiang
CAMEL-3771[1] Fixed this issue, can you try to use the latest released Camel 2.7.2 ? [1]https://issues.apache.org/jira/browse/CAMEL-3771 On 7/4/11 5:26 PM, alberto.zigoni wrote: I am using Camel 2.6.0 with the camel-cache component. I have noticed that Camel is throwing a NullPointerException

Re: CamelSpringTestSupport::createApplicationContext hangs

2011-07-04 Thread Willem Jiang
On Mon Jul 4 20:38:48 2011, Alistair Young wrote: found the prob - there was an activemq/camel instance already running. An error would have been nice... Can I have a quick look at your spring configuration? It could be helpful to find a way to warn the user if you can show us a small test c

Re: ProducerTemplate is not started

2011-07-04 Thread Willem Jiang
Camel JMS sending is based on Spring. The connector is created before the producer is started. Can you check the CamelContext states before you using ProducerTemplate to send the request ? On Mon Jul 4 20:38:21 2011, ctapobep wrote: No, it's 2.7 :) So it looks like the connection is too slow

Re: camel-cache: NPE for operations not requiring message body

2011-07-04 Thread alberto.zigoni
Subject was wrong, sorry. -- View this message in context: http://camel.465427.n5.nabble.com/camel-cache-NPE-for-operations-not-requiring-key-tp4549468p4550069.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel-cache: NPE for operations not requiring key

2011-07-04 Thread alberto.zigoni
I am using Camel 2.6.0 with the camel-cache component. I have noticed that Camel is throwing a NullPointerException if a message is sent to a camel-cache endpoint, having body set to null. This makes sense for operations such as ADD, where the input message body is used as a value, but not really

multipart/alternative mail not recognized

2011-07-04 Thread Donald Whytock
Hi all... I remember seeing posts regarding attachments before...not sure if this is more of the same... When I send email from Gmail I can send either rich-formatting or plain text. If I send plain text, my message gets through fine, with a content-type of "text/plain". But if I send it rich-f

Re: possible to route "bean invocation messages"?

2011-07-04 Thread Ashwin Karpe
Hi, You might want to use an enterprise integration pattern (EIP) such as wiretap http://camel.apache.org/wire-tap.html http://camel.apache.org/wire-tap.html for your usecase. A Topic by definition sends a copy of the message to all Subscribers. I am not sure what your route look like, however,

Re: broker shutdown all the time

2011-07-04 Thread Ashwin Karpe
Hi, Hmm, It seems your transport and network connectors use the same port as the transport connectors in config B (tcp://localhost:61616). Transport and networks connectors on the same machine for 2 different brokers should use different ports since one of the two brokers will have already captur

Re: Broker shutdown also shuts Camel application down

2011-07-04 Thread Ashwin Karpe
Hi, It is quite straightforward. When the ActiveMQ broker is down a connection cannot be created to the broker. If one already exists, the connection becomes stale and unusable due to non-availability of the broker. This would cause in your case an exception to be thrown. Since the exception is no

Re: camel-cache: NPE for operations not requiring key

2011-07-04 Thread Ashwin Karpe
Hi, Can you please provide the stack trace for the NPE that you are seeing. It seems like a bug, however it is hard to tell without the stack trace. Also can you provide a note on how this may be reproduced... Thanks and Regards, Ashwin... -

Re: Is there a way to change a bean config when testing?

2011-07-04 Thread Ashwin Karpe
Hi, It is possible to do via the Registry. You can store a bean reference in the registry and then refer to it. A aimple way to do this is to use the "Ref" component. http://camel.apache.org/ref.html http://camel.apache.org/ref.html You can also do this programmatically as shown in the Netty u

Is there a way to change a bean config when testing?

2011-07-04 Thread Alistair Young
Camel seems to load its own instances of beans in camel-config.xml testProcessor = (TestProcessor)ctx.getBean("testProcessor"); testProcessor.setPath("/home/test"); but when i do this: sendBody("activemq:topic:edirectoryprocessed", testuserCreatePayload); testProcessor has its old path. i.e. te

Using Restlet inside a servlet container

2011-07-04 Thread Stuart Churchill
Under Camel 2.7.2, I'm trying to establish a configuration to allow me to define Restlet consumers in my camel-context.xml, which are served by a servlet defined in web.xml, with the aim being to; a) permit the use of relative URI paths in camel-context, giving greater deployment flexibility

HTTP + All Permissive SSL + Proxy + Digest Auth

2011-07-04 Thread Don Doffe
After looking into the HTTP components I reckon the above-mentioned scenario is not possible without heavy tweaking with custom HttpClientConfigurer (since it overrides the configuration parameters specified in the URL). Is my understanding correct? -- View this message in context: http://came

Re: CamelSpringTestSupport::createApplicationContext hangs

2011-07-04 Thread Alistair Young
found the prob - there was an activemq/camel instance already running. An error would have been nice... -- mov eax,1 mov ebx,0 int 80h On 4 Jul 2011, at 13:18, Alistair Young wrote: > hello camel list, > > when testing a camel-config.xml the following never returns from ctx.refresh: > > p

Re: ProducerTemplate is not started

2011-07-04 Thread ctapobep
No, it's 2.7 :) So it looks like the connection is too slow today on my machine and Camel spends too much time to initiate the connection with broker while first sendin(!). My test thinks that it's too late and application doesn't respond and closes everything down. And now the magic happens - ther

Re: HTTP4 Client + SSL + Accept All Hostnames + Accept All certificates

2011-07-04 Thread Don Doffe
Thank you. That worked. And do I understand correctly that it will conflict with other configurers - for instance Basic Authentication defined as authUsername and authPassword ? -- View this message in context: http://camel.465427.n5.nabble.com/HTTP4-Client-SSL-Accept-All-Hostnames-Accept-A

Re: ProducerTemplate is not started

2011-07-04 Thread Jon Anstey
What version of Camel are you using? Wondering if you are using a SNAPSHOT such that the code may have changed since Friday :) On Mon, Jul 4, 2011 at 8:43 AM, ctapobep wrote: > Dunno why, but from time to time my integration tests fail with: > > /java.lang.IllegalStateException: ProducerTemplate

Re: XML to XSLT in camel using Queue's

2011-07-04 Thread Jon Anstey
If you want to send an element to a queue, you can just use xpath something like from("file:/path/to/my/files").setBody().xpath("/foo/bar").to("jms:queue:myQueue"); that will take the element and send that to myQueue. For information about using Camel in a blueprint container see http://camel.a

CamelSpringTestSupport::createApplicationContext hangs

2011-07-04 Thread Alistair Young
hello camel list, when testing a camel-config.xml the following never returns from ctx.refresh: public class SampleTest extends CamelSpringTestSupport { .. protected AbstractXmlApplicationContext createApplicationContext() { configFiles = new String[] {Paths.path("camel-context.xml")}; se

Broker shutdown also shuts Camel application down

2011-07-04 Thread Sander Mak
Hi all, I encountered this in an application I am working on, and it can be reproduced in a simple application: http://pastebin.com/VZHWKDRG The scenario: start ActiveMQ, start the simple app. Then shutdown ActiveMQ (ctrl+c in the window). Now the Camel application shuts down as well (logging out

ProducerTemplate is not started

2011-07-04 Thread ctapobep
Dunno why, but from time to time my integration tests fail with: /java.lang.IllegalStateException: ProducerTemplate has not been started at org.apache.camel.impl.DefaultProducerTemplate.getProducerCache(DefaultProducerTemplate.java:674) at org.apache.camel.impl.DefaultProducerTempl

possible to route "bean invocation messages"?

2011-07-04 Thread Andrè
hey, i have a topic and two consumer have subscribed to it, the producer of the topic is a proxy. so the bean invocation is proxied to both subscribers, but what if i want that only subscriber A should answer on this topic and the other (b) just listens and consumes also the "real payload", which

HTTP4 Client + SSL + Accept All Hostnames + Accept All certificates

2011-07-04 Thread Don Doffe
Hi, has anyone been successfull with setting up a client endpoint that would accept any given certificate/hostname? The endpoint I'm trying to access has self signed certificate. Camel 2.8.0 Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/HTTP4-Client-SSL-Accept-All

Re: timers processors and parallel processing

2011-07-04 Thread Willem Jiang
Can you create a simple unit test to demonstrate this error? It will be helpful for us to locate the issue. On 7/2/11 3:04 PM, vssundar wrote: I have a camel route in Groovy that simplified as below: from (timer).process(myProcessor).split().parallelProcessing().process(anotherProcessor) When

Re: how to route one request with socket communications by many times?

2011-07-04 Thread Willem Jiang
Hi, Maybe you need to implement the transport protocol yourself, and integrate it with Camel by using the camel component[1] [1]http://camel.apache.org/creating-a-new-camel-component.html On 7/4/11 9:10 AM, xiangqiuzhao wrote: yes, i means to be an application level handshake, but my client p

Re: broker shutdown all the time

2011-07-04 Thread Willem Jiang
Hi, I think it is activemq related issue, you should ask this question in the activemq users mailing list. On 7/3/11 12:36 AM, Andrè wrote: if have configuirated an BrokerA<-> BrokerB connection, but it is always doing this on and on ... what does this error mean ? config A http://activemq

Re: URI Escaping in HTTP (and other Producers)

2011-07-04 Thread Willem Jiang
It's hard to tell the query string by calling the URLEncoder in side of camel http producer, as there are some character means something to the URI like "=","?","&". Ben just showed us a way to build up the Query string by encoding the parameter, but the header should be set like this excha