Re: Mina route on servicemix - Error executing command: java.lang.NullPointerException

2012-03-19 Thread Claus Ibsen
Hi First of all I suggest to make sure it works *outside* OSGi. eg create a small unit test that tests that it works as expected. Then when its working, you knows its an OSGi deployment issue, which can be a beast by itself to tame. On Mon, Mar 19, 2012 at 11:42 PM, Francois Eyl wrote: > Hi guy

Re: Restarting the Camel route

2012-03-19 Thread Claus Ibsen
On Tue, Mar 20, 2012 at 5:28 AM, Frank wrote: > Craig, > > Could you tell me how I have to get the route id? Do I need to define the > route id? Please help me. > You can explicit set the route id, using .routeId("myRouteName") from().routeId("") ... > Thanks, > Frank > > -- > Vie

Re: Better Way to Achieve Parallel Processing of SQS Messages?

2012-03-19 Thread Claus Ibsen
Hi Daniel Yeah if its natural to process the messages out-of-order from the SQS then your patch is on the right track. Usually if you extend DefaultConsumer, then you can get the async processor using getAsyncProcessor(). An example could be the file consumer https://svn.apache.org/repos/asf/ca

Re: Restarting the Camel route

2012-03-19 Thread Frank
Craig, Could you tell me how I have to get the route id? Do I need to define the route id? Please help me. Thanks, Frank -- View this message in context: http://camel.465427.n5.nabble.com/Restarting-the-Camel-route-tp5578588p5579028.html Sent from the Camel - Users mailing list archive at Nab

Re: Restarting the Camel route

2012-03-19 Thread Craig Taylor
Not sure how the exchangeIn.ROUTE_STOP is working but the camel context has a start/stopRoute(routeId / RouteDefinition) you can use. On Mon, Mar 19, 2012 at 6:45 PM, Frank wrote: > My route looks like this: > > intercept().bean(DoAsIWish.class) > from("direct:start") > .bean(BeanA.class) > .b

Restarting the Camel route

2012-03-19 Thread Frank
My route looks like this: intercept().bean(DoAsIWish.class) from("direct:start") .bean(BeanA.class) .bean(BeanB.class) .bean(BeanC.class) .bean(BeanD.class) .to("log:print"); How can I stop the route in the middle and restart the route from the beginning? Suppose in the above example, I want to

Mina route on servicemix - Error executing command: java.lang.NullPointerException

2012-03-19 Thread Francois Eyl
Hi guys, I've created a very simple camel route using the mina component. This route actually uses a custom Codec and is packaged as osgi bundle. Whenever I deploy it to servicemix (apache-servicemix-4.4.1-fuse-03-06) the bundle is not getting the Active state but Installed. And of course whe

Re: Using Camel as a Fast Back-end Bus with REST services?

2012-03-19 Thread Reuben Garrett
Ludovic, It should be fine to pose your questions in multiple forums, as long as you clearly identify and cross-link (as you have). StackOverflow is becoming popular, and Claus has even answered several of my questions there. It's the "blind" cross-posts without reference links that become annoy

Re: Is anyone really using shiro framework with camel?

2012-03-19 Thread Ashwin Karpe
Hi, You can make the above route control even more fine-grained as following Instead of zone1 and zone2 you can add company:zone1 and company:zone2... In this case the above example could also authorize that the overall route itself & also fine grain access to approved company employees. Note t

Re: Is anyone really using shiro framework with camel?

2012-03-19 Thread Ashwin Karpe
Hi, Please check out the following and let me know if this works for you... Cheers, Ashwin... --- List permissionsList = new ArrayList(); Permission permission = new WildcardPermission("zone1:*"); permissionsList.add(permission); final S

Better Way to Achieve Parallel Processing of SQS Messages?

2012-03-19 Thread dacc
I'm trying to consume multiple exchanges from an SQS endpoint with autoack disabled, but SqsConsumer blocks on completion of the first one that arrives. I could have each of my workers poll SQS separately, but this will increase the number of requests by a factor of the number of workers, which do

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread soumya_sd
@Babak - Thanks again ! I just have one pom.xml. Won't the following remove all TypeConverters ? org.apache.maven.plugins maven-jar-plugin **/TypeConverter -- View this message in context: http://camel.465427.n5.nabble

Re: Is this possible in Camel

2012-03-19 Thread dvsridhar
Never mind, I found a way to do this. I did the following to make my scenario work. Initially for the remote endpoint I had jaxrs:server definition as well which caused binding exceptions. I removed that and then the example started working. All we need to is rsServer and rsClient configurations.

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread Babak Vahdat
Am 19.03.12 18:49 schrieb "soumya_sd" unter : >@Babak - Thanks. I've looked at that Tutorial before. I'm new to both >Drools >as well as Camel. But I'm learning. Hopefully, I can write my complete >experience once I'm successfully in making this all work together. So for sure you know much more a

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread soumya_sd
@Babak - Thanks. I've looked at that Tutorial before. I'm new to both Drools as well as Camel. But I'm learning. Hopefully, I can write my complete experience once I'm successfully in making this all work together. Just another question regarding removing the TypeCoverter file from the jar automa

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread Babak Vahdat
Hi Great! now you're indeed one step forward where the Drools Endpoint get's kicked in through Camel! And the exception you're observing is thrown from DroolsEndpoint class itself [1] which according to the exception message it indicates that you don't have a proper configuration: Could not fi

Re: message.copy() Does not perform deep copy of the message body.

2012-03-19 Thread Clay
Thanks Claus. -- View this message in context: http://camel.465427.n5.nabble.com/message-copy-Does-not-perform-deep-copy-of-the-message-body-tp5577607p5577646.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread soumya_sd
@Babak - I removed the file as you said and now i'm getting the following error :( 268 [ http-bio-8080-exec-5] SpringCamelContext INFO Apache Camel 2.10-SNAPSHOT (CamelContext: camelctx) is starting 269 [ http-bio-8080-exec-5] SpringCamelContext INFO Tr

Re: message.copy() Does not perform deep copy of the message body.

2012-03-19 Thread Claus Ibsen
Hi This is by design. Camel cannot know how to do deep copy of any arbitrary payload ppl may put in there. You have to do that yourself. Some EIPs have a onPrepare option, where you can do the custom deep copy, such as the multicast http://camel.apache.org/multicast On Mon, Mar 19, 2012 at 5:37

message.copy() Does not perform deep copy of the message body.

2012-03-19 Thread Clay
I am trying to copy a message so that I can alter it for subsequent processing Message newMessage = message.copy(); but the MessageSupport.copyFrom() method (which is called from MessageSupport.copy() ) does not copy the original message body to the newMessage body, but only a reference to t

Is this possible in Camel

2012-03-19 Thread dvsridhar
Hi, Can any one help me if the depicted scenario is possible with the current Camel 2.8.0 version or not. What we need to is the following. 1. Define RESTFul interface, should be able expose the API for multiple endpoints. (Virtual Proxies) 2. Should be able to associate multiple processors betw

Re: Aggregator and HawtDB - DB just seem to grow?

2012-03-19 Thread Claus Ibsen
On Mon, Mar 19, 2012 at 1:36 PM, mikaelfj wrote: > I'm stuck on Camel 2.6, but I can get hawtdb 1.6 and hawtbuf 1.4, which, > judging from my unit-tests, seems to work with Camel 2.6. > > Are you aware of any issues that are related to my problem, that is resolved > in hawtdb 1.6? > I am not awar

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread Babak Vahdat
Hi you could remove the TypeConverter file from inside that drools-camel JAR (after making a backup of it of course) and see if that could help, as there're no Camel Converter available inside that "org.drools.camel.component" package anyway! Babak -- View this message in context: http://camel.

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread soumya_sd
@ Babak - So can I do something from my end to resolve this problem ? -- View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-RuntimeCamelException-org-apache-camel-TypeConverterLoaderException-Failed-to-load--tp5575757p5577364.html Sent from the Camel - Users mailing

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread soumya_sd
@Surya - I added these dependencies. But I'm still getting the same exception. Can you please tell us more about your setup and how you are running drools-camel. -- View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-RuntimeCamelException-org-apache-camel-TypeCon

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread Babak Vahdat
@surya I assume you mean classes like the following: https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-camel/src/main/java/org/drools/camel/component/XStreamXml.java However that doesn't help in any way (and doesn't relate to this problem). If you have a package name inside

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread surya
@Babak In package "org.drools.camel.component" I see some classes that do reference bunch of Camel Converter classes. my best guess is it might not be an issue in this case..btw i have drools-camel 5.3.0 up and running'camel' should be nominated as logo for U.N :) it integrates everything se

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread soumya_sd
http://camel.465427.n5.nabble.com/file/n5577231/camel-drools.jpg camel-drools.jpg Claus Ibsen-2 wrote > > > > Can you check inside the drools-camel JAR file if there is a > xxxTypeConverter classes in the package > org.drools.camel.component > > If there is lets say FooTypeConverter class, the

Re: CXFRS producer removing JMS headers

2012-03-19 Thread Willem Jiang
It looks like a bug of cxfrs, I just fill a JIRA[1] for it. [1]https://issues.apache.org/jira/browse/CAMEL-5107 On Sun Mar 18 02:18:09 2012, cgsk wrote: Thanks for the response. But when I use spring-ws the header params are retained. why this behaviour is differing in cxfrs? -- View this mess

Re: FixedLengthRecord and OneToMany

2012-03-19 Thread surya
According to my understanding Bindy FixedLengthRecord Object lets you define each field/property of the object with @DataField annotation. In @DataField annotation see the documentation as follows: @DataField annotaion: "An annotation used to identify in a POJO which property is link to a field

Re: FixedLengthRecord and OneToMany

2012-03-19 Thread NigelMac
Perhaps I'm not explaining myself properly. It is commonplace to have recurring data sets in fixed length messages, for example, take this message: For simple structures, this could be mapped as follows: Not ideal, but it would work fine. Where this becomes a problem is when you have a large

Re: Camel CXF Transport

2012-03-19 Thread Willem Jiang
If you are using Camel CXF transport, it could be easy to add the option on the JMS endpoint by specifying the option on the URL. On Mon Mar 19 15:50:42 2012, Claus Ibsen wrote: Hi How do you put the message on the JMS transport? If you use the camel-jms component, you can configure it to whi

Re: Aggregator and HawtDB - DB just seem to grow?

2012-03-19 Thread mikaelfj
I'm stuck on Camel 2.6, but I can get hawtdb 1.6 and hawtbuf 1.4, which, judging from my unit-tests, seems to work with Camel 2.6. Are you aware of any issues that are related to my problem, that is resolved in hawtdb 1.6? Best regards Mikael -- View this message in context: http://camel.465427

Re: Choice() When() always generate empty predicate

2012-03-19 Thread Thibault
Hi, This solution works perfectly. Thanks you very much. Regards, Thibault 2012/3/16 Marco Westermann [via Camel] < ml-node+s465427n5571617...@n5.nabble.com> > Hi, you may try building the predicat by simple language: > > .when(simple("${property.input.format} == 'test'")) > > compare to http:/

Re: Aggregator and HawtDB - DB just seem to grow?

2012-03-19 Thread Claus Ibsen
On Mon, Mar 19, 2012 at 12:45 PM, mikaelfj wrote: > We are using Camel 2.6 and hawtdb-1.5.jar and hawtbuf-1.2.jar > There is newer releases of those. And yes the confirm will cleanup the resources. See the source code in camel-hawtdb. > > -- > View this message in context: > http://camel.4654

Re: Aggregator and HawtDB - DB just seem to grow?

2012-03-19 Thread mikaelfj
We are using Camel 2.6 and hawtdb-1.5.jar and hawtbuf-1.2.jar -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-and-HawtDB-DB-just-seem-to-grow-tp5576730p5576856.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Aggregator and HawtDB - DB just seem to grow?

2012-03-19 Thread Claus Ibsen
What version of hawtdb and Camel are you using? There was a bug a while back, that caused it to grow. That was fixed in a recent release of hawtdb. On Mon, Mar 19, 2012 at 12:06 PM, mikaelfj wrote: > Hi, > > We are using the aggregator EIP to collect a set of files from which we are > to genera

Aggregator and HawtDB - DB just seem to grow?

2012-03-19 Thread mikaelfj
Hi, We are using the aggregator EIP to collect a set of files from which we are to generate other documents. In order not to loose any of the aggregated documents, we are using the aggregator with the HawtDB as aggregation-repository. This has been running flawless for a few months, but two week

Re: Choice() When() always generate empty predicate

2012-03-19 Thread Thibault
Hi, Seems that I use the version 2011.02 of the servicemix-camel component. Since I don't see any newer version (or I don't know how to get them), I will try to use a simple expression, like said in another answer. Regards, Thibault 2012/3/16 Claus Ibsen-2 [via Camel] < ml-node+s465427n5571592..

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread Babak Vahdat
Hi I assume Hadrian could give us a hint here... The TypeConverter file located at: https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-camel/src/main/resources/META-INF/services/org/apache/camel/TypeConverter claims that there're should be at least a Class with one Method a

Re: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages

2012-03-19 Thread Claus Ibsen
Hi Can you check inside the drools-camel JAR file if there is a xxxTypeConverter classes in the package org.drools.camel.component If there is lets say FooTypeConverter class, then you can fix this in the META-INF/serivces/org/apache/camel/TypeConverter file in the same JAR. It has a reference to

Re: Camel CXF Transport

2012-03-19 Thread Claus Ibsen
Hi How do you put the message on the JMS transport? If you use the camel-jms component, you can configure it to which jmsMessageType you want. http://camel.apache.org/jms On Sun, Mar 18, 2012 at 6:04 PM, Chris Odom wrote: > I created a simple transport for my cxf jax-ws client which is backed w

Re: File endpoint getting actual filename ${file:nameonly}

2012-03-19 Thread Claus Ibsen
On Sun, Mar 18, 2012 at 9:25 PM, Christopher Love wrote: > Claus > > I am getting this error: > > Error setting property values; nested exception is > org.springframework.beans.NotWritablePropertyException: Invalid property > 'functionStartToken' of bean class > [org.apache.camel.language.simple.S