Re: Scalability: Multiple containers with the same Camel Context

2012-04-23 Thread Serge Mick
Would it be correct to say that longer routes need to designed as a number of atomic routes? By atomic I mean - to be executed within the very same Camel Context. In other words, scalability across multiple containers is achieved by properly designed routes. Thank you, Claus. -- View this messa

Re: SSL and CXF Consumers

2012-04-23 Thread Willem Jiang
The cxf is the bus name, you need to specify it in your engine-factory. BTW, you may need to include the resource like this to have the bean instance which name is cxf. On 4/24/12 1:38 AM, Castyn wrote: I am trying to setup the conduit and jetty engine much like in the SVN example. For som

Re: SSL and CXF Consumers

2012-04-23 Thread Willem Jiang
The cxf is the bus name, you need to specify it in your engine-factory. BTW, you may need to include the resource like this to have the bean instance which name is cxf. On 4/24/12 1:38 AM, Castyn wrote: I am trying to setup the conduit and jetty engine much like in the SVN example. For som

Re: SSL and CXF Consumers

2012-04-23 Thread Willem Jiang
The trust manager is for the client. If you just want to configure the cxf consumer, you just need to use the keystore. On Mon Apr 23 20:18:20 2012, Castyn wrote: What goes in the keystore versus the trust manager? Do Ineed to use both on the jett

Re: custom component synchronous processing

2012-04-23 Thread Jason Burkhardt
Hi Claus, Thanks for pointing me in the proper direction. In most cases I want the http server to remain multithreaded, but in this specific case I really need the messages in order so out of your ideas I figured the most appropriate would be to limit the individual route using the threads dsl. I c

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-04-23 Thread soumya_sd
@Alexandre - Thank you so much. I was busy with another project. But I've come back to this one. Thanks again for fixing this. I'll test it and let you know if I find any other issues. -Soumya -- View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-RuntimeCamelEx

Re: Problems with Camel's Karaf commands

2012-04-23 Thread Bengt Rodehav
Great - looking forward to it! /Bengt 2012/4/23 Jean-Baptiste Onofré > Yup > > > On 04/23/2012 02:25 PM, Bengt Rodehav wrote: > >> I appreciate it JB, >> >> Will all functionality be available even when looking up via JMX? >> >> /Bengt >> >> 2012/4/23 Jean-Baptiste Onofré >> >> Hi Bengt, >>> >

Re-initializing route builders at runtime under Spring?

2012-04-23 Thread Injinius
All, I have a Camel/Spring configuration. For example: BEGIN_CODE_SNIPPET [SNIP] END_CODE_SNIPPET The RouteBuilders, above, dynamically create the query portion of the "from" endpoints (e.g. from an SQL query). Eventually, a "change event" occur

Re: SSL and CXF Consumers

2012-04-23 Thread Castyn
I am trying to setup the conduit and jetty engine much like in the SVN example. For some reason I am getting an error: 13:31:50,019 | ERROR | xtenderThread-11 | ContextLoaderListener| ? ? | 84 - org.springframework.osgi.extender - 1.2.1 | Application

Re: xpath and namespaces

2012-04-23 Thread Bob Jolliffe
On 23 April 2012 17:29, Claus Ibsen wrote: > Hi > > Do you declare the route in an external file, or how do you refer to > the xml file with that route? > Maybe you can post your full XML files. I have the route declared in an external file. The following is a complete listing of the file which

Re: Tracing Camel routes, Unit of Work and From endpoint.

2012-04-23 Thread Claus Ibsen
On Mon, Apr 23, 2012 at 4:34 PM, Guillaume Yziquel wrote: > Le Monday 23 Apr 2012 à 16:20:35 (+0200), Claus Ibsen a écrit : >> Yeah go for #1. > > Always? Because I read from > > http://irclogs.dankulp.com/logs/irclogger_log/camel?date=2011-09-09,Fri&text=on > > that using unit of work seems to pr

Re: Using JdbcDataSourceName with Quickfix component

2012-04-23 Thread Claus Ibsen
On Mon, Apr 23, 2012 at 5:40 PM, maroos wrote: > Hi, > I want Quickfix/J to use JdbcDataSourceName rather than JdbcDriver+JdbcURL > to access JDBC Message Store. > However the latest version of the Quickfix component (2.9.2) checks only if > the SETTING_JDBC_DRIVER is present in the settings and i

Re: xpath and namespaces

2012-04-23 Thread Claus Ibsen
Hi Do you declare the route in an external file, or how do you refer to the xml file with that route? Maybe you can post your full XML files. On Mon, Apr 23, 2012 at 6:23 PM, Bob Jolliffe wrote: > I have an application where I load a camel context using spring and > then add different spring ds

xpath and namespaces

2012-04-23 Thread Bob Jolliffe
I have an application where I load a camel context using spring and then add different spring dsl routes particular to individual site configurations. I am having trouble using an XPath splitter because of the issue with making namespaces visible to the XPath processor. I've seen from here (http:

Re: OSGI Transaction Propagation to Camel Route

2012-04-23 Thread Chris Geer
Thanks Christian, I will take a look. In the real system we are definitely using more than just a single JMS resource as part of the transaction. I was just trying to show the problem with a simple test case. Thanks, Chris On Mon, Apr 23, 2012 at 12:42 AM, Christian Müller < christian.muel...@gm

Using JdbcDataSourceName with Quickfix component

2012-04-23 Thread maroos
Hi, I want Quickfix/J to use JdbcDataSourceName rather than JdbcDriver+JdbcURL to access JDBC Message Store. However the latest version of the Quickfix component (2.9.2) checks only if the SETTING_JDBC_DRIVER is present in the settings and if it's not then it defaults to MemoryStore. It ignores SET

Re: Multiple service for one Camel CXF endpoint

2012-04-23 Thread Willem Jiang
Yes, you are right. On Mon Apr 23 20:35:04 2012, Hervé BARRAULT wrote: Hi, thanks for answer. It seems that the limitation for camel-cxf is even on the wsdl port (binding) as i can "register" only one port by cxfEndpoint . Am I right ? Regards Hervé On Mon, Apr 23, 2012 at 12:37 PM, Willem

Re: Tracing Camel routes, Unit of Work and From endpoint.

2012-04-23 Thread Guillaume Yziquel
Le Monday 23 Apr 2012 à 16:20:35 (+0200), Claus Ibsen a écrit : > Yeah go for #1. Always? Because I read from http://irclogs.dankulp.com/logs/irclogger_log/camel?date=2011-09-09,Fri&text=on that using unit of work seems to provide a more easily accessible history of messages. I was wondering to

Re: Tracing Camel routes, Unit of Work and From endpoint.

2012-04-23 Thread Claus Ibsen
Yeah go for #1. On Mon, Apr 23, 2012 at 2:09 PM, Guillaume Yziquel wrote: > Hi. > > I'm currently trying to trace Camel routes, and I'm wondering at how I > should query Camel Exchanges for the 'From endpoint' (i.e. the original > consumer). It seems to me that I have two options, that behave >

Re: Aggregator from JMS endpoints

2012-04-23 Thread javaxmlsoapdev
Thanks Claus Ibsen-2 So with transacted=true on JMS endpoints and given my use case, do you think I don't need any AggregationStrategy? again use case: Pick up a message from one JMS queue (Camel consumer) and apply some business logic and then fiinally publish that message to multiple JMS queue

Re: Camel 2.2 Splitter parallelProcessing default threadpool

2012-04-23 Thread Pham Ngoc Hai
Thank you Claus, Indeed, I should had spent more time with the source code. From: Claus Ibsen To: users@camel.apache.org Sent: Monday, April 23, 2012 5:44 PM Subject: Re: Camel 2.2 Splitter parallelProcessing default threadpool On Mon, Apr 23, 2012 at 11:35

Re: Multiple service for one Camel CXF endpoint

2012-04-23 Thread Hervé BARRAULT
Hi, thanks for answer. It seems that the limitation for camel-cxf is even on the wsdl port (binding) as i can "register" only one port by cxfEndpoint . Am I right ? Regards Hervé On Mon, Apr 23, 2012 at 12:37 PM, Willem Jiang wrote: > If you want to host multiple endpoints with the same addres

Re: Problems with Camel's Karaf commands

2012-04-23 Thread Jean-Baptiste Onofré
Yup On 04/23/2012 02:25 PM, Bengt Rodehav wrote: I appreciate it JB, Will all functionality be available even when looking up via JMX? /Bengt 2012/4/23 Jean-Baptiste Onofré Hi Bengt, JMX is only used for statistic. The purpose is to be able to display and manage routes without the JMX laye

Re: Problems with Camel's Karaf commands

2012-04-23 Thread Bengt Rodehav
I appreciate it JB, Will all functionality be available even when looking up via JMX? /Bengt 2012/4/23 Jean-Baptiste Onofré > Hi Bengt, > > JMX is only used for statistic. The purpose is to be able to display and > manage routes without the JMX layer (without the management feature > installed

Re: SSL and CXF Consumers

2012-04-23 Thread Castyn
What goes in the keystore versus the trust manager? Do Ineed to use both on the jetty engine and http conduit? All I have created is a keystore and added the ssl public certificate to it. What do I need to add to a trust manager? -- View this message in context: http://camel.465427.n5.nabble.c

Tracing Camel routes, Unit of Work and From endpoint.

2012-04-23 Thread Guillaume Yziquel
Hi. I'm currently trying to trace Camel routes, and I'm wondering at how I should query Camel Exchanges for the 'From endpoint' (i.e. the original consumer). It seems to me that I have two options, that behave differently, but I cannot figure out why... [1] exchange.getFromEndpoint().getEndpointU

Re: Scalability: Multiple containers with the same Camel Context

2012-04-23 Thread Claus Ibsen
On Mon, Apr 23, 2012 at 5:37 AM, Serge Mick wrote: > Hi, > > In a learning mode here. > > - Say, I have a Camel Context in a container, Tomcat in my case. > I want to have two+ instances of the container (Tomcat) to address my > performance/failover issues. > > Q: How does Camel scale across multi

Re: Problems with Camel's Karaf commands

2012-04-23 Thread Jean-Baptiste Onofré
Hi Bengt, JMX is only used for statistic. The purpose is to be able to display and manage routes without the JMX layer (without the management feature installed). However, we can have a dual handling, with an option to choose to lookup by OSGi services or JMX. I will implement an enhanceme

Re: Problems with Camel's Karaf commands

2012-04-23 Thread Bengt Rodehav
OK - that explains it. I have no camel context published as OSGi service. Is this something I should do in order to "integrate" with the Camel Karaf commands? Why isn't JMX used? (It seems to work fine under Karaf) What are the extra benefits from *not* using JMX? If I publish all my camel contex

Re: Load Balancer EIP

2012-04-23 Thread Claus Ibsen
On Mon, Apr 23, 2012 at 12:35 PM, Edwin wrote: > Thanks for the response Claus > > I am assuming the load balancer EIP sticky implementation maintains state in > memory to map between the correlation key and the processor. Is it possible > to programatically purge/delete this mapping? > Ah yeah i

Re: Load Balancer EIP

2012-04-23 Thread Edwin
Thanks for the response Claus I am assuming the load balancer EIP sticky implementation maintains state in memory to map between the correlation key and the processor. Is it possible to programatically purge/delete this mapping? Edwin -- View this message in context: http://camel.465427.n5.nabb

Re: Multiple service for one Camel CXF endpoint

2012-04-23 Thread Willem Jiang
If you want to host multiple endpoints with the same address you can consider use camel-jetty at the begining, then use the CBR to route the request to different endpoint. BTW, current camel-cxf doesn't support to expose multiple service at the same address. On Mon Apr 23 16:05:37 2012, Hervé

Re: Camel:Flatpack component

2012-04-23 Thread Charles Moulliard
You can combine the stream component (http://camel.apache.org/stream.html) to avoid to read each time all the entries of a file and a Camel DataFormat from("stream:file?fileName=/server/logs/server.log&scanStream=true&scanStreamDelay=1000") On Mon, Apr 23, 2012 at 12:11 PM, Gnanaguru S < gnanagu

michael.planamente.aw...@atos.net

2012-04-23 Thread PLANAMENTE Michael ATO-OD
Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg - 1130 Brussels - Belgium RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872 Bankrekening-Compte Bancaire-Bank Account 310-0269424-44 BIC BBRUBEBB - IBAN BE55 3100 2694 2444 "The information contai

Re: Camel:Flatpack component

2012-04-23 Thread Gnanaguru S
Hi Charles, So this will support me in reading the new entries alone ? I dont want to read the file every time from the first line. Thanks Guru -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Flatpack-component-tp5658839p5658874.html Sent from the Camel - Users maili

Re: Problems with Camel's Karaf commands

2012-04-23 Thread Jean-Baptiste Onofré
Hi Bengt, I'm gonna take a look but the Karaf commands are based on Camel Context registered as OSGi service. Could you take a look about the services available (using ls command in Karaf shell). Regards JB On 04/23/2012 11:01 AM, Bengt Rodehav wrote: Hello JB, I use Java DSL. I create mul

Re: Camel:Flatpack component

2012-04-23 Thread Charles Moulliard
Hi Guru, The structure that you have to parse (FixedLength or CSV) could be parsed easily using camel-bindy dataformat. Please have a look here : http://camel.apache.org/bindy.html Regards, Charles On Mon, Apr 23, 2012 at 11:53 AM, Gnanaguru S < gnanaguru.sattanat...@wipro.com> wrote: > Hi >

Camel:Flatpack component

2012-04-23 Thread Gnanaguru S
Hi I have a fixed width text log file. I want to parse it. This is the file structure line1:[ENTRY1]:[ENTRY2]:[ENTRY3] line2:[ENTRY1]:[ENTRY2]:[ENTRY3] line3:[ENTRY1]:[ENTRY2]:[ENTRY3] Will i be able to capture all three entries for every new entry and write to a database. Only the new entries

Re: Camel 2.2 Splitter parallelProcessing default threadpool

2012-04-23 Thread Claus Ibsen
On Mon, Apr 23, 2012 at 11:35 AM, Pham Ngoc Hai wrote: > Hi Claus, > I'm not saying that others are not busy or anything. I thought that someone > may already know the answer to my question so I was expecting a quick answer. > I really appreciate that you are here to help users. > Thank you. > W

Re: Get specific dynamic file

2012-04-23 Thread Claus Ibsen
Currently you can use a java bean and use the consumer template where you need to specify the exact fileName to pickup. On Mon, Apr 23, 2012 at 11:39 AM, Claus Ibsen wrote: > Hi > > See the red warning box at the EIP page > http://camel.apache.org/content-enricher.html > > Its a current limita

Re: Get specific dynamic file

2012-04-23 Thread Claus Ibsen
Hi See the red warning box at the EIP page http://camel.apache.org/content-enricher.html Its a current limitation. There is a JIRA ticket logged to improve this for the future, possible Camel 3.0 at the latest. Its not super easy to fix due the API contract of PollingConsumer. On Mon, Apr 23,

Re: Camel 2.2 Splitter parallelProcessing default threadpool

2012-04-23 Thread Pham Ngoc Hai
Hi Claus, I'm not saying that others are not busy or anything. I thought that someone may already know the answer to my question so I was expecting a quick answer. I really appreciate that you are here to help users. Thank you. From: Claus Ibsen To: users@c

Re: Using XML Catalog with XPath

2012-04-23 Thread Jens
Björn Bength wrote > > Have a look at this: > https://issues.apache.org/jira/browse/CAMEL-4666 > Thanks, I'm going to give that a good look when I get some time. Jens -- View this message in context: http://camel.465427.n5.nabble.com/Using-XML-Catalog-with-XPath-tp5651404p5658799.html Sent f

Get specific dynamic file

2012-04-23 Thread marnold
Hi, I receive a JMS message with a filename as a message property. I then want to use the file component to read this file from a directory, waiting if necessary if the file does not exist. This is what I have tried: But this

Re: Problems with Camel's Karaf commands

2012-04-23 Thread Bengt Rodehav
Hello JB, I use Java DSL. I create multiple camel contexts with code like this: *** > **CamelContextFactory contextFactory = new CamelContextFactory(); > **contextFactory.setBundleContext(theBundleContext); > **CamelContext context = contextFactory.createContext();* The contexts and routes work

Re: Camel 2.2 Splitter parallelProcessing default threadpool

2012-04-23 Thread Claus Ibsen
On Mon, Apr 23, 2012 at 10:36 AM, Pham Ngoc Hai wrote: > Hi Claus, > I would love to set up debuging but my hands are tided to other matters now. > How about a quick answer? > And what do you think other peoples hands are? Camel 2.2 is not supported any longer at Apache. The threading model in

Re: Camel 2.2 Splitter parallelProcessing default threadpool

2012-04-23 Thread Pham Ngoc Hai
Hi Claus, I would love to set up debuging but my hands are tided to other matters now. How about a quick answer? Thank you. From: Claus Ibsen To: users@camel.apache.org; Pham Ngoc Hai Sent: Monday, April 23, 2012 2:46 PM Subject: Re: Camel 2.2 Splitter paral

Re: Problems with Camel's Karaf commands

2012-04-23 Thread Jean-Baptiste Onofré
Hi Bengt, which DSL do you use ? Do you use an "OSGi" complient camel context if you do it programmatically ? Regards JB On 04/23/2012 10:27 AM, Bengt Rodehav wrote: I'm using Camel 2.9.1 and Karaf 2.2.5. I have several Camel contexts and several routes running. Using JConsole I can see the c

Problems with Camel's Karaf commands

2012-04-23 Thread Bengt Rodehav
I'm using Camel 2.9.1 and Karaf 2.2.5. I have several Camel contexts and several routes running. Using JConsole I can see the contexts, routes and other JMX information. However, if I use the Camel commands from within the Karaf console I see nothing. E g the command "camel:context-list" shows no

Multiple service for one Camel CXF endpoint

2012-04-23 Thread Hervé BARRAULT
Hi, I have a wsdl with multiple services to expose. Some services should be exposed through the same endpoint (even they are not defined in the same service). I checked that there is no operation name conflict. Is it possible to expose multiple services through the same camel/cxf endpoint or shou

Re: OSGI Transaction Propagation to Camel Route

2012-04-23 Thread Christian Müller
At the weekend I found some minutes to work on it. I created a few unit tests for local JMS and JDBC transactions and for global JMS and JDBC XA transactions. At present, you can find the samples at [1] but I plan to move it also into the regular Camel test base for regression tests or into a new X