Re: from webservice to queue

2013-03-15 Thread Christian Müller
The cxf component supports also the jms protocol out of the box... Sent from a mobile device Am 15.03.2013 23:40 schrieb "santhosh" : > If you are trying to do CXF proxy .ie. receive all request to a CXF > webservice by setting up a proxy endpoint this will work > > address="http://localhost:90

Re: How to add HTTP Basic and Digest Auth on CXF component

2013-03-15 Thread Christian Müller
The cxf component supports basic auth (we use it in one of our project). Google will help you to find a code snippet... Sent from a mobile device Am 15.03.2013 23:27 schrieb "santhosh" : > If you dont get it sorted out with a CXF client,the simplest way would be > send the soap body to the route.

Re: from webservice to queue

2013-03-15 Thread santhosh
If you are trying to do CXF proxy .ie. receive all request to a CXF webservice by setting up a proxy endpoint this will work http://localhost:9000/order"; wsdlURL="" endpointName="" serviceName=""> All namespace resolution is left out.J

Re: Transaction spanning multiple threads query

2013-03-15 Thread Christian Müller
Short answer: no Camel leverage on the Spring Platform Transaction Manager which doesn't support this. Sent from a mobile device Am 15.03.2013 21:38 schrieb "gilboy" : > Hi > > I have 2 routes. The first route calls a DAO method which makes a change to > an Oracle database table. When done it pla

Re: How to add HTTP Basic and Digest Auth on CXF component

2013-03-15 Thread santhosh
If you dont get it sorted out with a CXF client,the simplest way would be send the soap body to the route.It would suffice to make a post request with authorization header to get Basic auth working.It can be HttpConnection,HttpClient,Camel using HttpClient.

Re: from webservice to queue

2013-03-15 Thread Christian Müller
Not really. In this case you will send "OK" to your queue for every web service call... Sent from a mobile device Am 15.03.2013 11:57 schrieb "takidean" : > Hi > i have to receive an external webservice and route it into a jms queue this > , is that useful > > public void configure() throws Excep

UNknown host timeout during http4 component unicast

2013-03-15 Thread santhosh
Hi, I have two cases, Case A : when multicast is used for multicast Case B : when multicast is actually (ab)used for unicast

Transaction spanning multiple threads query

2013-03-15 Thread gilboy
Hi I have 2 routes. The first route calls a DAO method which makes a change to an Oracle database table. When done it places the message on to a seda queue. My second route picks the message from the seda queue and invokes another DAO method resulting in another change to an oracle table. My que

Re: zip file best practices

2013-03-15 Thread Henryk Konsek
> Otherwise its hard for our end users > to know such functionality exists. Is there any particular reason to provide separated splitter in camel-core instead of enhancing existing ZipFile Data Format? Am I missing something? :) The following snippet would look just perfect for me... from(...).un

Re: AWS S3 Request/Reply

2013-03-15 Thread Bilgin Ibryam
You mentioned processing files in order, if that is really important for your application, just keep in mind this from aws documentation: "Amazon SQS makes a best effort to preserve order in messages, but due to the distributed nature of the queue, we cannot guarantee that you will receive message

Re: How to escape commas(,) in CSV file

2013-03-15 Thread Henryk Konsek
Hi, > Can some one tell me how to escape comma in camel csv component. Actually CSV component doesn't conform Camel standards in 100%. First of all it depends on the project with no stable release [1] and basically no documentation. It is even hard to get the sources of the CSV library jar used b

Re: Using camel:routeContextRef under camel:camelContext

2013-03-15 Thread deepak_a
Hi, There was a matching ending tag for routeContex. (the routes.xml was quite large, so I had pasted only a section of it) Issue is not because of invalid XMl but because of namespace but not able to figure it out http://camel.apache.org/schema/spring";>

Re: Using camel:routeContextRef under camel:camelContext

2013-03-15 Thread Claus Ibsen
Hi You need an endingtag. You know any modern IDE can do XML validation. On Fri, Mar 15, 2013 at 4:19 PM, deepak_a wrote: > Hi All, > > Based on reading posts by other users I am following this approach. > An applicationCOntext that has a camel:camelContext (that defines define one > or mo

Re: Using camel:routeContextRef under camel:camelContext

2013-03-15 Thread deepak_a
Hi All, Based on reading posts by other users I am following this approach. An applicationCOntext that has a camel:camelContext (that defines define one or more camel:routeContextRef ) Each of these camel:routeContextRef is referred in routes.xml (routeContext id) These routes.xml will be loaded

Re: Camel and Perf4j

2013-03-15 Thread Claus Ibsen
On Fri, Mar 15, 2013 at 3:20 PM, Henri Tremblay wrote: > Ok. That's what I thought. It is still strange since technically it is two > routes (and the JMX does give me stats on both on them). > Its not strange, there is events like ExchangeSentToEndpoint you can use instead etc. See all the event

Re: Camel and Perf4j

2013-03-15 Thread Henri Tremblay
Ok. That's what I thought. It is still strange since technically it is two routes (and the JMX does give me stats on both on them). I'll look at the proposed tools and give you some feedback. Thanks! Henri On 15 March 2013 13:11, Claus Ibsen wrote: > On Fri, Mar 15, 2013 at 12:48 PM, Henri Tr

Re: Camel and Perf4j

2013-03-15 Thread Claus Ibsen
On Fri, Mar 15, 2013 at 12:48 PM, Henri Tremblay wrote: > Hi, > > I would like to use Camel with Perf4j. > > I know that Camel JMX already provide statistics but I would like to be > able to easily see at once all my routes performance and be able generate > nice graph. Perf4j allows me to do that

How to escape commas(,) in CSV file

2013-03-15 Thread sarfaraj
Hi, I have csv file with following data "ID","NAME","ADDR" "1","Sarfaraj Sayyad","Pune,India" I am using camel csv component here and generate the resultant csv's But what happened it created four columns 1,Sarfaraj Sayyad,Pune,India It should be like 1,Sarfaraj Sayyad,"Pune,India" Can some

Camel and Perf4j

2013-03-15 Thread Henri Tremblay
Hi, I would like to use Camel with Perf4j. I know that Camel JMX already provide statistics but I would like to be able to easily see at once all my routes performance and be able generate nice graph. Perf4j allows me to do that quickly (you know another tool that will do the same with Camel?) M

from webservice to queue

2013-03-15 Thread takidean
Hi i have to receive an external webservice and route it into a jms queue this , is that useful public void configure() throws Exception { // TODO Auto-generated method stub from("cxf://http://localhost:9000/order/";) .setBody(constant("ok")) .to("jms:xmlorders");

Re: Consuming from an FTP windows

2013-03-15 Thread akcameluser
Hi Barerel Thank you for your comment. Actually, the thread you have provided helped me in constructing the directory path. I also found out that I was using an external IP address as opposed to an internal one cause the camel component is running internally. Many thanks -- View this message i

Multi CamelContext : getComponent called in configure() break some initialization

2013-03-15 Thread Fladnag
Hi, I have a strange behavior when I call CamelContext.getComponent() on RouteBuilder.configure() method in a blueprint bundle with 2 camel context : *camel:list-contexts* list only one context I also don't understand why component are linked to a Camel Context. With 2 camel context, "shared" com

How to add HTTP Basic and Digest Auth on CXF component

2013-03-15 Thread liugang594 Liu
Hi All: I'd like to know how I can put the HTTP Authorization Setting on CXF component. 1. On Consumer Side, I want to reuse the setting of Server 2. On Producer Side, I want to attach the Auth Info (username/password/auth type) when sending the request. Thanks in advance. -- Thanks GangLiu MS

Re: Camel 2.10.2 timer component does not fire at startup

2013-03-15 Thread Claus Ibsen
On Wed, Mar 13, 2013 at 8:56 PM, jerome wrote: > I am having indeed the same issue. > How to make this fire as soon as the route starts and every 1800 seconds > afterwards? > From the documentation I was assuming this was the syntax to use: > uri="timer://scheduler?fixedRa

Re: Performance problem uploading to remote FTP using Stream

2013-03-15 Thread Claus Ibsen
Hi I added a debug logging that logs how long time it takes to upload the file in Camel 2.11. As well what input stream is being used as source. Though in the trace logging below there is no logs about using a charset, as you upload binary data. Though if you force use a special charset then Came

Re: Files cannot be moved on FTP

2013-03-15 Thread Claus Ibsen
On Thu, Mar 14, 2013 at 8:31 PM, Lutter, Robin wrote: > Hi Claus and Filippo, > > Christian Schäfer had already filled a bug for this issue > https://issues.apache.org/jira/browse/CAMEL-6056 > > I attached a patch at it. > > Regards Robin > Thanks for the patch. I am looking in that now. I assume

Re: Consume the same file

2013-03-15 Thread Claus Ibsen
On Thu, Mar 14, 2013 at 4:42 PM, Alberto Brosich wrote: > On Wed, 2013-03-13 at 17:31 +0100, Claus Ibsen wrote: >> On Wed, Mar 13, 2013 at 3:54 PM, Alberto Brosich >> wrote: >> > >> > Hi, >> > >> > I have to consume with the FTP component always the same file but only when >> > its size changes.

Re: doTry docatch slow down the execution

2013-03-15 Thread Christian Müller
Have a look at the following tests: https://github.com/muellerc/apachecon-na-2013/tree/master/file-component/src/test/java/org/apache/cmueller/camel/apachecon/na2013 The are performance comparison between the different possibilities... Best, Christian On Thu, Mar 14, 2013 at 12:53 AM, Raul Kripa

Re: (Camel 2.2) Exception handling problem in case of parallel splitter with custom AggregationStrategy

2013-03-15 Thread khar
Hi! Thank you for your answer. Currently I can't change to newr version of Camel, becase other modules depend on that version also. If you could please tell me if there's any workaround I would be very grateful. Thanks! Mikolaj -- View this message in context: http://camel.465427.n5.nabble.co

Re: Question on Splitter Parallel Processing

2013-03-15 Thread Claus Ibsen
On Thu, Mar 14, 2013 at 7:09 PM, Edwin wrote: > Hi Folks, > > I have a route using a Splitter with parallel processing enabled. The > exchange contains List someObjectList and the size of > someObjectList is five. > > SomeObject contains a property - *id* If the first two elements of the list > co

oracle.jms.AQjmsFactory and javax.sql.DataSource

2013-03-15 Thread jinaLu
How to specify javax.sql.DataSource for oracle.jms.AQjmsFactory? I'm using blueprint. Thanks in advance -- View this message in context: http://camel.465427.n5.nabble.com/oracle-jms-AQjmsFactory-and-javax-sql-DataSource-tp5729223.html Sent from the Camel - Users mailing list archive at Nabble.