netty4(-http) producer workerGroup and producerPool

2016-11-02 Thread Avnish Pundir
Hi Everyone, I am trying to use netty4-http (in producer mode) to connect to remote services. Apparently in my use case there are number of different remote services (more than 30 in total) I have to talk to. To keep the threads management under direct control, I was hoping to use same thread p

Re: Access CamelContext from a plain-old Servlet

2016-11-02 Thread Tomohisa Igarashi
Hi, Did you try this one? It seems to be providing CamelContext as a ServletContext attribute. http://camel.apache.org/servletlistener-component.html Thanks, Tomo On 11/03/2016 01:16 AM, PeterJNelson wrote: I have a web application that uses Camel. I do not use the camel servlet, but I do us

Re: how do you tell what version of PGP or Zip is bundled

2016-11-02 Thread Tomohisa Igarashi
Hi, The "2.15.1.redhat-620133" is a revision number for the Red Hat product. Would you ask Red Hat support? Thanks, Tomo On 11/03/2016 02:37 AM, Mills, Gary (GE Digital) wrote: Can someone tell me how to find the version of PGP ( Pretty Good Privacy ) encryption is used for 2.15.1.redhat-620

Re: route message based on system property

2016-11-02 Thread Tomohisa Igarashi
Hi, There's a properties component: http://camel.apache.org/properties.html But if it's just a system property or ENV, you can refer it via simple expression on a condition, sys.foo or sysenv.foo: http://camel.apache.org/simple.html Thanks, Tomo On 11/03/2016 04:11 AM, Mark wrote: I would li

Re: jms and camel

2016-11-02 Thread Tomohisa Igarashi
Hi, Found a same question, it seems camel-sjms supports batch receive while camel-jms doesn't. So if you don't use XA camel-sjms should be a good to go. http://camel.465427.n5.nabble.com/JMS-Batch-consumption-td5754941.html Although there's a BatchMessageListenerContainer in spring-batch, I don

Re: AMQ Camel assembly

2016-11-02 Thread Brad Johnson
It sounds like the karaf 4 static profiles. I've used them and like them a lot. I'm in the situation at a client's site where I have to install the bundles and dependencies in the actual pre-built AMQ/karaf container. If I put my bundle in the system folder it will install via the features. I'd

Re: Camel zero routes started upon startup of context

2016-11-02 Thread souciance
Gmail is not the best formatter but here it is..you can probably put it in notepad++ for better highlighting.. http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:cm=" http://aries.apache.org/blueprint/xmlns/blueprint-cm/

Re: Camel zero routes started upon startup of context

2016-11-02 Thread Quinn Stevenson
Can you share the Blueprint XML? > On Nov 2, 2016, at 12:53 PM, souciance > wrote: > > I am using camel-blueprint 2.17.0 and the blueprint simply states the > routes and I use the java dsl to implement the routes. Everything is > deployed to Karaf 4.0.2. > > However I see the same log output

Re: AMQ Camel assembly

2016-11-02 Thread souciance
Hi Brad Unfortunately I don't have access to my development computer so can't send you the example today. But let me explain a bit more what I meant. What I do is I basically create a complete custom distribution of Karaf together with all necessary bundles (Camel and all the rest) and include th

jms and camel

2016-11-02 Thread sa_james
Hello, I would like to consume a jms queue by closing the committing each opened session only after I have received 10 messages. Can I do that with camel? Thanks. -- View this message in context: http://camel.465427.n5.nabble.com/jms-and-camel-tp5789672.html Sent from the Camel - Users mail

Camel and jms

2016-11-02 Thread S AR
Hello, I would like to consume a jms queue by closing the committing each opened session only after I have received 10 messages. Can I do that with camel? Thanks.

How to change MaximumRequestsPerPeriod via JMX

2016-11-02 Thread ramchris
Hi, I am trying to change the value of the constant value of 30 defined in the below xml snippet via MBean through jconsole but do not know how to do it since I don't see this value being shown in the MBean attributes. mbeanattributes.png

route message based on system property

2016-11-02 Thread Mark
I would like the ability to route a message based on the value of a property contained in a property file. My route receives data and in some debugging situations I'd like to write the data to disk. So if I set a property in a config file I would like files to be written to disk using the "file"

Re: Camel zero routes started upon startup of context

2016-11-02 Thread souciance
I am using camel-blueprint 2.17.0 and the blueprint simply states the routes and I use the java dsl to implement the routes. Everything is deployed to Karaf 4.0.2. However I see the same log output if I simply run it in intellij. On Wed, Nov 2, 2016 at 4:59 PM, Claus Ibsen-2 [via Camel] < ml-node

Re: AMQ Camel assembly

2016-11-02 Thread souciance
Hi Brad, that's not what I meant, will send you an example later to see. Den 2 nov. 2016 6:10 em skrev "Brad Johnson [via Camel]" < ml-node+s465427n5789661...@n5.nabble.com>: > Most of what I need is already in the features installed in the AMQ. This > is more a matter of pulling my items toget

Re: 'host' configuration param not used by servlet

2016-11-02 Thread Jonas Koperdraat
Hi Zoran, I've checked and the proxy sets the 'X-Forwarded-Host' header and this contains the 'correct' host. The 'Host' header is also present on the request and this contains the hostname of the actual machine the servlet is running on. I'm not sure if we have the option to set it, but seeing as

how do you tell what version of PGP or Zip is bundled

2016-11-02 Thread Mills, Gary (GE Digital)
Can someone tell me how to find the version of PGP ( Pretty Good Privacy ) encryption is used for 2.15.1.redhat-620133 release? Is it the bouncy castle version? I'm also looking for the zip data formatter ? When I look in the BOM or parent POM I see only reference to bouncyCastle. Thanks every

Re: AMQ Camel assembly

2016-11-02 Thread Brad Johnson
Most of what I need is already in the features installed in the AMQ. This is more a matter of pulling my items together and installing them as a feature. Obviously I could do that locally where I can install it in MVN and then put the url in on the karaf command line and run the install. I could d

Access CamelContext from a plain-old Servlet

2016-11-02 Thread PeterJNelson
I have a web application that uses Camel. I do not use the camel servlet, but I do use the Spring ContextLoaderListener to start my CamelContext. I've tried creating a POJO that implements CamelContextAware, and added that POJO as a bean in my camel config file. My servlet then accesses that bea

Re: Camel zero routes started upon startup of context

2016-11-02 Thread Claus Ibsen
Are you using camel-cdi, then it was doing like that for older releases. Try with 2.18 or maybe latest 2.17.x On Wed, Nov 2, 2016 at 11:09 AM, souciance wrote: > Hello, > > I have question regarding the output of Camel when routes are started. > > I can see that it states first: > Total 0 routes

Re: 'host' configuration param not used by servlet

2016-11-02 Thread Zoran Regvart
Hi Jonas, On Wed, Nov 2, 2016 at 4:25 PM, Jonas Koperdraat wrote: > I don't know whether that header is being sent by the proxy. Should that > impact the behavior I am seeing (e.g. should does that influence the result > of getRequestURL)? It does on some Servlet engines / middlewares, it might

Re: 'host' configuration param not used by servlet

2016-11-02 Thread Jonas Koperdraat
Hi Zoran, I don't know whether that header is being sent by the proxy. Should that impact the behavior I am seeing (e.g. should does that influence the result of getRequestURL)? I was considering a filter that alters the resulting swagger documentation, but a filter that overrides getRequestURL i

Re: AMQ Camel assembly

2016-11-02 Thread souciance
I am not sure this is what you want but I have created a custom distribution for Karaf that includes all my bundles for Camel and everything else and you can then specify your config files. It is a pom based config and after doing a clean install you get a zip and tar.gz file. You can then upload t

Camel zero routes started upon startup of context

2016-11-02 Thread souciance
Hello, I have question regarding the output of Camel when routes are started. I can see that it states first: Total 0 routes, of which 0 are started. Then it says the CamelContext has started.. Furtherdown it says the routes have started and consuming. Why is it doing that and not let me know at

Re: Camel-REST vs Cxfrs

2016-11-02 Thread Brad Johnson
I supposed that's a matter of preference. I've used CXF in blueprint and am very comfortable with it. I'll usually us a single bundle and commonly setup up both SOAP and REST endpoints in there using annotated interfaces. Then I'll use the operationName in a recipient list to route the requests to

AMQ Camel assembly

2016-11-02 Thread Brad Johnson
Are there any good examples of creating an assembly to install my bundles into a standalone karaf/AMQ instance. I'm used to working with the Fuse stack where creating a features file, adding the url via mvn:install, and then doing the mvn:install installs all my requirements and cfg files. So th

Re: 'host' configuration param not used by servlet

2016-11-02 Thread Zoran Regvart
Hi Jonas, On Wed, Nov 2, 2016 at 2:57 PM, Jonas Koperdraat wrote: > It seems to me that this is a bug, but I might be mistaken, Is anyone > else familiar with this problem and aware of a solution/workaround? is your proxy sending the X-Forwarded-Host header to the servlet engine (watchout for To

RE: zipfile question - thank you

2016-11-02 Thread Mills, Gary (GE Digital)
Stephan, This is my code and what was changed to make it work. The 2 commented statements, plus the wrapper. package com.ge.ip.cfi.inboundemail.processors; import java.io.BufferedWriter; import java.io.IOException; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.

Re: Polling consumer poll period

2016-11-02 Thread Brad Johnson
Kasim, Have you tried polling a local resource just to see if the results are the same? For example, if you poll file://foo.txt with a few lines of text in it do you still see the 1 minute timeout? Also, what is happening your Bean class? I assume there isn't some long lived process in there.

RE: zipfile question - thank you

2016-11-02 Thread Mills, Gary (GE Digital)
Thank you so much Stephan for your response. I was thinking I was doing something wrong on these forums or email chats - thank you. You are completely right, I have that in place didn't share it yet. However, I believe I have solved this. It was type conversion - go figure, I was changing the

'host' configuration param not used by servlet

2016-11-02 Thread Jonas Koperdraat
I have a REST API for which I am exposing a swagger definitiion using camel-swagger-java. The application is deployed behind a proxy, because of which I need to change host used in the generated swagger documentation. Currently, the internal hostname of the actual machine is being used, based on th

Re: Conditional Polling Consumer

2016-11-02 Thread Brad Johnson
Have you thought about using different prime numbers as your polling times? On Wed, Nov 2, 2016 at 7:59 AM, Quinn Stevenson wrote: > Sorry - yes, you’re using the right thing. The enrich DSL would use a > producer, which isn’t what you were looking for - pollEnrich is the right > choice. > > So

Re: Conditional Polling Consumer

2016-11-02 Thread Quinn Stevenson
Sorry - yes, you’re using the right thing. The enrich DSL would use a producer, which isn’t what you were looking for - pollEnrich is the right choice. Sorry for any confusion I may have caused - I’m glad you got it working in spite of my mis-information ;-) > On Nov 2, 2016, at 1:53 AM, cac

Incorrect context path in camel-swagger-java swagger servlet?

2016-11-02 Thread Jonas Koperdraat
Hi, I have an application deployed at "http://server:port/some/context/path";, with a REST api at "http://server:port/some/context/path/rest";. According to http://camel.apache.org/swagger-java.html, I should configure the 'base.path' and 'api.path' relative to the context path. However, I find t

Re: QuartzScheduledPollConsumerScheduler, cluster and scheduler.triggerId

2016-11-02 Thread glenn
The FileIdempotentRepositoryReadLockStrategy.acquireExclusiveReadLock method guards against processing the same file twice. So specification of the scheduler.triggerId is NOT required to ensure that the file is only processed once in the cluster -- View this message in context: http://camel.465

Re: camel 2.18.0 VM problem after update

2016-11-02 Thread Marvin
Hi, I cloned the repository and tried to build it with maven, but unfortunately I got errors within the camel-soap component: \camel-soap\target\generated\src\test\java\com\example\soapheaders\SampleEnumType.java:[4,3] error: unmappable character for encoding UTF-8 \camel-soap\target\generated\sr

Re: camel 2.18.0 rabbitmq component fails under Karaf

2016-11-02 Thread Andrea Cosentino
It seems this is fixed in 3.6.6. I tested 3.6.6-SNAPSHOT and it works fine. -- Andrea Cosentino -- Apache Camel PMC Member Apache Karaf Committer Apache Servicemix Committer Email: ancosen1...@yahoo.com Twitter: @oscerd2 Github: oscerd On Wednesday, November 2,

Re: camel 2.18.0 rabbitmq component fails under Karaf

2016-11-02 Thread souciance
Thanks for creating the issue. On Wed, Nov 2, 2016 at 11:01 AM, Andrea Cosentino-2 [via Camel] < ml-node+s465427n5789623...@n5.nabble.com> wrote: > I opened an issue > > https://github.com/rabbitmq/rabbitmq-java-client/issues/211 > > -- > Andrea Cosentino > -- > A

Re: Conditional Polling Consumer

2016-11-02 Thread cacert
I have tried pollEnrich(), it seem to be doing what i want. I hope I am doing the right thing :) thank you. -- View this message in context: http://camel.465427.n5.nabble.com/Conditional-Polling-Consumer-tp5789604p5789613.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Polling consumer poll period

2016-11-02 Thread cacert
Hi, Where is this one minute waiting time is coming from. If I disable pollingEnrich() then I see timer works as expected(its sending an empty exchange every 10 seconds). -- View this message in context: http://camel.465427.n5.nabble.com/Polling-consumer-poll-period-tp5789609p5789625.html Sen

Re: camel 2.18.0 rabbitmq component fails under Karaf

2016-11-02 Thread Andrea Cosentino
I opened an issue https://github.com/rabbitmq/rabbitmq-java-client/issues/211 -- Andrea Cosentino -- Apache Camel PMC Member Apache Karaf Committer Apache Servicemix Committer Email: ancosen1...@yahoo.com Twitter: @oscerd2 Github: oscerd On Wednesday, November

Re: camel 2.18.0 rabbitmq component fails under Karaf

2016-11-02 Thread Tomohisa Igarashi
Yep, I actually can see "junit.framework,org.junit" in Import-Package of the amqp-client-3.6.4.jar!META-INF/MANIFEST.MF while it's not in 3.6.3. com.rabbitmq.client.test.ssl seems to be using it. On 11/02/2016 05:43 PM, Andrea Cosentino wrote: The Rabbitmq-client OSGi bundle comes directly fro

Re: Polling consumer poll period

2016-11-02 Thread Zoran Regvart
Hi Kasim, you need to add fixedRate=true to timer parameters, see example at: http://camel.apache.org/timer.html#Timer-Sample zoran On Wed, Nov 2, 2016 at 6:28 AM, Kasim Sert (Ibtech-Software Infrastructure) wrote: > Hi, > > Although timer period is 10 seconds , when i check the logs I can see

Re: camel 2.18.0 rabbitmq component fails under Karaf

2016-11-02 Thread Andrea Cosentino
The Rabbitmq-client OSGi bundle comes directly from Rabbitmq https://github.com/rabbitmq/rabbitmq-java-client/blob/master/pom.xml#L860-L886 Between 3.6.3 and 3.6.4 something changes in the codebase of Rabbitmq-client, related to Junit I guess and I don't see changes in our component looking at

Re: camel 2.18.0 rabbitmq component fails under Karaf

2016-11-02 Thread souciance
Sorry I didn't quit understand, do you mean camel-rabbitmq introduced the dependency to junit or rabbitmq-client? Or is there somewhere we can look to see the dependency to junit? Just for my own understanding. Thanks. On Wed, Nov 2, 2016 at 9:07 AM, Andrea Cosentino-2 [via Camel] < ml-node+s46542

Re: camel 2.18.0 rabbitmq component fails under Karaf

2016-11-02 Thread Andrea Cosentino
I meant the dependency in the OSGi bundle. It should be something related to the maven-bundle-plugin configuration in the rabbitmq-client pom -- Andrea Cosentino -- Apache Camel PMC Member Apache Karaf Committer Apache Servicemix Committer Email: ancosen1...@yaho

Re: camel 2.18.0 rabbitmq component fails under Karaf

2016-11-02 Thread souciance
I had a look at the maven repo: https://mvnrepository.com/artifact/com.rabbitmq/amqp-client/3.6.4 But junit is set as test dependency. It looks similar to 3.6.3. Or is that the wrong place to look? On Wed, Nov 2, 2016 at 8:27 AM, Andrea Cosentino-2 [via Camel] < ml-node+s465427n578961...@n5.nabbl

RE: zipfile question - thank you

2016-11-02 Thread Siano, Stephan
Hi, how do you retreive the message from the mail server? On the server an email with a zip file attachment is actually a MIME-Multipart. One of the parts within that is the (usually base64 encoded) zip file. If you just read the message with some form(pop3:xxx) thing, and try to unmarshal that

Re: camel 2.18.0 rabbitmq component fails under Karaf

2016-11-02 Thread Andrea Cosentino
It seems the dependency on Junit has been introduced with rabbitmq amqp client in version 3.6.4 Downgrade to 3.6.3 works fine. -- Andrea Cosentino -- Apache Camel PMC Member Apache Karaf Committer Apache Servicemix Committer Email: ancosen1...@yahoo.com Twitter: