Re: Bean component / BeanInfo thread safety

2011-02-15 Thread Claus Ibsen
Hi Thanks for reporting. I have created a ticket https://issues.apache.org/jira/browse/CAMEL-3670 If you specify the method name to use in the bean uri then Camel dont have too choose and you will not hit this issue. On Wed, Feb 16, 2011 at 6:58 AM, Chad Wilson wrote: > > Hi guys > > An issue

Re: Bean component / BeanInfo thread safety

2011-02-15 Thread waterback
Hi Chad, one question to it: Do you need your bean to be a singleton? Well if not, you could easily declare your bean in the spring-xml as a "prototype" and then it should be instantiated for each use: May be this is just another thing you could try and i hope it helps you.. Martin -- View

Bean component / BeanInfo thread safety

2011-02-15 Thread Chad Wilson
Hi guys An issue occurred today which surprised me - Camel 2.4.0 threw a ConcurrentModificationException and caused a message to be lost on a route. We have a route that essentially simplifies down to from("jms:queue:myQueue?concurrentConsumers=3") .unmarshal() .to("bean:mySpringBean")

Re: Camel and Tomcat

2011-02-15 Thread Claus Ibsen
On Tue, Feb 15, 2011 at 11:52 PM, Gert Villemos wrote: > > I would like to create a component that process URL requests. I have > implemented this using Jetty, but would now like to deploy the complete > application within Tomcat. > > Which Camel component should I use to receive URL requests thro

Re: Camel, Spring, routeContextRef and namespaces?

2011-02-15 Thread Ashwin Karpe
Hi, All you need to do is create add the atom namespace as shown in the example below. http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:atom="http://www.w3.org/2005/Atom"; xsi:schemaLocation="

Camel and Tomcat

2011-02-15 Thread Gert Villemos
I would like to create a component that process URL requests. I have implemented this using Jetty, but would now like to deploy the complete application within Tomcat. Which Camel component should I use to receive URL requests through Tomcat? I have looked at the HTTP component but that is only

Re: NPE on JmsConsumer shutdown

2011-02-15 Thread Barry Kaplan
It appears the real culprit is akka-camel. When akka camel actors are stopped, akka-camel stops the route for the actor. This is done asynchronously. Also it seems that akka also is (at least partially) asynchronous in its shutdown. So while all the akka camel actors get stopped long before camel,

RE: Camel Osgi Component

2011-02-15 Thread Roshan A. Punnoose
Also, I realized that camel vm works almost the way I want, except that I would like to broadcast the messages. Instead of a queue, where the first consumer will pick up the message, and the next consumer picks up the next message. I would like every message to go to every consumer. Is this poss

RE: Camel Osgi Component

2011-02-15 Thread Roshan A. Punnoose
Thanks! That looks really interesting, and I didn't realize I could send "anything" with NMR. Is there a way to use NMR without having to set it up in the spring config first? That was the issue I was having with my component as well, to be able to inject the bundle context, I had to have it d

Re: Camel Osgi Component

2011-02-15 Thread Richard Kettelerij
Hi, I haven't used Camel with OSGi myself, but the NMR component (http://camel.apache.org/nmr.html) is often recommended for inter-bundle communication. The NMR lives under the ServiceMix project but is also available as a separate distribution (http://servicemix.apache.org/SMX4NMR/download.html)

Re: NPE on JmsConsumer shutdown

2011-02-15 Thread Barry Kaplan
Well, thats not it. I'm still getting NPEs for routes I don't explicitly stop (I think ;-). -- View this message in context: http://camel.465427.n5.nabble.com/NPE-on-JmsConsumer-shutdown-tp3386582p3386650.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: NPE on JmsConsumer shutdown

2011-02-15 Thread Barry Kaplan
I think I see what is happening, but not why yet. I have a component that stops its route explicitly. This is needed because these components are dynamically created and destroyed. This done via: ccontext.stopRoute(deviceContext.scheduleRouteId) But then later when the CamelContext itse

NPE on JmsConsumer shutdown

2011-02-15 Thread Barry Kaplan
I'm having problems getting a clean shutdown of my jms routes. I am seeing messages like: Route: caef5400-393f-11e0-96f5-001bfc9b4a1b suspended and shutdown deferred, was consuming from: Endpoint[jms://topic:utilization.device.*.timeline.lifecycle] And then later on getting: :18:39,967 WARN o.

Re: camel-cxf endpoint without wsdl and serviceClass possible?

2011-02-15 Thread William Tam
What does your CXF interceptor do? You know you have Camel DSL or processor in your arsenal. On 02/15/2011 01:02 PM, Aki Yoshida wrote: Hi William, I can't use camel-http because I would like to call some CXF interceptors. I am wondering if we can modify CxfProducer and CxfEndpoint to suppo

Re: camel-cxf endpoint without wsdl and serviceClass possible?

2011-02-15 Thread Christian Schneider
I am not sure but perhaps the camel transport for CXF may help. Christian Am 15.02.2011 19:02, schrieb Aki Yoshida: Hi William, I can't use camel-http because I would like to call some CXF interceptors. I am wondering if we can modify CxfProducer and CxfEndpoint to support the dispatch mode.

Re: camel-cxf endpoint without wsdl and serviceClass possible?

2011-02-15 Thread Aki Yoshida
Hi William, I can't use camel-http because I would like to call some CXF interceptors. I am wondering if we can modify CxfProducer and CxfEndpoint to support the dispatch mode. CXF's DispatchImpl does a few things to set up the dispatch mode (i.e., setting the dummy service class, adding the disp

Re: camel-cxf endpoint without wsdl and serviceClass possible?

2011-02-15 Thread William Tam
Hi Aki, If you need to send arbitrary payload to some target servcie, you may consider using Camel HTTP component. Camel CXF component uses ClientFactoryBean APIs (including message mode) which is subject to the limitation you observed. Regards, William On 02/15/2011 07:49 AM, Aki Yoshida

Camel Osgi Component

2011-02-15 Thread Roshan A. Punnoose
Hi, I am looking for an osgi camel component that acts sort of like a "direct/seda" endpoint between bundles. For example, Bundle A: from("something").to("osgidirect:endpoint") Bundle B: from("osgidirect:endpoint")... Bundle C: from("osgidirect:endpoint")... I have been able to develop some

camel-cxf endpoint without wsdl and serviceClass possible?

2011-02-15 Thread Aki Yoshida
Hi, If you are writing a CXF client, you can write a client using the CXF's dispatch API to send an arbitrary payload to some target service. I would like to configure a camel cxf endpoint that does the same thing. However, the code seems to require either the WSDL or the service class. When I do n

Re: Camel 2.6 AMQP Component and AMQP v 0.9.1

2011-02-15 Thread tomasmalmsten
Thanks for your prompt replay Claus. I hope it's as simple as replacing the AMQP implementation. ___ Regards Tomas Malmsten http://www.tomasmalmsten.com https://github.com/tomasmalmsten http://twitter.com/tomasmalmsten -- View this message in context: http://camel.4

Re: CamelServlet & spring issue

2011-02-15 Thread Willem Jiang
Hi Charles, If we want to create a spring context in the OSGi platform, we need to leverage the Spring DM to help you look up the schema across the bundles. Current CamelServlet just create the Spring application with use that. Maybe you can consider to use the OsgiServletRegisterer which is n

Re: CamelServlet & spring issue

2011-02-15 Thread Charles Moulliard
camel-spring is deployed on Karaf and referenced as a Require-Bundle in the MANIFEST.MF file of my WAR project The issue is that we cannot import here the camel spring schema as it is part of the root of camel-spring jar and not exported by the bundle like this is the case by example for camel-cxf

Re: CamelServlet & spring issue

2011-02-15 Thread Sumit Teke
Check if camel-spring is on classpath. Thanks, Sumit Teke On Tuesday 15 February 2011 02:51 PM, Charles Moulliard wrote: Hi, When deploying a WAR project on Karaf, I get the following error : org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Una

CamelServlet & spring issue

2011-02-15 Thread Charles Moulliard
Hi, When deploying a WAR project on Karaf, I get the following error : org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://camel.apache.org/schema/spring] Offending resource: cla

Re: camel-jaxb in jboss is not running

2011-02-15 Thread Bill
Oh,thank you thanks very much.. I commentted the JBossPackageScanClassResolver.java when I run it in tomcat , and forgot to uncommentted it in JBOSS.. tks again. -- View this message in context: http://camel.465427.n5.nabble.com/camel-jaxb-in-jboss-is-not-running-tp3384152p3385682.html Sen

Re: camel-jaxb in jboss is not running

2011-02-15 Thread Claus Ibsen
On Tue, Feb 15, 2011 at 8:38 AM, Bill wrote: > > Hi , thanks your reply. > > ---in tomcat > [                          main] AnnotationTypeConverterLoader  INFO  Found > 5 packages with 16 @Converter classes to load > [                          main] DefaultTypeConverter           INFO