HttpServletResolveConsumerStrategy improvement?

2015-03-12 Thread richardgroote
Hello, At this moment we're replacing restlet by the servlet component. In the spring camel configuration there are two routes defined (see below for the URI) with overlapping URI parts. The client uses for example the uri: http://localhost:8080/contextroot/servlet/ui/api/a/b/c/d. The restlet co

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-12 Thread Christian Schneider
I think the problem is ${user.home}/.m2/repository Can you remove this? Christian On 11.03.2015 08:14, Christian Eugster wrote: Hi Achim, yes I tried from command line too, same result. Nearby my settings.xml from ~/.m2: http://maven.apache.org/SETTINGS/1.0.0"; xmlns:xsi="http://www.w

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-12 Thread Christian Eugster
I would say, the default path in org.ops4j.pax.url.mvn.cfg is right. Looking in user.home/.m2/repository, I find the respective jar in the right place: ~/.m2/repository/com/packt/sample/1.0.0-SNAPSHOT/sample-1.0.0-SNAPSHOT.jar The settings file in ~/.m2 had no extension. I added .xml and tried a

Log request / reponse in my camel.

2015-03-12 Thread Frankiboy
I have a way to log the request and response, from my camel.xml file. But i want to do this from my routing, then i can do it only when im running in info mode. How to do this the best way ? Frank -- View this message in context: http://camel.465427.n5.nabble.com/Log-request-reponse-in-my-ca

Camel stop routes and start

2015-03-12 Thread majid
Hi all, I have a camel application where I am parsing a large XML file and doing some operations on the items of the file. I want to be able to stop/and re-start manually the application. So when I stop all the routes of my camel context while the application is processing the file, and restart a

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-12 Thread Christian Eugster
Hi Achim, as I wrote before, I succeeded to bundle:install another bundle. But maybe this was done via global maven repo. Now I disconnected the computer from network, bundle:uninstall(ed) the bundle, that I successfully installed before, and reinstalled it again with bundle:install. It worked,

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-12 Thread Christian Eugster
Now everything seems to work. Thank you all! Christian Christian Eugster Docuteam GmbH Langacker 16 Postfach CH-5405 Baden-Dättwil +41 (0)56 470 03 37 c.eugs...@docuteam.ch > Am 11.03.2015 um 11:20 schrieb Morgan Hautman : > > Hi Christian, > > I think that on Mac there is a problem with t

RE: Marshalling directly to endpoints OutputStream

2015-03-12 Thread Siano, Stephan
Hi Lars, No, but if it is only about memory you can enable stream caching on the route. In that case the data will be sent to a StreamCache (and that will be stored in the file system if the data is too big). Best regards Stephan -Original Message- From: Lars Ködderitzsch [mailto:rooki

Re: Marshalling directly to endpoints OutputStream

2015-03-12 Thread Lars Ködderitzsch
I've found a viable solution for my problem by enabling stream-caching for my Camel Context (http://camel.apache.org/stream-caching.html). This way the marshalling via a DataFormat potentially spools to a temporary, camel-managed file if a configured payload size threshold is surpassed. -- View

Re: Splitting xml - Send all items or send XML to Error Queue

2015-03-12 Thread Claus Ibsen
Hi You can likely do a composed message processor EIP (see using splitter only option) to split and build each sub message, and validate. And in the agg strategy you just add each sub message to a list And in case of validation error you can thrown an exception, and use the sharedUnitOfWork optio

Re: MongoDB Consumer Endpoint: ReadPreference cannot be set?

2015-03-12 Thread jpeschke
Hi Raul, Thank you for your reply. I will see what I can do, if I find the time, I will patch it myself, otherwise I will at least open a ticket in JIRA. Thanks a lot, Joerg -- View this message in context: http://camel.465427.n5.nabble.com/MongoDB-Consumer-Endpoint-ReadPreference-cannot-be-s

Re: how to flush idempotent in memory cache

2015-03-12 Thread Claus Ibsen
Hi I have logged a ticket to improve this https://issues.apache.org/jira/browse/CAMEL-8478 On Thu, Mar 12, 2015 at 12:14 AM, rpcat wrote: > How can I flush the idempotent inmemory cache without restarting my camel > service? > > > > -- > View this message in context: > http://camel.465427.n5.na

How to route the file like lst_20140427.tar.gz if the lst_20140427.done file exists

2015-03-12 Thread skasish
I have to route file with the pattern lst_20140427.tar.gz if the lst_20140427.done file exists How to define a camel route with doneFileName ?? Please help me. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-route-the-file-like-lst-20140427-tar-gz-if-the-lst-20140427

Re: How to route the file like lst_20140427.tar.gz if the lst_20140427.done file exists

2015-03-12 Thread Pontus Ullgren
I think something like this should work from("file:bar?doneFileName=${file:onlyname.noext}.done"); Have a look at the File Expression Language[1] documentation. [1] http://camel.apache.org/file-language.html // Pontus On Thu, Mar 12, 2015 at 12:53 PM, skasish wrote: > I have to route file wi

Java ActiveMQConnectionFactory BrowsableEndpoint

2015-03-12 Thread blommish
Is there a reason why this does not work? If I remove the persistent=false it does work the first time but when running the test again the message will already be there, so i will get "collection size was <2>" java.lang.AssertionError: Expected: a collection with size <1> but: collection siz

camel-catalog 2.15.0 and karaf 2.4.1

2015-03-12 Thread alexey-s
Hi camel-catalog not work This bundle without package org.apache.camel.catalog.archetypes I'm get all source Camel from GitHub. No find classes with this package. Aleksey -- View this message in context: http://camel.465427.n5.nabble.com/camel-catalog-2-15-0-and-karaf-2-4-1-tp5764038.htm

Bean invocation .class vs new

2015-03-12 Thread yuncil
Hi Guys, according to the camel documentation I have two different options to invoke a method of a bean. /// Explicit selection of bean method to be invoked. from("direct:start").bean(new ExampleBean(), "methodName"); // Camel will create the instance of bean and cache it for you. from("direc

Re: camel-catalog 2.15.0 and karaf 2.4.1

2015-03-12 Thread Claus Ibsen
Hi Yes its a known issue, its fixed in 2.15.1. On Thu, Mar 12, 2015 at 3:04 PM, alexey-s wrote: > Hi > > camel-catalog not work > > This bundle without package org.apache.camel.catalog.archetypes > > > > I'm get all source Camel from GitHub. No find classes with this package. > > > Aleksey > > >

Re: Bean invocation .class vs new

2015-03-12 Thread Claus Ibsen
Hi The bean component will create one time and reuse, (it caches by default) And the 1st solution will only create it once, the new constructor is only invoked once during defining the routes using the route builders. On Thu, Mar 12, 2015 at 3:11 PM, yuncil wrote: > Hi Guys, > > according to t

Re: Bean invocation .class vs new

2015-03-12 Thread yuncil
Hi Claus, thank you for your answer. What if I do the following: .bean(new MyBeanA(), "doMyBeanA") .bean(MyBeanB.class, "doMyBeanB") .bean(new MyBeanA(), "doMyBeanA2") Do I get two instances of MyBeanA? If not, how is the syntax if I want to reuse MyBeanA in the third line? You say the bean co

Re: Bean invocation .class vs new

2015-03-12 Thread Claus Ibsen
On Thu, Mar 12, 2015 at 3:40 PM, yuncil wrote: > Hi Claus, > > thank you for your answer. What if I do the following: > > .bean(new MyBeanA(), "doMyBeanA") > .bean(MyBeanB.class, "doMyBeanB") > .bean(new MyBeanA(), "doMyBeanA2") > Yes new is a java constructor so it will create a new instance. If

Re: Multicast Position and Exchange Properties

2015-03-12 Thread ychawla
Thanks Claus, This is exactly what I am looking for. I will try to update the Multicast WIKI so it shows these Exchange properties like it does on the Splitter WIKI page. -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Multicast-Position-and-Exchange-Properties-tp57

Re: camel-catalog 2.15.0 and karaf 2.4.1

2015-03-12 Thread sykomaniac
Hi, Is there any way to manually resolve this without waiting for you to push the release? I'm eager to test the new netty-4 component for HL7 -- View this message in context: http://camel.465427.n5.nabble.com/camel-catalog-2-15-0-and-karaf-2-4-1-tp5764038p5764046.html Sent from the Camel - Us

Re: camel-catalog 2.15.0 and karaf 2.4.1

2015-03-12 Thread Claus Ibsen
Hi Its only camel-catalog JAR that has this flaw. All other bundles should work. So just avoid install camel-catalog in OSGi. On Thu, Mar 12, 2015 at 4:18 PM, sykomaniac wrote: > Hi, > > Is there any way to manually resolve this without waiting for you to push > the release? I'm eager to test th

Cacehe-Controle header

2015-03-12 Thread richardgroote
Hello, For https://issues.apache.org/jira/browse/CAMEL-1975 a lot of headers are filtered on the response. We're using the servlet component and like to set the "cache-control" header with values "no-cache, no-store, must-revalidate". Is there a way to do this without specifying a custom filter s

Camel Route autostartup with Spring Profiles

2015-03-12 Thread ychawla
Hello All, I am looking to dynamically start up routes based on Spring profiles properties. I am aware that you can control this via a boolean on the route and you can define a property to make it dynamic. I have a scenario where I would like to allow the implementer to choose which beans to dy

Re: camel-catalog 2.15.0 and karaf 2.4.1

2015-03-12 Thread sykomaniac
Hi, Thanks for the response - Only thing is that when I try installing anything I get this message e.g. feature:install camel-ftp/2.15.0 Results in the same error. -- View this message in context: http://camel.465427.n5.nabble.com/camel-catalog-2-15-0-and-karaf-2-4-1-tp5764038p5764049.html

Re: camel-catalog 2.15.0 and karaf 2.4.1

2015-03-12 Thread Claus Ibsen
Hi Ah darn its the karaf commands that has catalog support that would use it. You can install camel-core manually. But you would loose the camel karaf commands. On Thu, Mar 12, 2015 at 4:28 PM, sykomaniac wrote: > Hi, > > Thanks for the response - Only thing is that when I try installing anyth

download from rest endpoint

2015-03-12 Thread H2SO4
Hi, I want to download a json file from a rest endpoint. But somehow I'm not getting it how to write the source. For the beginning it is enough if the json is written into a file. So I tried the following: from("rest:get:http://my-homepage.com:8080/somepage/";).to("file:data/outbox"); but all I

Re: download from rest endpoint

2015-03-12 Thread Claus Ibsen
Hi You need to start the route from a timer / scheduler etc. from timer to http to file On Thu, Mar 12, 2015 at 5:02 PM, H2SO4 wrote: > Hi, > > I want to download a json file from a rest endpoint. But somehow I'm not > getting it how to write the source. > For the beginning it is enough if

Re: download from rest endpoint

2015-03-12 Thread H2SO4
? Sorry but I'm not sure what you mean my main method looks the following at the moment public static void main(String args[]) throws Exception { CamelContext camelContext = new DefaultCamelContext(); camelContext.addRoutes(new RouteBuilder() {

Processing files on priority before alreay running files.

2015-03-12 Thread ramanarao
I had the following behaviour: Had one end point when it is watching the folder(say input folder) in which files are available. I have a route which refer to the above end point and copy the files to other folder(say output folder). The current Behaviour is suppose say if you have 200 files in the

Camel-SJMS: Glassfish 4.1 OpenMQ createSession():An active Session object already exists for this connection, only one active Session object allowed per connection.

2015-03-12 Thread Stanislaw Kulczycki
Hi All, first of all as I'm new here I would like to say Hello! In addition to this I want to say that I'm fan of Camel and I think that it is great software and I'm very happy that I can use it in my project. second - unfortunately I have a problem. I'm trying to use camel-sjms (v2.14.2) compon

Sending Soap Message as response

2015-03-12 Thread Sag21
How to send the soap message as whole payload in camel not just separate body and sign the header differently. What I am trying to do is creating the SoapMessage and adding the multiple elements without root element.I need to sign the header too. Here is how exchange looks like exchange.getIn()

Re: download from rest endpoint

2015-03-12 Thread Claus Ibsen
You can configure the timer to only call once, by setting repeat count to 1 On Thu, Mar 12, 2015 at 5:38 PM, H2SO4 wrote: > ? Sorry but I'm not sure what you mean > > my main method looks the following at the moment > > public static void main(String args[]) throws Exception { > CamelCon

Re: Camel-SJMS: Glassfish 4.1 OpenMQ createSession():An active Session object already exists for this connection, only one active Session object allowed per connection.

2015-03-12 Thread Stanislaw Kulczycki
Oh dear... Looks like there is something wrong (or my misuse) with Glassfish implementation of OpenMQ JMS. I think that I have solved the problem with using different way of obtaining JMS connection factory. Everything works fine when I use this code to obtain JMS factory: com.sun.messaging.Queu

Camel Exception propogation to ActiveMQ - DLQ

2015-03-12 Thread bwest
Greetings, I'm trying to trap exception and place it on the header so when a message is DLQ'd we can see the exception. I've got a camel DLQ strategy configured and i'm extracting the exchange.EXCEPTION_CAUGHT. However, when the message is placed into the DLQ, all of my Camel headers are gone

Re: Camel Route autostartup with Spring Profiles

2015-03-12 Thread ychawla
Hello All, I decided to set all routes autostart to false and then implement an ApplicationListener: @Component public class MyListener implements ApplicationListener { @Autowired(required=false) private CamelContext camelContext; @Override public voi

how to send response to the webservice

2015-03-12 Thread chaituu
-- View this message in context: http://camel.465427.n5.nabble.com/how-to-send-response-to-the-webservice-tp5764064.html Sent from the Camel - Users mail

how to send response to the webservice

2015-03-12 Thread chaituu
// generate the OrderResponse reply for the webservice which is still waiting for a reply // Passing OrderResponse to generateCSV and this route is working fine // how to get final result as OrderResponse for the w

Re: Are transactions useful in these use-cases?

2015-03-12 Thread Willem Jiang
There are too many resources need to be managed, I’m not sure if it is worth to put all the options into one transactions.  -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁wi

Re: camel-snmp TrapReceiveTest fails

2015-03-12 Thread Willem Jiang
I can reproduce the error and just created a JIRA[1] for it. [1]https://issues.apache.org/jira/browse/CAMEL-8479 -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On

Re: how to send response to the webservice

2015-03-12 Thread Taariq Levack
Hi Instead of routing to "seda:generateCSV", you can wiretap, then the response goes back to the client while the file is generated. See http://camel.apache.org/wire-tap.html On Fri, Mar 13, 2015 at 3:55 AM, chaituu wrote: > > > // generate the OrderResponse reply for

RE: how to send response to the webservice

2015-03-12 Thread prajod.vettiyattil
Hi, Add the mep attribute to the exchange in the last route: Your original code: Your code with mep attribute added: Prajod -Original Message- From: chaituu [mailto:yarlagadd...@gmail.com] Sent: 13 March 2015 07:26 To: users@camel.apache.org Subject: how to send response to the webse