Re: keep track of JMSMessageID with InOnly exchange

2012-04-13 Thread wing-tung Leung
On Wed, Jan 18, 2012 at 4:53 PM, Claus Ibsen wrote: > A possible issue is that the JMSMessageID is only available when the > JMS Client have really sent the message, and some clients can be in an > async mode, where they may take a little while before sending. So in > that case I would assume Came

Re: Deploying route to Karaf

2012-04-13 Thread Christian Schneider
Blueprint is the easiest way. You can simply define a RouteBuilder bean in the camelcontext and then do the rest in java. I think though that it makes sense to provide an easy way to start camel using a simple Activator. So if it is not yet possible we should do that for one of the next releases

Re: multiple from endpoints and jmx console

2012-04-13 Thread surya
Hi Claus, I am using ver 2.9.0. I am working around this as: for(string endpoint: getFromEndPoints()){ from(endpoint).to("bean:someBean); } not really using from(endpoint1,endpoint2) as makes it not visible in jconsole. Let me know if a Jira needs to be raised to follow up on this. Regar

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolcina
But I did install the Camel feature, but it does not contain camel-core-osgi! So the only way to kickstart Camel in Karaf is by using blueprint? I do not want Spring or any XML configuration files, well blueprint seems inevitable. Regards, Borut Sent from my iPad On 13. apr. 2012, at 16:55, Cl

Re: Jetty Component and headerBufferSize

2012-04-13 Thread Claus Ibsen
On Thu, Apr 12, 2012 at 6:41 PM, pglebow wrote: > Is it possible to adjust the headerBufferSize parameter when using the Camel > Jetty component?  Jetty seems to support changing the parameter via its XML > configuration file but I'm not sure how this fits in with Camel.  Is there > an example out

Re: camel http consumer for custom http server

2012-04-13 Thread Claus Ibsen
On Fri, Apr 13, 2012 at 9:20 AM, Mohammad Shadab Ali wrote: > Hi, > > I have a custom http server in my application. I want an http endpoint which > can act as a consumer. I have tried using camel-jetty component, but it uses > apache inbuilt jetty http server. > Is there any way where I can con

Re: Custom component with existing scheme

2012-04-13 Thread Claus Ibsen
On Fri, Apr 13, 2012 at 10:21 AM, Thibault wrote: > Hi all, > > I need to override the existing Apache Camel Mail component, in order to > implement a non standard mail format. > I didn't find any information about how scheme is resolved if there are > multiple components registering it. For examp

Re: newbie question re LifecycleManagementStrategy

2012-04-13 Thread Claus Ibsen
Hi What runtime do you use? Tomcat, Standalone, OSGi etc? Camel should pickup that bean automatic as it lookup the registry by type. As shown here http://camel.apache.org/advanced-configuration-of-camelcontext-using-spring.html And does you class really have the correct name? It starts with impo

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-13 Thread atg roxx
Hi Arnaud, Yes we have different namespace for GetProductPriceOffers and partner/request element also the classes corresponding to them have their respective namespace. Still I am not able unmarshall. My Camel Version is 2.8.2 I am doing marshalling and unmarshalling in the following way: from

Re: Deploying route to Karaf

2012-04-13 Thread Claus Ibsen
Hi I suggest to install the camel feature, and not camel-core. By install camel feature, you get Camel support for Spring-DM and Blueprint. Then you should be able to install and start your bundle out of the box. If you use another Camel component such as FTP, Velocity etc. Then you need to insta

SSL and CXF Consumers

2012-04-13 Thread Castyn
I can find a pretty good amount of documentation and examples around setting up and http endpoint to use an SSL cert and receive messages on https, but what I am trying to do is have a CXF consumer perform the same way. Is there a way to deploy an SSL cert for a CXF consumer, and if not how would

Re: newbie question re LifecycleManagementStrategy

2012-04-13 Thread Babak Vahdat
Aha, don't worry about those deprecated methods as they're all doubly declared both on: org.apache.camel.CamelContext And org.apache.camel.model.ModelCamelContext So just reference your context as ModelCamelContext, then you should be fine. At [1] you see a similar question. The corresponding J

Re: newbie question re LifecycleManagementStrategy

2012-04-13 Thread Bob Jolliffe
Thanks Babak for the suggestions. A few queries in line ... On 13 April 2012 14:00, Babak Vahdat wrote: > Hi > > You could look at [1] to see how easily you can add routes from XML, and > check the commit log at the bottom of that link for some examples. Yes I have seen this and have tried (suc

Re: Problem with jms in OSGi : IllegalArgumentException: connectionFactory must be specified

2012-04-13 Thread Christian Schneider
Many thanks. In fact this was the problem. The config admin pid was not found. I probably will make it mandatory so this is easier found. I only wonder why there was no exception... probably MQ just does not log it. Christian Am 13.04.2012 12:07, schrieb Filippo Balicchia: Stupid observati

Re: newbie question re LifecycleManagementStrategy

2012-04-13 Thread Babak Vahdat
Hi You could look at [1] to see how easily you can add routes from XML, and check the commit log at the bottom of that link for some examples. You could also add routes dynamically at runtime [2] using Camel's JMX ManagedCamelContext MBean. [1] http://camel.apache.org/loading-routes-from-xml-fil

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolčina
I have added/modified some dependencies in my bundle to: org.osgi org.osgi.core 4.2.0 org.osgi org.osgi.compendium 4.2.0 This last one has a package which was reported missing in the Karaf console. and the build section in pom looks like: org.apache.felix maven-bundle-plugin 2.3.7

Re: Bean's property value is null when used in a route.

2012-04-13 Thread John Smith
Perfect, thanks Babak - still a bit new to camel :-) -- View this message in context: http://camel.465427.n5.nabble.com/Bean-s-property-value-is-null-when-used-in-a-route-tp5638139p5638196.html Sent from the Camel - Users mailing list archive at Nabble.com.

Memory leak with ActiveMQComponent and PooledConnectionFactory

2012-04-13 Thread Harald Wellmann
After configuring an ActiveMQComponent with a PooledConnectionFactory as documented in http://camel.apache.org/activemq.html, I got a bunch of errror messages from Tomcat on servlet context shutdown: 13.04.2012 14:21:50 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SCHWERWIE

Re: Bean's property value is null when used in a route.

2012-04-13 Thread Babak Vahdat
Hi by your provided route you don't make use of the Spring's managed "svrsend" Bean but instantiate another copy by yourself inside the route. For example if you want to call the hello method on your Spring Bean you could do something like: to("bean:svrsend?method=hello") And as the Spring's

Re: Bean's property value is null when used in a route.

2012-04-13 Thread John Smith
Sorry, there was some copy / paste typos in that code where it references RemedyServer as the constructor and in the log4j logger definition - it should read ServerSender. -- View this message in context: http://camel.465427.n5.nabble.com/Bean-s-property-value-is-null-when-used-in-a-route-tp56381

Bean's property value is null when used in a route.

2012-04-13 Thread John Smith
Hello, I have a bean defined below which is used in the route shown. When the bean is used I need it to know the server name defined in the beans's definition in the spring context file however it always comes out as null. In the server log I can see the setServer method being called and it being

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolčina
I tried karaf@root> osgi:install mvn:org.apache.camel/camel-core-osgi/2.9.1 Bundle ID: 91 and then I get error by starting karaf@root> osgi:start 91 org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-core-osgi [91]: Unable to resolve 91.0: missing require

newbie question re LifecycleManagementStrategy

2012-04-13 Thread Bob Jolliffe
Hi I am struggling a bit with loading a custom LifecycleManagementStrategy. (Like some previous posters I am looking to load some xml routes on startup). I have created a class DHIS2LifecycleManagementStrategy which extends DefaultLifecycleManagementStrategy and overridden the onContextStart() m

RE: Camel Jaxb- Not able to unmarshall a xml

2012-04-13 Thread DEPREZ Arnaud AWL-IT
Maybe it's a problem of namespaces. Can you tell me if you use different namespaces for GetProductPriceOffers and partner/request element ? If they are different, it must be specified in your JAXB java class model. KR, Arnaud Deprez -Original Message- From: Christian Müller [mailto:ch

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolčina
My bundle has dependency: 2.9.1 org.apache.camel camel-core-osgi ${camel-version} Your suggested command prints: karaf@root> packages:imports | grep osgi System Bundle (0): org.osgi.framework; version=1.5.0 System Bundle (0): org.osgi.service.url; version=1.0.0 OPS4J Pax Logging - API (3):

Re: Camel Jaxb- Not able to unmarshall a xml

2012-04-13 Thread Christian Müller
Which version of Camel do you use? How do you use the JAXB Marschaller/Unmarschaller (explicitly or via the FallbackTypeConverter)? Could you share your code? Best, Christian Sent from a mobile device Am 13.04.2012 12:45 schrieb "atg roxx" : > Hi Guys, > > I am facing a problem. > > I am using c

Re: Deploying route to Karaf

2012-04-13 Thread Christian Schneider
As far as I know the camel.core.osgi package is not exported. In fact the osgi stuff in camel core looks quite strange as it works with fragment bundles where it could be much simpler. So I am not sure if this will work. You can try require bundle instead of import package so you might get the

Re: Deploying route to Karaf

2012-04-13 Thread Omar Atia
It is version conflict , which camel core your bundle has dependency on , is it 2.9 or 3.0 ? You can check running the following command , Packages imports | grep osgi , check its syntax please . Thanks, Omar atia Sent via BlackBerry® -Original Message- From: Borut Bolčina Date: Fri,

Camel Jaxb- Not able to unmarshall a xml

2012-04-13 Thread atg roxx
Hi Guys, I am facing a problem. I am using camel jaxb to marshall and unmarshall java objects which is working fine for me till now. But now I got a special case where I am not able to properly unmarshall an xml whose class have mulitple namespace (different for root element and sub elements). s

Re: Deploying route to Karaf

2012-04-13 Thread Borut Bolčina
OK, I installed the latest Karaf (2.2.6) and Camel features with features:chooseurl camel 2.9.1 features:install camel-core Then I installed my bundle into the local maven repo and then to Karaf with karaf@root> osgi:install mvn:com.mycompany/route-weather-current/1.0-SNAPSHOT Bundle ID: 67

Re: Problem with jms in OSGi : IllegalArgumentException: connectionFactory must be specified

2012-04-13 Thread Filippo Balicchia
Stupid observation, did you check that environment variables are initialized ? Il 12 aprile 2012 16:40, Christian Schneider ha scritto: > Hi All, > > i have camel route in a OSGi bundle. On one machine where we have maven repo > access and install via a feature it works nicely. On the other machi

Re: New JMS connection being created for every message

2012-04-13 Thread Christian Schneider
The behaviour is caused by spring jms and is normal. The spring jms code opens and closes the connection for every call. This is the expected behaviour in JEE environments. To improve the performance you need connection pooling. Spring provides the http://static.springsource.org/spring/docs/2.

New JMS connection being created for every message

2012-04-13 Thread weberj
Hi, we found that Camel together with the JMS component over Websphere MQ is quite slow, it takes up to a second for Camel to forward a message. There is an old bug which might explain this behaviour: New JMS connection being created for every message https://issues.apache.org/jira/browse/CAMEL-60

Custom component with existing scheme

2012-04-13 Thread Thibault
Hi all, I need to override the existing Apache Camel Mail component, in order to implement a non standard mail format. I didn't find any information about how scheme is resolved if there are multiple components registering it. For example, I will have my custom component using schemes imap, imaps,

camel http consumer for custom http server

2012-04-13 Thread Mohammad Shadab Ali
Hi, I have a custom http server in my application. I want an http endpoint which can act as a consumer. I have tried using camel-jetty component, but it uses apache inbuilt jetty http server. Is there any way where I can configure the http\jetty endpoint to act as a consumer to my custom http