Re: Disable CertificateValidation when Routing to HTTPS endpoint

2011-08-01 Thread Magnus Palmér
OK, forgot to post that I found solution to my problem, it is based on some of postings I've found but unfortunately I don't remember which one. Still, I had to modify it to get it to work for me so here is how I did it, in case someone else runs into the same problem: (javax.net.ssl.SSLPeerUnverif

Can't use jersey library classes within processor

2011-08-01 Thread dead_devil_66
Greetings. I had a similar issue with activemq and httpservlet, that, until now, stayed unsolved, in the activemq forum. Now, its camel and jersey classes. This is what its going on: this is my code: http://pastie.org/2307602 I have already included the jersey jar in the eclipse project buildpat

Re: Route does not shut down if there is no message on poll.

2011-08-01 Thread Willem Jiang
Hi, Can you check the timedroute route states ? CronScheduledRoutePolicy start or resume the route when the route status is ready. ServiceStatus routeStatus = route.getRouteContext().getCamelContext().getRouteStatus(route.getId()); if (action == Action.START) { if (r

Re: Get raw string from header without decosing?

2011-08-01 Thread Christian Müller
Martin, you use the ISO-8859-1 URL encoding, the String "Keine gültige GPS-Daten!" is converted to "Keine+g%FCltige+GPS-Daten%21". If you use UTF-8 URL encoding (which is what Jetty use by default), you will get "Keine%20g%C3%BCltige%20GPS-Daten!". And this works well in Camel (I added a unit test

Re: Get raw string from header without decosing?

2011-08-01 Thread Christian Müller
Which version of Camel do you use? Will have a look into TRUNK (2.9-SNAPSHOT)... Best, Christian

Re: apache came with quartz - no concurrent execution

2011-08-01 Thread Magnus Palmér
In Quartz the first parameter is seconds. To execute every 5 min cron-style use this cron expression (works for me): cron=0+0/5+*+*+*+? Brgds, Magnus Palmér 2011/8/1 dattu.1729 > Hi, > > I am using camel->quartz component. My use case is "Have to merge all > avaliable files for every 5 mins." I

Re: maxConcurrentConsumers and idling

2011-08-01 Thread Tommy Chheng
Ah, that's the parameter i needed. Thanks Jon! On Mon, Aug 1, 2011 at 11:16 AM, Jon Anstey wrote: > Maybe try setting maxMessagesPerTask to a positive value? Seems to imply > that this is required here when the feature was introduced: > https://jira.springsource.org/browse/SPR-2814 I haven't tr

Re: maxConcurrentConsumers and idling

2011-08-01 Thread Jon Anstey
Maybe try setting maxMessagesPerTask to a positive value? Seems to imply that this is required here when the feature was introduced: https://jira.springsource.org/browse/SPR-2814 I haven't tried this for myself though :) On Mon, Aug 1, 2011 at 3:19 PM, Tommy Chheng wrote: > Thanks Jon, > Upon re

Re: Xquery endpoing with Import Module

2011-08-01 Thread David Karlsen
Could it be useful to have an spring implementation which follow their Resource abstraction? 2011/7/30 jmandawg > > It looks like you might be able to do something even simpler by calling > resolveMandatoryResource from within the ModuleURIResolver.  That way it > will resolve the import in the s

Re: maxConcurrentConsumers and idling

2011-08-01 Thread Tommy Chheng
Thanks Jon, Upon reading the Spring documentation link, I'm a little confused about dynamic scaling of consumers. *There is another parameter IdleTaskExecutionLimit which states it should close idle resources:* The default is 1, closing idle resources early once a task didn't receive a message. T

Re: maxConcurrentConsumers and idling

2011-08-01 Thread Jon Anstey
FYI idleConsumerLimit will be configurable in the next release of Camel (2.9) see https://issues.apache.org/jira/browse/CAMEL-4290 On Mon, Aug 1, 2011 at 2:41 PM, Claus Ibsen wrote: > Hi Tommy > > Fell free to create a JIRA ticket as I there may be new/missing > options from DMLC that we have no

Re: maxConcurrentConsumers and idling

2011-08-01 Thread Claus Ibsen
Hi Tommy Fell free to create a JIRA ticket as I there may be new/missing options from DMLC that we have not exposed in camel-jms yet. http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/jms/listener/DefaultMessageListenerContainer.html On Mon, Aug 1, 2011 at 6:52 PM

Re: maxConcurrentConsumers and idling

2011-08-01 Thread Jon Anstey
That looks like a new property in Spring 3... we should add that option to camel-jms but for now you should be able to make your own custom JmsConfiguration class (extending the Camel JmsConfiguration one) and override configureMessageListenerContainer to set up your idleConsumerLimit value. You ca

Re: maxConcurrentConsumers and idling

2011-08-01 Thread Tommy Chheng
Looking at http://bsnyderblog.blogspot.com/2010/05/tuning-jms-message-consumption-in.html, it looks like the setting i need is idleConsumerLimit "idleConsumerLimit property specifies the limit on the number of idle consumers" I think this means that after the message volume decreases, the consumer

Re: To set client authentication false in SSL communication using Camel-netty 2.6

2011-08-01 Thread Jon Anstey
Most likely this was just the most common configuration used. Setting the auth required to false is possible though. To do this you'll need to set the sslHandler property on the producer URI. For example: ...to("netty:tcp://localhost:12345?sslHandler=#myHandler"); You can see how the default SSL

Re: apache came with quartz - no concurrent execution

2011-08-01 Thread Claus Ibsen
Hi You may want to try the simple trigger instead of cron based, to indicate a 5 minute gap between tasks. Or use the timer component instead? http://camel.apache.org/timer And use the fixedRate=true option. On Mon, Aug 1, 2011 at 4:49 PM, dattu.1729 wrote: > Hi, > > I am using camel->quartz co

Re: maxConcurrentConsumers and idling

2011-08-01 Thread Claus Ibsen
On Mon, Aug 1, 2011 at 5:12 PM, Tommy Chheng wrote: > I'm using camel 2.7.2 and connecting to an ActiveMQ queue with > concurrentConsumers=2&maxConcurrentConsumers=20 > > Should the current # of concurrent consumers dynamically adjust due to > message volume from activemq? > > At the start, when t

maxConcurrentConsumers and idling

2011-08-01 Thread Tommy Chheng
I'm using camel 2.7.2 and connecting to an ActiveMQ queue with concurrentConsumers=2&maxConcurrentConsumers=20 Should the current # of concurrent consumers dynamically adjust due to message volume from activemq? At the start, when there are 0 messages, the # of consumers is 2. When I have a large

apache came with quartz - no concurrent execution

2011-08-01 Thread dattu.1729
Hi, I am using camel->quartz component. My use case is "Have to merge all avaliable files for every 5 mins." In this example, I don't want to run parallel thread. final FileEndpoint enpoint = (FileEndpoint)endpoint("file:src/ip/ch1"); final RouteBuilder route = new Filecopy("mergeRoute",enpoint);

Re: using enums...

2011-08-01 Thread Claus Ibsen
Hi You should be able to use marshal(jacksonDataFormat) To use the data format you have configured. On Mon, Aug 1, 2011 at 3:45 PM, nizhnegorskiy wrote: > Hi, > > Can you tell me please, how do I use enum with Camel? > F.e. I have something like this: > public class Profile{ >        public A

Re: Remote Write and Read

2011-08-01 Thread Claus Ibsen
On Mon, Aug 1, 2011 at 3:21 PM, Gnanaguru S wrote: > > Hi Thanks. > > By the way. i want to do the same between two different fuse runninf in same > machin or between two machines. Like clusters. What is the solution in that > way. You can configure the activemq component to connect to a network

Re: cxf bean exposed via camel

2011-08-01 Thread Willem Jiang
I cannot tell any thing is wrong from your configuration. Can you double check the JBI endpoint uri[1] to make sure you servicemix client can access the enpdoint? BTW, you may need to go through the servicemix log to check if there error message which is related to access the JBI endpoint. W

using enums...

2011-08-01 Thread nizhnegorskiy
Hi, Can you tell me please, how do I use enum with Camel? F.e. I have something like this: public class Profile{ public ArrayList daypart_targets; public enum Days { MONDAY("monday"), TUESDAY("tuesday"); private Days

Re: Remote Write and Read

2011-08-01 Thread Gnanaguru S
Hi Thanks. By the way. i want to do the same between two different fuse runninf in same machin or between two machines. Like clusters. What is the solution in that way. Cheers Guru -- View this message in context: http://camel.465427.n5.nabble.com/Remote-Write-and-Read-tp4654906p4655016.html

cxf bean exposed via camel

2011-08-01 Thread Marcin Cylke
Hi I'm trying to expose cxf service bean via cxf-camel transport. Basically I want my bean to be accessible via JBI in Servicemix 4 - some other services refer this service by jbi endpoints. Theses services are also camel routers. Unfortunatelly the whole setup fails, the cxf bean never rece

Re: EIP pattern for blocking messages or delaying messages

2011-08-01 Thread Willem Jiang
How do you stop the route ? The myroute route will keep running until you stop the route from the camel context. On 8/1/11 6:10 PM, srimin wrote: Hi using FuseESB- apache-servicemix-4.4.0-fuse-00-43 'myroute' should be opened from 13.00 to 13:50, but i see the messages are pumping in every

Re: Remote Write and Read

2011-08-01 Thread Claus Ibsen
Hi You need to setup your activemq component as documented here http://camel.apache.org/activemq Basically more or less just this Where the brokerURL points to the remote ActiveMQ broker. On Mon, Aug 1, 2011 at 2:31 PM, Gnanaguru S wrote: > Hi, > > In the following code i am wo

Remote Write and Read

2011-08-01 Thread Gnanaguru S
Hi, In the following code i am working with the files in my local machine. If i want to read or write from remote machine or from some other node in the network. What should i do. Eg: i want to write into the inputqueue which is present with the ip 10.200.208.129 http://www.osgi.org/xmlns/blue

To set client authentication false in SSL communication using Camel-netty 2.6

2011-08-01 Thread Sachin
Hi, Is there any specific reason to hard code the client authentication to true. In SSLEngineFactory class i found below: serverEngine.setNeedClientAuth(true); I have a specific requirement to send message from a java client which i need not to be authenticated. Please suggest if it's possible.

AW: Get raw string from header without decosing?

2011-08-01 Thread heinrichheine
An addition: The resulting string is not "Keine g?ltige GPS-Daten!" but "Keine g?tige GPS-Daten!". The „l“ is missing. I think the decoding has eaten it. Von: Christian Mueller [via Camel] [mailto:ml-node+4654840-686073351-230...@n5.nabble.com] Gesendet: Montag, 1. August 2011 13:57 An: Heinema

AW: Get raw string from header without decosing?

2011-08-01 Thread heinrichheine
Well, i also thought about this but i was not able to find a switch on the jetty endpoint to configure the expected encoding. Von: Christian Mueller [via Camel] [mailto:ml-node+4654840-686073351-230...@n5.nabble.com] Gesendet: Montag, 1. August 2011 13:57 An: Heinemann, Martin Betreff: Re: Get r

Re: Get raw string from header without decosing?

2011-08-01 Thread Christian Müller
I will have a look on it later. But may be the header is set with a different encoding then you/Camel uses (UTF-8 vs. ISO-8859-1)? Best, Christian Sent from a mobile device Am 01.08.2011 11:43 schrieb "heinrichheine" : > Hi there, > > i have a simple jetty:http endpoint in my route that receives

Re: Route does not shut down if there is no message on poll.

2011-08-01 Thread cwhistler
I think I have this worked out now. I found the PollingConsumerPollStrategy interface so I created an EmptyPollStrategy class. I changed the begin() method to simply return true. In the commit() method I checked the numberPolled parameter and if it is 0 then I just stop the consumer. I left the

Re: EIP pattern for blocking messages or delaying messages

2011-08-01 Thread srimin
Hi using FuseESB- apache-servicemix-4.4.0-fuse-00-43 'myroute' should be opened from 13.00 to 13:50, but i see the messages are pumping in every minute as if there is no routePolicy applied. myroute.xml looks like this > class="org.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy

Get raw string from header without decosing?

2011-08-01 Thread heinrichheine
Hi there, i have a simple jetty:http endpoint in my route that receives a http-GET call. This call contains a parameter "message". This parameter can include some german umlauts which are encoded in URLEncoding. Example: url request looks like this: http://1.2.3.4/?message=Keine+g%FCltige+GPS-Dat