Re: camel blueprint force usage of log4j

2015-10-19 Thread souciance
Hi Claus Yes true, I am using community edition via JBoss Developer Studio for a POC. For production it will be one of those containers. We have not decided yet. What I did was to create a Fuse project, and then wanted to switch the logging from log4j to logback and run the project. That's when I

Re: camel blueprint force usage of log4j

2015-10-19 Thread Claus Ibsen
I think the dependency is likely from the plugin itself as it downloads some dependencies it needs. On Mon, Oct 19, 2015 at 8:53 AM, souciance wrote: > Hi Claus > > Yes true, I am using community edition via JBoss Developer Studio for a POC. > For production it will be one of those containers. We

Re: camel blueprint force usage of log4j

2015-10-19 Thread Grzegorz Grzybek
@souciance, downloading is one thing and using - another. In real OSGi container you have pax-logging that chooses implementation. Camel-test-blueprint isn't tied to log4j. It has it only as "test" dependency together with "slf4j-log4j" binding. Grzegorz 2015-10-19 8:53 GMT+02:00 souciance : > H

Re: camel blueprint force usage of log4j

2015-10-19 Thread souciance
Hello Grzegorz, Here is the dependency tree: [INFO] +- org.apache.camel:camel-core:jar:2.15.1.redhat-620133:compile [INFO] | +- org.slf4j:slf4j-api:jar:1.6.6:compile [INFO] | +- com.sun.xml.bind:jaxb-core:jar:2.2.11:compile [INFO] | \- com.sun.xml.bind:jaxb-impl:jar:2.2.11:compile [INFO] +- or

Re: camel blueprint force usage of log4j

2015-10-19 Thread souciance
Aha, ok so if I understood you correctly, for simple development and POC you should use the standard log4j that is part of the Fuse project setup. When you move to the actual environment, its Pax that then decides the actual logging implementation. Ok, thanks for the clarification on this. --

Re: camel blueprint force usage of log4j

2015-10-19 Thread Grzegorz Grzybek
@souciance "for simple development and POC you should use the standard log4j" - not exactly. log4j(1) is quite old logging implementation. In your code you should use slf4j-api - it's what Camel uses: [INFO] +- org.apache.camel:camel-core:jar:2.15.1.redhat-620133:compile [INFO] | +- org.slf4j:sl

Re: camel blueprint force usage of log4j

2015-10-19 Thread souciance
@Grzegorz and @Claus , yes sorry, meant the slf4j-api. Thanks for the explaination on this. Makes sense now. -- View this message in context: http://camel.465427.n5.nabble.com/camel-blueprint-force-usage-of-log4j-tp5772826p5772852.html Sent from the Camel - Users mailing list archive at Nabble.

Re: Implementing Cron based Aggregator with selective message type

2015-10-19 Thread Andrea
Hi, I have a similar use case. more than 1 type of messages in the queue (not know a priori), some needs to be aggregated at time T1 and others and T2, this time will be calculated dinamically.. Any idea? Thanks, Andrea -- View this message in context: http://camel.465427.n5.nabble.com/Imp

Passing ReplyToQueue for a InOnly exchange

2015-10-19 Thread Vanshul . Chawla
Hello all, We need to set ReplyToQueue for IBM MQ for a message going out to a queue(Exchange is InOnly). We have set as FN=${in.header.TransactionReferenceNumber} FN=${in.header.Tran

Exchanges body and properites are not collected if it contains reference object which lead to memory leak

2015-10-19 Thread Darwish
I notice that if the a route exchanges completed where the body content was object reference let say List of POJO , the exchange remain in heap memory and never collected , same thing applied on exchange properties to overcome the issue , i manually set those references to NULL just before rou

Camel Route filling up our TXLOG

2015-10-19 Thread barry.barnett
Hello, We have a Camel route which takes messages from an IBM WebSphere MQ queue, and places them on an ActiveMQ queue. There are about 1 million messages being routed per hour. With this in mind, our txlogs are filling up (1 log which can reach up to 60 gig), and causing us to bounce our Act

Re: [camel-jdbc] opens one thread per update query until db error

2015-10-19 Thread dermoritz
fixed it myself: the problem was that i used the same endpoint to read and write data (both jdbc). The endpoint was set to use streamlist as output type that caused the problem. Now i am using 2 different endpoint (cumbersome to create 2 distinct endpoints for endpoints that are singleton) and the

Re: how to configure camel to read the properties for camel:sslContextParameters

2015-10-19 Thread swapna07
Thank you Greg for responding. I was trying few things to resolve the properties and I tried #${}. I have gone thru those links but for me none of them seems to be working. The properties are not getting resolved. Thanks -- View this message in context: http://camel.465427.n5.nabble.com/how-to

Camel tracer logs in hawtio

2015-10-19 Thread Karts
Hi, I have Camel deployed as a war in a Jetty container, along with hawtio as a war as well. Everything works well and as expected, but I am wondering if I can see the Camel tracer interceptor logs in the Logs tab of hawtio. I have tracing enabled with the usual: http://camel.apache.org/schema

Re: how to configure camel to read the properties for camel:sslContextParameters

2015-10-19 Thread Claus Ibsen
Not sure what that syntax is from #${xxx} But Camel's is {{xx}} style. And you nee to use that when its within the camel namespace. Outside such as in spring or blueprint you use their way. On Mon, Oct 19, 2015 at 6:34 PM, swapna07 wrote: > Thank you Greg for responding. I was trying few thin

Re: Camel tracer logs in hawtio

2015-10-19 Thread Claus Ibsen
Hi No that dont work container wise, currently it was working for karaf and ohters such as activemq. For it to work general in war, hawtio would need to access the server log file, which it can't ... yet. There may be a ticket in the hawtio tracker, if not you are welcome to log one. https://gith

Possible bug with BeanInfo.introspect

2015-10-19 Thread apara
Camel 2.15.3 I have the following structure: public interface Handler { Data handle(Data data); } public class AbstractHandler implements Handler { public Data handle(Data data) {... implementation ...} } public class ConcreteHandler extends AbstractHandler { ... no specific overr

Camel jms - reply handling

2015-10-19 Thread David Karlsen
Hi. We're observing that camel-jms is slow when doing request/reply (from the requesting side) using a shared replyQueue (setting correlationId == receivedMessage id at the responding side) when queuedepth increases. Underlying messaging middleware is IBM MQ. Looking at their documentation it seem

Exception while calling the ProducerTemplate.start() and stop() in a multi-thread code.

2015-10-19 Thread Shylendran C
I have a multi-threaded application where I have to send message continuously and I am using ProducerTemplate. But since it is a multi-threaded, it is breaking and getting the below exceptions. So, I've tried with 'static' where everything is working, but we can't go with static. So looking for a s

RE: Passing ReplyToQueue for a InOnly exchange

2015-10-19 Thread Vanshul . Chawla
Any suggestions on this? -Original Message- From: Vanshul.Chawla [mailto:vanshul.cha...@target.com] Sent: Monday, October 19, 2015 3:50 PM To: users@camel.apache.org Subject: Passing ReplyToQueue for a InOnly exchange Hello all, We need to set ReplyToQueue for IBM MQ for a message going

RE: Passing ReplyToQueue for a InOnly exchange

2015-10-19 Thread Vanshul . Chawla
Another interesting point is that I have set 3 headers like this MQSTR FN=${in.header.TransactionReferenceNumber} 819 Only ReplyToQueue header is missing. I have used destinationResolver class like this package com.tgt.tcom.il.SA.OMS; import javax.jms.Destination;

RE: Passing ReplyToQueue for a InOnly exchange

2015-10-19 Thread Vanshul . Chawla
Tried setting this 1 I get an exception that ReplyToQueue not set. So I think its not even setting properly. -Original Message- From: Vanshul.Chawla [mailto:vanshul.cha...@target.com] Sent: Tuesday, October 20, 2015 8:22 AM To: users@camel.apache.org Subject:

Re: Register a new datasource from a route

2015-10-19 Thread Camel Guy
A similar question was asked on Stack Overflow two months ago. A solution is posited by the author who also made a suggestion for making this use case easier. http://stackoverflow.com/questions/31604721/using-a-custom-registry-in-a-camel-application On Thu, Feb 5, 2015 at 7:46 AM, Camel Guy wrot

org.apache.camel.ProducerTemplate in a Multi-thread code - Breaking, need help...

2015-10-19 Thread Shylendran C
I have a multi-threaded application where I have to send message continuously and I am using org.apache.camel.ProducerTemplate. But since it is a multi-threaded, it is breaking and getting the below exceptions. So, I've tried with 'static synchronized' where everything is working, but we can't go w

Re: ProducerTemplate creates too much threads

2015-10-19 Thread shylendran.c
Hi, I am using camel-code-2.15.2.jar. I have a multi-threaded application where I have to send message continuously and I am using org.apache.camel.ProducerTemplate. But since it is a multi-threaded, it is breaking and getting the below exceptions. So, I've tried with 'static synchronized' where ev

Camel Unit Test Cases - Using TestNG

2015-10-19 Thread contactreji
Hello friends I am trying to write a unit test suite for my camel project. I use TestNG for running my test. My unit test class looks as follows. Can someone who has done this kind of test cases help me out :-) *package com.ds.case1.test; import org.apache.camel.EndpointInject; import org.apache

camel-JMS Component Responses from multiple queues

2015-10-19 Thread ravi.4indra
Hi, I am looking for some suggestions on scenario where response to a request sent to queue can come in any one of the three queues. is there a way in camel to check for responses in multiple queues. Thanks ravi -- View this message in context: http://camel.465427.n5.nabble.com/camel-JMS-Com

Re: ProducerTemplate creates too much threads

2015-10-19 Thread Claus Ibsen
Dont start / stop it all the time, create it once and reuse it, and stop it when you stop your app. On Tue, Oct 20, 2015 at 6:17 AM, shylendran.c wrote: > Hi, > I am using camel-code-2.15.2.jar. I have a multi-threaded application where > I have to send message continuously and I am using > org.a

Re: Camel Unit Test Cases - Using TestNG

2015-10-19 Thread Claus Ibsen
> import org.apache.camel.test.junit4.CamelTestSupport; If you want to use tesgng you should use the camel-testng module, and not the junit based. On Tue, Oct 20, 2015 at 6:33 AM, contactreji wrote: > Hello friends > > I am trying to write a unit test suite for my camel project. I use TestNG >

Re: camel-JMS Component Responses from multiple queues

2015-10-19 Thread Claus Ibsen
No that is not possible. camel-jms is for listening to one JMS destination. But some brokers allow to do composite queues such as ActiveMQ http://activemq.apache.org/virtual-destinations.html where you can define this on the broker level, so N+ queues can appear as 1 JMS destination. On Tue, Oc