Re: getMBeanServer() returns null on DefaultCamelContext - why?

2015-04-09 Thread Claus Ibsen
Is the CamelContext started when you call this code? As its when the mangement agent is started it initializes the mbean server. You can also get the mbean server using return ManagementFactory.getPlatformMBeanServer(); This is what Camel uses by default. On Thu, Apr 9, 2015 at 11:15 AM,

Re: Validate gzipped CSV without changing it

2015-04-09 Thread yogu13
wire tap http://camel.apache.org/wire-tap.html or multicast http://camel.apache.org/multicast.html components can help you in this. Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Validate-gzipped-CSV-without-changing-it-tp5765510p5765521.html Sent

Re: FTP Reconnect attempt problem

2015-04-09 Thread Claus Ibsen
Hi The consumer is a single threaded scheduler so if you sleep it for a long time, then it should not impact. Mind that the consumer is scheduled polling consumer so it has some options for backoff in case of error etc. See http://camel.apache.org/polling-consumer.html the table in

Re: How to add new element in xml using Spring Camel Context

2015-04-09 Thread zasy
Hi Claus, Thanks for your reply. So for this we need to create java bean? we can not simply set in the spring xml? Also if you can share some reference link that will be really helpful. -- View this message in context:

Re: How to use the Jira Camel Component

2015-04-09 Thread Claus Ibsen
Hi Sometimes its a good idea to check the unit tests of the camel component as these tests may be inspiration how to use it. On Thu, Apr 9, 2015 at 5:39 PM, anas bakhou anas.bak...@gmail.com wrote: Hi, I am new in Camel and OSGi and I would like to use the new component Jira to Connect to

Re: Why so many port used when I use camel-netty4-http

2015-04-09 Thread Willem Jiang
I don’t think camel-netty4-http can open those ports like you side. What’s your camel route looks like? Did you just deploy the camel route inside the tomcat? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com

Re: FTP Reconnect attempt problem

2015-04-09 Thread ekz
Hi, How it is meaningful to put that Thread.sleep(reconnectDelay) to CustomPollStrategy instead of the one in SftpOperations class ? public class CustomPollStrategy extends RemoteFilePollingConsumerPollStrategy { @Override public synchronized boolean rollback(Consumer consumer,

Re: FTP Reconnect attempt problem

2015-04-09 Thread ekz
Hi, This is what i was looking for, Thanks Claus! backoff saved my life. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-Reconnect-attempt-problem-tp5765466p5765523.html Sent from the Camel - Users mailing list archive at Nabble.com.

getMBeanServer() returns null on DefaultCamelContext - why?

2015-04-09 Thread dermoritz
I want to register an own MBean (dynamic MBean) in my Camel application. For this i use context.getManagementStrategy().getManagementAgent().getMBeanServer().registerMBean(dMBean, null); The problem is that getMBeanServer() returns null. Javadoc says: Notice: If the JMXEnabled configuration is

How to add new element in xml using Spring Camel Context

2015-04-09 Thread zasy
Hi, I am developing with JBoss fuse, camel context. I have a requirement where I need to add a new element in the input xml, the value will be from input header. I want to avoid java stuffs, so is it possible to do that in camel context xml itself using xpath or setBody something like that? I

Re: How to pass message from activemq queue to cxf client rest

2015-04-09 Thread Andrew Block
Instead of hardcoding the address on your client, you can use the  CamelDestinationOverrideUrl header to dynamically set the url at runtime setHeader headerName=“CamelDestinationOverrideUrl simplehttp://10.47.2.203:8080/rest/api/2/search?jql=project=${body}/simple /setHeader - Andy --  Andrew

Re: camel-ftp 2.15.1 return ftp error code 421

2015-04-09 Thread Willem Jiang
I just try to guess what’s the cause of issue of camel-ftp 2.15.1 by looking up the change log. I’m not sure if changing the receiving buffer could make the difference.  It looks like you just find the key of the issue, am I right? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com

Re: Jetty HTTPS 2way

2015-04-09 Thread garethahealy
Hi Willem, I am using Fuse 6.1-redhat-379. Cheers. -- View this message in context: http://camel.465427.n5.nabble.com/Jetty-HTTPS-2way-tp5765296p5765502.html Sent from the Camel - Users mailing list archive at Nabble.com.

Route shutdown does not fully cleanup

2015-04-09 Thread peter.berkman
Camel version: 2.13.3 I have per route configuration that I monitor and if it changes I need to fully shutdown the route and recreate it. The problem is that the route stop() then remove() doesn't fully shut everything down and the context still believes it has declared routes that it should

Setting encoding and ccsid in camel for mainframe message

2015-04-09 Thread Vanshul . Chawla
Hello, We are trying to send a message to mainframe queue. MQMD.Format should be MQSTR which we did by setting targetClient=1 setHeader headerName=JMS_IBM_Encoding simple resultType=java.lang.Integer785/simple /setHeader

Re: How to pass message from activemq queue to cxf client rest

2015-04-09 Thread anas bakhou
That's work for me !! Thank you for the help -- View this message in context: http://camel.465427.n5.nabble.com/How-to-pass-message-from-activemq-queue-to-cxf-client-rest-tp5765481p5765519.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How to add new element in xml using Spring Camel Context

2015-04-09 Thread Claus Ibsen
Hi You may be able to use xslt transformations when you work with XML. An alternative is a template based. Or sometimes a search/replace can do it, if you know that the xml has a fixed value you can use for search and then replace it with the extra values you need. But XML has XSLT as the

Re: Jetty HTTPS 2way

2015-04-09 Thread Willem Jiang
Which of CXF version are you using? If I remember right CXF fix some SSLv3 issue last year within the version of 2.7.x, I’m not sure if it can cause the issue that you faced. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English)

Re: How to add new element in xml using Spring Camel Context

2015-04-09 Thread Claus Ibsen
Hi No you can use xslt in spring xml. Its standard XML Transformation. Although if you have no experience with xslt before then it can be hard to learn as its not like regular programming. http://camel.apache.org/xslt For xslt you may search the internet or stackoverflow

How to use the Jira Camel Component

2015-04-09 Thread anas bakhou
Hi, I am new in Camel and OSGi and I would like to use the new component Jira to Connect to the Jira REST Client to get the issues from Jira. Can any one post an example for the use of Jira Camel Compenent with the serverUrl , username and password !! I don't find any example to illustre it. Jira

Aggregator + (LevelDB or HawtDB for persistency) incorrect behavior

2015-04-09 Thread vassilis
Hi all! Using camel 2.12.5 problem is reproducible (same for latest 2.11, latest 2.13, latest 2.14, latest 2.15). Using camel 2.10.7 (i.e. latest 2.10) problem is NOT reproducible. Problem appears only if a LevelDB or HawtDB repo is used. In memory default aggregator works fine. Reproduced by

Re: Camel transacted route from JMS to JDBC

2015-04-09 Thread Christian Müller
Your configuration is not correct. Have a look at https://github.com/muellerc/camel-in-transaction Best, Christian - Software Integration Specialist Apache Member V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer Apache Incubator PMC Member

AggregationStrategy

2015-04-09 Thread Frankiboy
Here is an example of some off my route: from(cxf:bean:hubws?dataFormat=MESSAGE).streamCaching().onException(Exception.class).handled(true) .setHeader(HubConstants.DURATION.getValue(), constant(Hub received request)) .multicast().to(direct:channel1,

Re: Problem to write quotes correct on CSV-fields when marshalling with CsvDataFormat

2015-04-09 Thread yogu13
Hello, would you have any test case which can be used to reproduce it? Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Problem-to-write-quotes-correct-on-CSV-fields-when-marshalling-with-CsvDataFormat-tp5765477p5765522.html Sent from the Camel - Users

Re: Event driven producer?

2015-04-09 Thread mailingl...@j-b-s.de
Hi Christopher! Why not using an aggregator? Or you simply emit your messages 1:1 and set the message body to 'null' if there is nothing to send from your business logic perspective. You can simply use a filter afterward to drop all messages having a 'null' body to get your expected

Re: camel elasticsearch component

2015-04-09 Thread Akram
Hi jakub, Thanks for your reply. I did the same thing. Then it was working fine. -- View this message in context: http://camel.465427.n5.nabble.com/camel-elasticsearch-component-tp5764662p5765540.html Sent from the Camel - Users mailing list archive at Nabble.com.

Validate gzipped CSV without changing it

2015-04-09 Thread Ulrik Sandberg
I need to validate the incoming gzipped CSV stream, but not change it, so that the next step can write the gzipped CSV to file (actually S3). Is there a nice pattern for this, like forking the stream or something, or do I have to unmarshal with gzip, unmarshal with csv, marshal with csv and

Re: camel-ftp 2.15.1 return ftp error code 421

2015-04-09 Thread alexey-s
Yes, I tried to find an answer to the question why the process ceases to take files from ftp server. The most simple - revert to the old assembly Camel. Lo and behold, the files were taken. But just a couple of days. Server file number increased by several hundred. The system stops to pick up the