possible camel-jms regression in 2.17.2

2016-08-10 Thread Preben.Asmussen
Hi I just tried to upgrade camel-jms from 2.17.1 to 2.17.2 and got jms errors due to Oracle AQ regards JMSX*** properties as read only. As I re call there were som special handling regarding exchange header copying this in 2.xx. due to this fact. I think the change was introduced in https://issue

synchronous REST-WS and camel routes

2016-08-10 Thread chandler
I want to create a synchronous REST-WS that runs as set of camel routes and finally returns the HTTP response (JSON). My current thinking is Camel Rest component /to/ a camel request/reply jms component.The request is routed several times (enriched/transformed). And finally the reply needs to be re

Can't turn off debug logs

2016-08-10 Thread karim_adly
I am trying to turn off debug logs, I followed the following steps http://camel.apache.org/how-do-i-enable-debug-logging.html made log level INFO, still can see debug logs, tried to create log4j.xml instead of log4j.properties. same issue . it doesn't seem that my configuration being picked up a

Camel Spring JMX and context:property-placeholder

2016-08-10 Thread chandler
I would like to externalize my JMX Properties. I am using the spring context:property-placeholder to set my JMX values. But the jmxAgent is run before the properties are set (context:property-placeholder)? // -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Spring-JMX-an

Re: ahc-ws

2016-08-10 Thread Aki Yoshida
I think there is no websocket provider registered by the ahc client. Please check if you have e.g., mvn:io.netty/netty/3.9.2.Final on your classpath. 2015-08-10 12:35 GMT+02:00 Sanjana : > Hello, > I am using ahc-ws to send messages a server. I have done it like this - > http://camel.apache.org/sc

Re: Loading all beans before the Camel Context starts

2016-08-10 Thread Rajith Muditha Attapattu
I've always used blueprint too and now feeling my way around CDI. I'm loading a drools engine programatically using a kjar. I want that in place before my routes start. On Wed, Aug 10, 2016 at 3:13 PM, Brad Johnson wrote: > If you don't need to initialized them you could override the start like

Re: Loading all beans before the Camel Context starts

2016-08-10 Thread Brad Johnson
If you don't need to initialized them you could override the start like that but then have a verify method. That would make sure you aren't inadvertently changing any behavior. @Override public void start() throws Exception{ super.start(); verifyBeans(); } private void verifyBeans() {

Re: Loading all beans before the Camel Context starts

2016-08-10 Thread Rajith Muditha Attapattu
I'm using Camel 2.15 bcos thats the version coming Fuse 6.2.1 But my understanding is that CDI events are not supported until 2.17 What's the drawback of overriding start() ? On Wed, Aug 10, 2016 at 2:33 PM, Antonin Stefanutti wrote: > One alternative is to observe for the CamelContextStartingE

Re: Loading all beans before the Camel Context starts

2016-08-10 Thread Antonin Stefanutti
One alternative is to observe for the CamelContextStartingEvent that’s fired before the corresponding Camel contexts get started, e.g.: void initMyBeansBeforeContextStart(@Observes CamelContextStartingEvent event, MyBean bean) { bean.init(); } Either method argument or class field injection

Loading all beans before the Camel Context starts

2016-08-10 Thread Rajith Muditha Attapattu
I'm using CDI and want to make sure all my beans are loaded before the context and properly initialized. I have them as attributes in my CamelContext class with @Inject. However I override the start method in the context to make sure I call the various initi methods for those beans to make sure t

Re: Chaining web service calls in a route

2016-08-10 Thread awilliams
I've now resolved this. The problem was that the web service consists of two operations and for some reason when I called the producer endpoint it was selecting the first operation by default - same parameter but different return value. Therefore all I had to do was to tell Camel explicitly which

Marshal().Jib

2016-08-10 Thread Adrian Khalili
Hi Camel users forum, I am relatively new to Camel. I have couple of questions regarding Jibx. I am trying to marshal an object to Jibx and send it to a webservices endpoint. Please see the code snippet below: from("what should this be?").marshal().jibx(jibxMock).to("WebsericesEndPoint"); My q

Re: CDI - Having 2 contexts within the same JVM

2016-08-10 Thread Rajith Muditha Attapattu
Another worry I have is how to do transactions. If I'm not mistaken, Spring is the preferred transaction mechanism. On Wed, Aug 10, 2016 at 10:32 AM, Brad Johnson wrote: > Part of the reason I asked that question is that if you are using blueprint > you start your route builder in the context i

Re: CDI - Having 2 contexts within the same JVM

2016-08-10 Thread Brad Johnson
Part of the reason I asked that question is that if you are using blueprint you start your route builder in the context in the XML file. Spring is similar. CDI requires the annotation help and I haven't used it before 2.17 so I'm not sure how ready for primetime it was before. http://camel.a

Re: CDI - Having 2 contexts within the same JVM

2016-08-10 Thread Rajith Muditha Attapattu
Thanks guys for the information. I'm using 2.15 ...as thats the version bundled with the Fuse 6.2.1 release. On Tue, Aug 9, 2016 at 4:18 AM, Antonin Stefanutti wrote: > Hi, > > Camel CDI is capable of managing multiple Camel contexts within the same > JVM / same CDI container. You can find more