Re: Dynamic generation of Camel routes

2012-07-18 Thread Pontus Ullgren
Hello, What you want to do sound a bit like what we did in a project. I'm not sure that this is a good solution or that it should be treated as "best practice" (in fact I'm quite sure that this is not the best solution) but this is how we solved it. Route recipes are stored in a database. These r

Re: setting http soTimeout via setHeader() is not working

2012-07-18 Thread Claus Ibsen
On Wed, Jul 18, 2012 at 10:32 PM, khuss wrote: > Hi All, > I am trying to set a timeout for an HTTP connection. Based on the > documentation, we need to pass a query parameter "soTimeout=" > to activate the timeout. > > I am able to get this working with the following route definition > > from("di

setting http soTimeout via setHeader() is not working

2012-07-18 Thread khuss
Hi All, I am trying to set a timeout for an HTTP connection. Based on the documentation, we need to pass a query parameter "soTimeout=" to activate the timeout. I am able to get this working with the following route definition from("direct:start") .to("http://test-timeout-url?httpClient.soTimeo

Transactions with ActiveMQ (including DLQ) - ActiveMQ Down

2012-07-18 Thread xeraa
Hi! We're using transactions in Camel using ActiveMQ, which uses a JDBC database. The DeadLetterQueue is also running on ActiveMQ. While the underlying database uses a master-slave configuration, what would happen if both are not available? General transactions would fail as nothing could be writt

Re: cxfEndpoints and different transports (http, https) using PAX Web

2012-07-18 Thread Willem Jiang
Hi, Please checkout my comments in the below email. On Thu Jul 19 05:35:55 2012, helander wrote: Hi Christian, I am using Karaf 2.2.8. I wanted to create a setup where I had two separate web servers (two Pax Web instances) each with its own set of configuration parameters (port numbers, secur

Re: Dynamic generation of Camel routes

2012-07-18 Thread Willem Jiang
If you need to send the message to the endpoint dynamically, the routing-slip could be good choice. If you want to build the routes from the route store, you make take a look at this page[1] [1]http://camel.apache.org/loading-routes-from-xml-files.html On Thu Jul 19 06:55:34 2012, ychawla wrot

Re: Dynamic generation of Camel routes

2012-07-18 Thread Hadrian Zbarcea
The routing slip is a dynamic router that allows one to determine at runtime to what endpoints messages should be sent. It got nothing to do with the process of creating routes. The 2 choices are to either hardcode the logic described or the more elegant solution imo of defining a small dsl fo

Re: Preventing reading of a large XML file in memory

2012-07-18 Thread Willem Jiang
Hi, How did you process the old file? Maybe you need some file cache to avoid loading the whole XML file into the memory. On 7/18/12 10:52 PM, vishal1981 wrote: Hi, Sorry to bug you again...but.. Now I have my route configuration as File -> MyBean ->Ftp Now MyBean converts the input file to a

Re: Dynamic generation of Camel routes

2012-07-18 Thread ychawla
Would a routing slip work for you? You can dynamically configure where your message is going, not necessarily what your input is. However, depending on your requirements, this could suffice: http://camel.apache.org/routing-slip.html -- View this message in context: http://camel.465427.n5.nabbl

Re: Dynamic generation of Camel routes

2012-07-18 Thread Hadrian Zbarcea
From what you describe, I would create a DSL for that. Hadrian On 07/18/2012 05:58 PM, gilboy wrote: Hi I am working on an application were we need to build camel routes dynamically based on route configuration rules stored in a remote configuration store. My application makes a call to the co

Dynamic generation of Camel routes

2012-07-18 Thread gilboy
Hi I am working on an application were we need to build camel routes dynamically based on route configuration rules stored in a remote configuration store. My application makes a call to the configuration store, determines how many routes need to be built, retrieves the endpoint parameters and cr

Re: Datacoding issue

2012-07-18 Thread Christian Müller
Opened an issue to track this: https://issues.apache.org/jira/browse/CAMEL-5455 Best, Christian On Thu, Jul 12, 2012 at 11:55 PM, Christian Müller < christian.muel...@gmail.com> wrote: > I think I found a better way to provide the data coding. > If we do > DataCoding.newInstance(dataCoding).valu

Re: Datacoding/Alphabet issue in SMPP

2012-07-18 Thread Christian Müller
Opened an issue to track this: https://issues.apache.org/jira/browse/CAMEL-5455 Best, Christian On Thu, Jul 12, 2012 at 11:56 PM, Christian Müller < christian.muel...@gmail.com> wrote: > First, sorry for my late reply... > > I think I found a good way to provide the data coding. > If we do > Dat

Re: cxfEndpoints and different transports (http, https) using PAX Web

2012-07-18 Thread helander
Hi Christian, I am using Karaf 2.2.8. I wanted to create a setup where I had two separate web servers (two Pax Web instances) each with its own set of configuration parameters (port numbers, security settings etc). Access to my cxf endpoints should only be possible via one of these web servers.

Re: cxfEndpoints and different transports (http, https) using PAX Web

2012-07-18 Thread Christian Müller
Hello Lars! Which version of Karaf do you use? Find my comments inline. Best, Christian On Wed, Jul 18, 2012 at 8:07 PM, helander wrote: > I am using cxfEndpoints with Pax Web in a Karaf container (and Camel routes > consuming from these endpoints). > > I like the way that I only have to speci

cxfEndpoints and different transports (http, https) using PAX Web

2012-07-18 Thread helander
I am using cxfEndpoints with Pax Web in a Karaf container (and Camel routes consuming from these endpoints). I like the way that I only have to specificy the address relative to the http://cxf context in my endpoints, but I would like to limit the available transport for the endpoint to https. Can

Re: Testing the routing logic in isolation (FitNesse)

2012-07-18 Thread David Valeri
I'm not familiar with FitNesse. After a quick read through their documentation I arrived at the conclusions below. I think one path forward would be to write a fixture for FitNesse that uses the input data and output expectations from FitNesse to exercise your route. Your fixture would be respon

Re: camel-cxf and HTTP BASIC authentication

2012-07-18 Thread Christian Müller
Thank you all for your valuable suggestions. I will try it out and report back. Best, Christian On Wed, Jul 18, 2012 at 9:07 AM, Willem Jiang wrote: > Hi Christian, > > I'm afraid you have configure the interceptor yourself, or write some > configuration to setup Jetty server as others show you.

Testing the routing logic in isolation (FitNesse)

2012-07-18 Thread lorenzo
Hi there, I would like to test the routing logic through a tool like FitNesse, and I am wondering what is the best approach for this. I want to mock pretty much everything but still use the routing as defined in the production code. jUnit is not the place I want this to happen purely because my

Re: Camel Routes across JVMs

2012-07-18 Thread Sam (Stephen Samuel)
Ah I missed that. Thanks. On Wed, Jul 18, 2012 at 3:50 PM, thomas barker wrote: > I guess it does: http://camel.apache.org/hazelcast-component.html > > To be honest there are many options to get this to work, so I would use > whatever you know best and are most comfortable with. If you don't wan

RE: Preventing reading of a large XML file in memory

2012-07-18 Thread vishal1981
Hi, Sorry to bug you again...but.. Now I have my route configuration as File -> MyBean ->Ftp Now MyBean converts the input file to a different format. I want to avoid doing a exchange.getOut().setBody() since the new file is huge. But somehow I want to convey to the FTP producer that FTP over the

RE: Preventing reading of a large XML file in memory

2012-07-18 Thread vishal1981
Hi, Sorry to bug you again...but.. Now I have my route configuration as File -> MyBean ->Ftp Now MyBean converts the input file to a different format. I want to avoid doing a exchange.getOut().setBody() since the new file is huge. But somehow I want to convey to the FTP producer that FTP over the n

Re: Camel Routes across JVMs

2012-07-18 Thread thomas barker
I guess it does: http://camel.apache.org/hazelcast-component.html To be honest there are many options to get this to work, so I would use whatever you know best and are most comfortable with. If you don't want to rock the boat, most people here probably have more experience with camel's jms suppo

Re: the stmp url error

2012-07-18 Thread Willem Jiang
You should use & instead of & if you are specify an URI in Spring configuration file. On Wed Jul 18 17:57:54 2012, cmland wrote: my route config like this : http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:camel="http://camel.a

Re: Camel Routes across JVMs

2012-07-18 Thread Sam (Stephen Samuel)
I'll stick with JMS then, didn't know if Camel had some kind of Hazelcast type thing. On Wed, Jul 18, 2012 at 3:39 PM, thomas barker wrote: > If you use JMS use activemq if you can... the http / servlet / jetty > components are lightweight options as well. > > On Wed, Jul 18, 2012 at 10:36 AM, Ch

Re: Camel Routes across JVMs

2012-07-18 Thread thomas barker
If you use JMS use activemq if you can... the http / servlet / jetty components are lightweight options as well. On Wed, Jul 18, 2012 at 10:36 AM, Charles wrote: > 1.) Use JMS > 2.) Use CXF (web services) > > I've done #1, it's probably easier. > > > - Original Message - > From: Sam (Ste

Re: Camel Routes across JVMs

2012-07-18 Thread Charles
1.) Use JMS 2.) Use CXF (web services) I've done #1, it's probably easier. - Original Message - From: Sam (Stephen Samuel) To: users@camel.apache.org Cc: Sent: Wednesday, July 18, 2012 10:28 AM Subject: Camel Routes across JVMs Hi, What's the best practice for having routes communica

Re: soap over jms

2012-07-18 Thread Christian Müller
You need another version of the jar/bundle which contains org/apache/ws/commons/schema/XmlSchemaCollection. Sent from a mobile device Am 18.07.2012 09:52 schrieb "bhushand" : > Hello Willem/Christian > I checked for neethi, I have only one version 3.0.2. I also > upgrade cxf to 2.

Re: Camel CXF synchronous=true setting causes CXF bean invocation last for 60 seconds or more

2012-07-18 Thread Pointless
Hi Yogesh, Thank you, I will check if this helps. The Camel version we are using is 2.7.1, and camel-cxf of the same version, so probably it has this bug. Not sure how to check which version of CXF camel-cxf uses... Igor -- View this message in context: http://camel.465427.n5.nabble.com/Camel

Re: Camel CXF synchronous=true setting causes CXF bean invocation last for 60 seconds or more

2012-07-18 Thread Pointless
Hi, Thank you for the reply. We are dynamically setting the CXF endpoint address using the header "CamelDestinationOverrideUrl", as this address is coming from the message payload. Therefore, in CXF bean definition, the address is "http://dummy";. I will try the latest Camel version. The general

the stmp url error

2012-07-18 Thread cmland
my route config like this : http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:camel="http://camel.apache.org/schema/spring"; xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframewor

Re: soap over jms

2012-07-18 Thread bhushand
Hello Willem/Christian I checked for neethi, I have only one version 3.0.2. I also upgrade cxf to 2.6.1. Finally it compile sucessfully, no error . Thanks for help But when I tried to run then its giving me "java.lang.NoSuchMethodError: org/apache/ws/commons/schema/X

Re: camel-cxf and HTTP BASIC authentication

2012-07-18 Thread Willem Jiang
Hi Christian, I'm afraid you have configure the interceptor yourself, or write some configuration to setup Jetty server as others show you. If you are using ServiceMix you can try out the Sergey shows JAASLoginInterceptor, and setup right context name for you to use. Here is an configuratio