Camel on an executable jar

2011-10-17 Thread BAKHTI Mohammed
Hi, I have a problem when trying to run caml on an executable jar : Error : Message : Line 49 in XML document from class path resource [hermes-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-coplex-type.2.4.c: The matching wildcard is strict, but no declaratio

Re: Camel on an executable jar

2011-10-17 Thread Claus Ibsen
Hi The namespace is wrong xmlns="http://camel.apache.org/schema/spring/tata Should be xmlns="http://camel.apache.org/schema/spring On Mon, Oct 17, 2011 at 11:33 AM, BAKHTI Mohammed wrote: > > Hi, > > I have a problem when trying to run caml on an executable jar : > > Error : > Message : Lin

Re: Resolving beans in multi Camel Context use cases

2011-10-17 Thread Bernd Fischer
Hi Willem, based on camel-core-2.9-SNAPSHOT from last night I was able to get my toolbar green again ;-) Many thanks for working on the patch. Best Regards 2011/10/13 Willem Jiang : > Hi Bernd, > > I just have a quick of your patch, it sounds good. > I will work on the patch later today or tomor

HDFSOutputStream not closing

2011-10-17 Thread Daniel Baptista
Hi All, I have a route that is supposed to take a file from a directory and marshal it through to HDFS via the camel-hdfs component. Everything is working except the file never gets renamed from .opened (and it's empty, but I guess this is because the stream is open still). I am not specifying

Re: NotifyBuilder condition fails to match on an out/activemq endpoint

2011-10-17 Thread jason.parr
Raised: https://issues.apache.org/jira/browse/CAMEL-4551 -- View this message in context: http://camel.465427.n5.nabble.com/NotifyBuilder-condition-fails-to-match-on-an-out-activemq-endpoint-tp4689038p4909336.html Sent from the Camel - Users mailing list archive at Nabble.com.

Camel CXF component: SOAP 1.1 & 1.2 support

2011-10-17 Thread Andrei Shakirin
Hi, I have a small issue with Camel CXF component supporting both SOAP bindings: 1.1 and 1.2. If I take pure CXF service and specify: @ServiceMode(value = Service.Mode.MESSAGE) @BindingType(value = "http://www.w3.org/2003/05/soap/bindings/HTTP/";) this CXF Service accepts both kind of requests

Re: Camel CXF component: SOAP 1.1 & 1.2 support

2011-10-17 Thread Freeman Fang
Hi, My gut feeling is that this issue is kinda of similar with the one I encountered with servicemix-cxf-bc JBI component(which means only determine soap version from the servicemodel but ignore the real incoming message), could you do a quick test here? You can add an outInterceptor for yo

Re: Issue with recipientList and cxf in 2.8.0?

2011-10-17 Thread Claus Ibsen
On Wed, Oct 12, 2011 at 10:06 PM, sanjai wrote: > Hello all, > > I have a route that had been working fine in our production system.  The > route is fairly basic.  It simply reads messages of a JMS queue, does some > processing on the message and then sends the message to multiple cxf > endpoints.

Re: HDFSOutputStream not closing

2011-10-17 Thread Claus Ibsen
On Mon, Oct 17, 2011 at 12:23 PM, Daniel Baptista wrote: > Hi All, > > I have a route that is supposed to take a file from a directory and marshal > it through to HDFS via the camel-hdfs component. Everything is working except > the file never gets renamed from .opened (and it's empty, but I gue

RE: Camel CXF component: SOAP 1.1 & 1.2 support

2011-10-17 Thread Andrei Shakirin
Hi Freeman, Yep, interceptor fixes the problem! Regards, Andrei. -Original Message- From: Freeman Fang [mailto:freeman.f...@gmail.com] Sent: 17 October 2011 13:28 To: users@camel.apache.org Subject: Re: Camel CXF component: SOAP 1.1 & 1.2 support Hi, My gut feeling is that this issue

Specifying different destinations using camel

2011-10-17 Thread Gnanaguru S
Hi I have this scenario. I have three ActiveMQ brokers at different, I am using camels loadbalancing capability to avail HA. Below is my code: http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://www.o

Re: Camel Netty Producer creating new connection on every message?

2011-10-17 Thread Claus Ibsen
Hi Do you mind creating a JIRA ticket about this issue, so we wont forget? I have briefly looked into it, and I can also see a new port number is assigned. To fix this could potential be not as trivial to support asynchronous routing engine, for replies coming back. The Netty Pipeline may have t

Re: jid-malformed error in XMPP component

2011-10-17 Thread Claus Ibsen
Hi What version of Camel are you using? On Fri, Oct 14, 2011 at 8:42 PM, Jeff Segal wrote: > I'm testing the XMPP component against the public jabber.org servers > and seeing an unexpected problem when sending messages to a MUC. I > have both a consumer and producer route and the consumer can re

Re: Problems with jetty component and posts with more then one value for a field.

2011-10-17 Thread Claus Ibsen
On Thu, Sep 29, 2011 at 4:47 PM, Ujeen wrote: > Hi the camel masters, > > Just wanted to clarify the CAMEL-4211 fix works not only for http related > URIs? > > I created my own endpoint extending the DefaultEndpoint and passed this > uri="feed:trades?params=param1¶ms=param2" to it. > In the en

Re: Bindy CSV marshal does not properly quote values defined by the CsvRecord separator

2011-10-17 Thread Claus Ibsen
On Fri, Sep 16, 2011 at 4:06 AM, Willem.Jiang wrote: > Hi, > > After checking the code of BindyCsvFactory, I found the it only support the > separator to be char not  a string. > Maybe we should add some note's on the camel-bindy wiki page. > Yeah good idea, and possible add a JIRA to enhance bin

Re: Specifying different destinations using camel

2011-10-17 Thread Claus Ibsen
Hi You define 3 different with an unique id, one per different broker. eg And then refer to them using "activemq-foo:queue:someQueueName" and "activemq-bar:queue:someQueueName", and so forth. See details here http://camel.apache.org/activemq On Mon, Oct 17, 2011 at 2:08 PM

Re: Camel CXF component: SOAP 1.1 & 1.2 support

2011-10-17 Thread Freeman Fang
Hi, Thanks for the confirmation, could you please create an jira for this issue, I think we need address it for camel-cxf anyway. Freeman On 2011-10-17, at 下午8:07, Andrei Shakirin wrote: Hi Freeman, Yep, interceptor fixes the problem! Regards, Andrei. -Original Message- From: Fre

Transaction behaviour after ToDefinition

2011-10-17 Thread yopallars
Hi, I work in a project that's using Camel since 2.0-M1 (Spring version is 2.5.6) Since then, we've migrated all big batch business logic to the Camel-ActiveMQ framework, but since last big migration, with some million message processing per day, we've noticed that sometimes database data inserted

Re: jid-malformed error in XMPP component

2011-10-17 Thread Jeff Segal
Hi Claus, I'm using 2.8.1. Jeff On Mon, Oct 17, 2011 at 8:09 AM, Claus Ibsen wrote: > Hi > > What version of Camel are you using? > > On Fri, Oct 14, 2011 at 8:42 PM, Jeff Segal > wrote: > > I'm testing the XMPP component against the public jabber.org servers > > and seeing an unexpected pro

Re: Specifying different destinations using camel

2011-10-17 Thread Gnanaguru S
Claus, Please find my code below. As you said, Is this the way to achieve that ? * * * * Am i right, But the bundle is failed :( Regards Guru -- View this message in context: http://camel.465427.n

Re: Issue with recipientList and cxf in 2.8.0?

2011-10-17 Thread Achim Nierbeck
Hi Claus, sorry I didn't create one yet cause I was very busy delivering our release :) But there is a kind of related issue where I added some details. https://issues.apache.org/jira/browse/CAMEL-4503 I added another description of the strange behaviour I found http://markmail.org/message/hr7hwe

Re: Specifying different destinations using camel

2011-10-17 Thread Claus Ibsen
Hi The should be outside . So you have On Mon, Oct 17, 2011 at 2:19 PM, Gnanaguru S wrote: > > Claus, > > Please find my code below. As you said, Is this the way to achieve that ? > >     > >     >         > > *      class="org.apache.activemq.camel.comp

RE: HDFSOutputStream not closing

2011-10-17 Thread Daniel Baptista
Hi Claus, thanks for the response. I can raise a ticket and will come up with a unit test. Just for completeness the I am running windows XP and Java 1.6.0_14. I am trying to put a file into HDFS with Hadoop version 0.20 (1 name node 2 data nodes) where the cluster runs on GNU/Linux. Cheers, D

Re: HDFSOutputStream not closing

2011-10-17 Thread Claus Ibsen
On Mon, Oct 17, 2011 at 2:27 PM, Daniel Baptista wrote: > Hi Claus, thanks for the response. > > I can raise a ticket and will come up with a unit test. Just for completeness > the I am running windows XP and Java 1.6.0_14. > I am trying to put a file into HDFS with Hadoop version 0.20 (1 name no

Re: Camel CXF component: SOAP 1.1 & 1.2 support

2011-10-17 Thread Freeman Fang
FYI, I create CAMEL-4553 to track it. [1]https://issues.apache.org/jira/browse/CAMEL-4553 Freeman On 2011-10-17, at 下午8:14, Freeman Fang wrote: Hi, Thanks for the confirmation, could you please create an jira for this issue, I think we need address it for camel-cxf anyway. Freeman On 2011-

RE: HDFSOutputStream not closing

2011-10-17 Thread Daniel Baptista
I put a breakpoint and called close() on the HdfsOutputStream (via the display window in eclipse) and then file was created (correctly named and with the expected contents) so it appears that the issue is with either a non-terminating process resulting in the output stream remaining open or a

Re: Camel on Jboss AS7

2011-10-17 Thread Christian Schneider
How did you deploy your application? As a .war file? Christian Am 17.10.2011 14:36, schrieb komadich: Hello, is there perhaps a guide on how to deploy a Camel project on Jboss AS7 ? I tried it out but it seems that the Spring file is not being scanned because the component is not activated, so

Re: Specifying different destinations using camel

2011-10-17 Thread Gnanaguru S
Hi Claus, It worked . But I am missing indefinite number of files in the output directory. http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.o

Re: HDFSOutputStream not closing

2011-10-17 Thread Claus Ibsen
On Mon, Oct 17, 2011 at 2:48 PM, Daniel Baptista wrote: > I put a breakpoint and called close() on the HdfsOutputStream (via the > display window in eclipse)  and then file was created (correctly named and > with the expected contents) so it appears that the issue is with either a > non-termina

Re: Specifying different destinations using camel

2011-10-17 Thread Claus Ibsen
On Mon, Oct 17, 2011 at 2:52 PM, Gnanaguru S wrote: > > Hi Claus, It worked . But I am missing indefinite number of files in the > output directory. > What do you mean by "indefinite number of files .." ? > >     xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"; >     xmlns:xsi="http://www.

Re: Specifying different destinations using camel

2011-10-17 Thread Gnanaguru S
Sorry , My mind was totally blocked. For the program in the previous post, If i put four text files in inputdir, I am getting only two at my outputdir . This is my log from smx. 18:30:24,613 | INFO | file://inputdir/ | Tracer | 78 - org.apache.camel.camel-core -

Re: Specifying different destinations using camel

2011-10-17 Thread Claus Ibsen
The exception in the stacktrace is because you do some XML transformation or the likes, but the content in the files is not XML. On Mon, Oct 17, 2011 at 3:05 PM, Gnanaguru S wrote: > > Sorry , My mind was totally blocked. > > > For the program in the previous post, > > If i put four text files i

Re: Specifying different destinations using camel

2011-10-17 Thread Gnanaguru S
I dont understand claus, How can i get all the files without any loss. Is there anyother algorithm other than roundrobin ?. Regards Guru -- View this message in context: http://camel.465427.n5.nabble.com/Specifying-different-destinations-using-camel-tp4909674p4909821.html Sent from the Camel

RE: Camel CXF component: SOAP 1.1 & 1.2 support

2011-10-17 Thread Andrei Shakirin
Thanks Freeman, I was too slow. -Original Message- From: Freeman Fang [mailto:freeman.f...@gmail.com] Sent: 17 October 2011 14:45 To: users@camel.apache.org Subject: Re: Camel CXF component: SOAP 1.1 & 1.2 support FYI, I create CAMEL-4553 to track it. [1]https://issues.apache.org/jira/

RE: Need help with Camel http producer

2011-10-17 Thread Mohammad Shadab Ali
Hi, I got stuck into this and not able to proceed. Did anyone faced the similar? Thank you in advance. Regards, Shadab -Original Message- From: Mohammad Shadab Ali Sent: Friday, October 14, 2011 7:48 PM To: users@camel.apache.org Subject: RE: Need help with Camel http producer

Re: Specifying different destinations using camel

2011-10-17 Thread Claus Ibsen
Hi You do a XSLT transformation xslt://file:C:\ESB\Fuse_ESB_4.4\apache-servicemix-4.4.0-fuse-00-27\design.xsl Make sure the content is XML. On Mon, Oct 17, 2011 at 3:10 PM, Gnanaguru S wrote: > > I dont understand claus, > > How can i get all the files without any loss. Is there anyother algo

Re: Specifying different destinations using camel

2011-10-17 Thread Gnanaguru S
Ok. Let me check this load balance by generating some random messages. Using camel can i generate 1000 messages ?. How ?. Such that I will test it for load balancer . Regards Guru -- View this message in context: http://camel.465427.n5.nabble.com/Specifying-different-destinations-using-camel

Re: Camel on Jboss AS7

2011-10-17 Thread komadich
I deployed the following OSGi bundles: camel-core-2.8.0-fuse-00-08.jar camel-spring-2.8.0-fuse-00-08.jar commons-management-1.0.jar org.apache.servicemix.bundles.aopalliance-1.0_5.jar slf4j-api-1.6.1.jar slf4j-simple-1.6.1.jar spring-aop-3.0.5.RELEASE.jar spring-asm-3.0.5.RELEASE.jar spring-beans-

Re: Specifying different destinations using camel

2011-10-17 Thread Gnanaguru S
Hi Claus, The stacktrace was a older one, Since even though i changed my route code. Still SMX is running cached code. i did restart bundleid . and now its working good. Load balancing was done well using camel. Thanks for inventing camel claus. Since with it i am learning middleware scenario

Re: Camel on Jboss AS7

2011-10-17 Thread Christian Schneider
I think you will also need the spring osgi extender bundle. This will react on your context definition. Christian Am 17.10.2011 16:16, schrieb komadich: I deployed the following OSGi bundles: camel-core-2.8.0-fuse-00-08.jar camel-spring-2.8.0-fuse-00-08.jar commons-management-1.0.jar org.apache

Re: Camel on Jboss AS7

2011-10-17 Thread komadich
That did it. Thanks! I added the spring-osgi-io spring-osgi-core spring-osgi-extender -- View this message in context: http://camel.465427.n5.nabble.com/Camel-on-Jboss-AS7-tp4909749p4910212.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to setup a dynamic route using beans in Java w/o having a spring ref to them?

2011-10-17 Thread Jesus Castillo
Hi All, is this still an issue? I ran into the same situation and found out a way of deal with this without changing Camel, writing new features or dealing with the OSGi registry. Le me know. Jesus. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-setup-a-dynamic-rou

Re: Transaction behaviour after ToDefinition

2011-10-17 Thread railowsky
I have the same problem. Especially when I use the Splitter: If the message is really great, the problem occurs without your Sleep. -- View this message in context: http://camel.465427.n5.nabble.com/Transaction-behaviour-after-ToDefinition-tp4909694p4910743.html Sent from the Camel - Users maili

Re: Transaction behaviour after ToDefinition

2011-10-17 Thread yopallars
Yes, I saw the Splitter problem too. While looping the split, camel processes the next processor definition into the loop so the SendProcessor it's executed for each message while it's splitting. We've solved that using an external splitting queue to send the message be splitten and then go to dest

RE: Transaction behaviour after ToDefinition

2011-10-17 Thread yopallars
Yes, I saw the Splitter problem too. While looping the split, camel processes the next processor definition into the loop so the SendProcessor it's executed for each message while it's splitting. We've solved that using an external splitting queue to send the message be splitten and then go to de

Best practice with external code

2011-10-17 Thread Babel
Hello I'm currently developping a new camel component and at the same time the service this component will use. For this purpose, I would need to "start" this service even if I haven't defined a route using one of my endpoints. A general approach would be to start a "stand alone" service and con

Re: FTP producer and exception or transaction

2011-10-17 Thread pkleczka
Thanks Claus I have added JMS Transactions (still in Camel 2.4.0) with no effect. I assume I now need to upgrade to Camel 2.5 and add 'throwExceptionOnConnectionFailed' to the route I want to roll back. Can I upgrade to Camel 2.5 while keeping ActiveMQ 5.4.2? If so, how do I do the upgrade? On S

Re: Best practice with external code

2011-10-17 Thread yopallars
Hi, how do yo load your camel context? It's possible to start a service berfore adding de route definitions on the startup's process where camel context is configuring, per example, if you're on JBoss and implement a JBoss module using application listener. Another way I suppose could solve your qu

Hazelcast Component persistence

2011-10-17 Thread bvysocky
I am trying to use the hazelcast component in camel for creating queues. Is there a way to configure the queues to be persistent? This was added to hazelcast in version 1.9.3, which I belive camel 2.8.0 is using. I would really like to be able to configure hazelcast in spring so that I can use my d

Re: Camel Netty Producer creating new connection on every message?

2011-10-17 Thread maccamlc
No worries. I have just created an issue at https://issues.apache.org/jira/browse/CAMEL-4556 -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Netty-Producer-creating-new-connection-on-every-message-tp4844805p4912042.html Sent from the Camel - Users mailing list archive at

Re: Hazelcast Component persistence

2011-10-17 Thread Claus Straube
Hi, On 17.10.2011 23:13, bvysocky wrote: I am trying to use the hazelcast component in camel for creating queues. Is there a way to configure the queues to be persistent? This was added to hazelcast in version 1.9.3, which I belive camel 2.8.0 is using. I would really like to be able to configur

simple example for JDBC in osgi

2011-10-17 Thread Filippo Balicchia
Hello, I try to find a simple jdbc example that run under osgi environment. While browsing jira i found the following issue CAMEL-3096, but on repository I' don't find nothing. Could you, please suggest me a link where i can i found a simple example that show how save data in osgi environment wit

Re: Best practice with external code

2011-10-17 Thread Babel
Hi yopallars Both sollution seem usable in my case. As I am only (high) designing my component, I dont have yet every architectural information yet, but I thing you gave me enough to do it Many thanks -- View this message in context: http://camel.465427.n5.nabble.com/Best-practice-with-external