Re: Custom exclusiveReadLockStrategy in Servicemix + Camel

2011-06-27 Thread Claus Ibsen
What version of ServiceMix are you using? And try upgrading as I have seen this issue in the past fixed in a recent SMX release. Albeit I think that issue was not with JBI but using just OSGi bundles. On Thu, Jun 23, 2011 at 3:15 PM, Laurentiu Trica wrote: > Hi everyone, > > I have a problem usi

Re: Multiple remote connection to the same host but different users

2011-06-27 Thread boday
this was fixed in version 2.5...see CAMEL-2945 boday wrote: > > I'm looking into this, but I don't see the issue in the code > (2.8-SNAPSHOT). The producer cache uses the endpoint URI as the key and > this is unique because the user/password are part of the URI... > > I wrote a simple unit tes

Re: Custom exclusiveReadLockStrategy in Servicemix + Camel

2011-06-27 Thread Jon Anstey
Hmmm.. not sure without looking at your app. Maybe create a new ticket ( https://issues.apache.org/jira/browse/CAMEL) and attach a zip of your project? Cheers, Jon On Fri, Jun 24, 2011 at 10:37 AM, Laurentiu Trica < laurentiu.tr...@moredevs.ro> wrote: > Hello, > > I tried using the same version

Re: example app to embed camel-web-console

2011-06-27 Thread Jon Anstey
Now it depends on what jar you are talking about but in general since a WAR classloader is flat, you can't have two versions of the same class... so you will either have to find some way of using the same version of this jar in your application as Camel uses or separate this into 2 WARs. On Fri, J

Re: Camel under OSGi without Spring et al.

2011-06-27 Thread Christian Schneider
Either that or the OsgiCamelContext should be in an exported package. Christian Am 27.06.2011 22:51, schrieb Donald Whytock: On Mon, Jun 27, 2011 at 4:38 PM, Christian Schneider wrote: Have you tried using the org.apache.camel.osgi.CamelContextFactory? It is located in the camel-spring modu

Re: Camel under OSGi without Spring et al.

2011-06-27 Thread Donald Whytock
On Mon, Jun 27, 2011 at 4:38 PM, Christian Schneider wrote: > Have you tried using the org.apache.camel.osgi.CamelContextFactory? > It is located in the camel-spring module. Honestly no idea why as it does > not have to do with spring. > > cf = new CamelContextFactory(); > cf.setBundleContext(cont

Re: Camel under OSGi without Spring et al.

2011-06-27 Thread Donald Whytock
Seems reasonable, since presumably OsgiPackageScanClassResolver is more made to be used in an OSGI environment than the DefaultPackageScanClassResolver. This might also solve a problem I was having, where OsgiDefaultCamelContext.getComponentNames() was coming up empty. Can you test with a non-cor

Re: Camel under OSGi without Spring et al.

2011-06-27 Thread Christian Schneider
Have you tried using the org.apache.camel.osgi.CamelContextFactory? It is located in the camel-spring module. Honestly no idea why as it does not have to do with spring. cf = new CamelContextFactory(); cf.setBundleContext(context); cf.createContext(); You can do this from you bundle Activator.

RE: Camel under OSGi without Spring et al.

2011-06-27 Thread Michael Furtak
Ok. I seem to have found a resolution. Now the question is whether or not it is appropriate. :) Since we seemed to agree that classes are not being found by their annotations, I tried to backtrace how that was being resolved. Where I wound up was in org.apache.camel.core.osgi.OsgiTypeConverter.

Re: InvocationTargetException when startinhg active mq endpoint

2011-06-27 Thread mcaserta
Check your classpath: you probably have a version of the spring-jms.jar which is in conflict with what camel expects. Mirko -- View this message in context: http://camel.465427.n5.nabble.com/InvocationTargetException-when-startinhg-active-mq-endpoint-tp4529307p4529653.html Sent from the Camel -

Re: problem while accessing the "Source" tab in JIRA

2011-06-27 Thread Richard Kettelerij
Click the 'subversion commits" tab it shows similar info. On Mon, Jun 27, 2011 at 2:31 PM, bvahdat wrote: > Hi, > > not sure if I'm the only one, but since couple of weeks I get the following > http://camel.465427.n5.nabble.com/file/n4528136/jira.jpg jira.jpg while > accessing the Source tab of

RE: Unable to catch exception from Camel.

2011-06-27 Thread Sven Zethelius
Sorry, I didn't look at the stack trace close enough. That is during a send, in the camel RedeliveryErrorHandler, so disregard my previous statement. To handle it, you'd need to replace the RedeliveryErrorHandler with one that will catch exceptions (e.g. wrap that processor) -Original Mes

InvocationTargetException when startinhg active mq endpoint

2011-06-27 Thread Andrè
whats this ? 442 [org.apache.camel.spring.Main.main()] INFO org.apache.camel.impl.converter.AnnotationTypeConverterLoader - Found 6 packages with 16 @Converter classes to load 3492 [org.apache.camel.spring.Main.main()] INFO org.apache.camel.impl.converter.DefaultTypeConverter - Loaded 159 type co

Re: Camel under OSGi without Spring et al.

2011-06-27 Thread Donald Whytock
No specific thoughts, no. It's fairly clear you're waiting for TypeConverterLoader to be registered before you're trying to start the CamelContext, and (if this is all the code you have loaded) you're not trying to access a file component. Honestly, I think it should work, but again I'm not famil

Re: Errorhandling Question: ExchangeTimeOutException

2011-06-27 Thread Andrè
Thats the trace ouf my first: post 25723 [Camel (camel-3) thread #2 - JmsReplyManagerTimeoutChecker[services.global.xacml.authzRequests]] ERROR org.apache.camel.processor.DefaultErrorHandler - Failed delivery for exchangeId: ID-student02-bonn-tarent-de-57172-1308667766469-1-3. Exhausted after deliv

Re: intercept using adviceWith()

2011-06-27 Thread woggle23
I tried running it against 2.8-SNAPSHOT, the results were worse - the test didn't even pass with a single intercept. The attached zip is the test I was trying to perform (DatabaseErrorTest), a single intercept is currently in use (intercepting the "MsgInterface" route), adding the "DBcontentsInter

RE: Camel under OSGi without Spring et al.

2011-06-27 Thread Michael Furtak
Hi Don, Thanks for your continued help. I've had my efforts diverted elsewhere for a bit, but I'm back to trying to explore this again today. Following this message: http://camel.465427.n5.nabble.com/Camel-under-OSGi-without-Spring-et-al-tp4507473p4511826.html I've modified my test environment

RE: Unable to catch exception from Camel.

2011-06-27 Thread Sven Zethelius
Actually you won't be able to catch the exception, since this is caught and handled in Spring-JMS AbstractPollingMessageListenerContainer. It's not retry, so much as just constantly polling the destination regardless of success or failure. You may be able to install an ErrorHandler, although I

Re: Unable to catch exception from Camel.

2011-06-27 Thread Ashwin Karpe
Hi, Looks like your route is not getting established and the exceptionListener is not kicking in since the idea is to catch JMS exceptions once the route is established/started. The exception is being thrown while trying to establish the Connection to a given queue, prior to the route being start

problem while accessing the "Source" tab in JIRA

2011-06-27 Thread bvahdat
Hi, not sure if I'm the only one, but since couple of weeks I get the following http://camel.465427.n5.nabble.com/file/n4528136/jira.jpg jira.jpg while accessing the Source tab of issues inside JIRA. I use Firefox version 3.6.15 and didn't have any problem before with the same browser. Any Idea

Re: intercept using adviceWith()

2011-06-27 Thread Claus Ibsen
Can you try with 2.8-SNAPSHOT as we fixed some issues with adviceWith and error handlers and whatnot. If its still a problem then attach some junit test with all source so its easier for us to look into. On Mon, Jun 27, 2011 at 11:57 AM, woggle23 wrote: >>> What version of Camel are you using? >

Re: intercept using adviceWith()

2011-06-27 Thread woggle23
>> What version of Camel are you using? Version 2.7 Cheers Matt -- View this message in context: http://camel.465427.n5.nabble.com/intercept-using-adviceWith-tp4520468p4527689.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: intercept using adviceWith()

2011-06-27 Thread Claus Ibsen
Hi What version of Camel are you using? On Fri, Jun 24, 2011 at 11:36 AM, woggle23 wrote: > Morning All > > I'm attempting to simulate errors in order to test my error handling. In my > test class I create the following interception in the createCamelContext > method: > > context.addRoutes(new

Re: intercept route

2011-06-27 Thread Claus Ibsen
On Mon, Jun 27, 2011 at 9:25 AM, Guillaume Nodet wrote: > On Mon, Jun 27, 2011 at 09:14, Marco Westermann wrote: >> Hi Guilliaume, >> >> thank you for your answer. But if I use an osgi-service I have to include >> that service into my routes somehow, don't I. Your solution goes this way: >> http:

Re: intercept route

2011-06-27 Thread Guillaume Nodet
On Mon, Jun 27, 2011 at 09:14, Marco Westermann wrote: > Hi Guilliaume, > > thank you for your answer. But if I use an osgi-service I have to include > that service into my routes somehow, don't I. Your solution goes this way: > http://camel.465427.n5.nabble.com/Camel-OSGI-and-container-wide-inter

Re: intercept route

2011-06-27 Thread Marco Westermann
Hi Guilliaume, thank you for your answer. But if I use an osgi-service I have to include that service into my routes somehow, don't I. Your solution goes this way: http://camel.465427.n5.nabble.com/Camel-OSGI-and-container-wide-interceptors-td2269044.html ? Of course the better solution wou