Re: Bean Processor cause WS Security Failure

2011-06-20 Thread Willem Jiang
I just wrote a simple test to verify it. The Security headers is used as SOAP headers, so you can't simple remove the the headers with the Qname. As current camel-cxf puts the SOAP headers into the camel message by default, and the customer may want to access it. If you don't want to use it , you

Why this happened?

2011-06-20 Thread Muhammad Ichsan
Hi I'm using Camel in FUSE 4.3.1 and I have implemented the converter. But the problem intermitent. I got this: javax.jms.JMSException: Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException id.web.michsan.InternalMsg. Strangely tha

Camel route with lang:jruby element

2011-06-20 Thread Francesco Malvezzi
Inside the camel-context.xml I have a: element. How can I insert it in a route? The following notation doesn't work: from("timer://epi_replica_timer?fixedRate=true&delay=5000&period=1"). id("epi_replica"). beanRef("epiReplicaQuery"); with error: N

Using Camel with Quartz Schedular

2011-06-20 Thread diwakar.sapan
Hi All, I am using camel and quartz scheduler first time and don't know about how to use them together. After browsing I just found 1 page about them but that page didn't help me. Maybe you could give me brief about how to use them together or link to some example-code, tutorial etc. Thanks Sapan

Re: Camel route with lang:jruby element

2011-06-20 Thread Hadrian Zbarcea
Is this an upper/lowecase issue? "EpiReplicaQuery" vs "epiReplicaQuery"? Hadrian On 06/20/2011 08:37 AM, Francesco Malvezzi wrote: Inside the camel-context.xml I have a: element. How can I insert it in a route? The following notation doesn't work: from("timer://epi_repl

Unexpected interceptor behavior

2011-06-20 Thread Sander Mak
Hi all, I'm trying to test an onException handler of my route by intercepting a send on the main route and throwing an appropriate exception so that the onException handling is triggered. However, I ran into some unexpected behavior. A simplified testcase reproduces this behavior: http://pastebin

Re: Using Camel with Quartz Schedular

2011-06-20 Thread Claus Ibsen
Hi A good idea is to check the unit tests of the Camel components. http://camel.apache.org/source.html On Mon, Jun 20, 2011 at 4:13 PM, diwakar.sapan wrote: > Hi All, > I am using camel and quartz scheduler first time and don't know about how to > use them together. After browsing I just found 1

Re: Camel route with lang:jruby element

2011-06-20 Thread Francesco Malvezzi
Il 20/06/2011 16:30, Hadrian Zbarcea ha scritto: > Is this an upper/lowecase issue? "EpiReplicaQuery" vs "epiReplicaQuery"? pardon: that is. thank you so much, Francesco

Re: Using Camel with Quartz Schedular

2011-06-20 Thread diwakar.sapan
Hi, thanks for your reply. But sill I am not able to find any relation between quartz scheduler and Apache camel. Any other help. - -- Sapan -- View this message in context: http://camel.465427.n5.nabble.com/Using-Camel-with-Quartz-Schedular-tp4506527p4506728.html Sent from the Camel - User

Re: Using Camel with Quartz Schedular

2011-06-20 Thread Claus Ibsen
On Mon, Jun 20, 2011 at 5:15 PM, diwakar.sapan wrote: > Hi, > > thanks for your reply. But sill I am not able to find any relation between > quartz scheduler and Apache camel. > Look here https://svn.apache.org/repos/asf/camel/trunk/components/camel-quartz/ Also Camel and Quartz is covered in ch

Re: Unexpected interceptor behavior

2011-06-20 Thread Claus Ibsen
Hi The webpage states that the Exchange has to be *on route* http://camel.apache.org/intercept Sending using producer template is not on route. On Mon, Jun 20, 2011 at 4:33 PM, Sander Mak wrote: > Hi all, > > I'm trying to test an onException handler of my route by intercepting > a send on the

Camel under OSGi without Spring et al.

2011-06-20 Thread Michael Furtak
Hi all, I have an existing OSGi (Equinox) application into which I would like to introduce Camel. I'm quite new to Camel, but I've not had much luck with my efforts so far. My problem seems to match that which is discussed in this thread: http://camel.465427.n5.nabble.com/TypeConverters-in-OSG

Re: Unexpected interceptor behavior

2011-06-20 Thread Sander Mak
Ok, my intuition was that using the producer template the exchange would be put 'on route' (the activemq endpoint is the first endpoint on the route, right?). Apparently my intuition was wrong. However, that still leaves me with the question of how to achieve my goal without introducing an additio

Re: Camel under OSGi without Spring et al.

2011-06-20 Thread Donald Whytock
Hi Michael, Yes, it's possible. I do it myself. I create my routes in Java, and I use a service that supplies a singleton CamelContext based on OsgiDefaultCamelContext. What specific problems are you having? Don On Mon, Jun 20, 2011 at 2:48 PM, Michael Furtak wrote: > Hi all, > > I have an e

RE: Camel under OSGi without Spring et al.

2011-06-20 Thread Michael Furtak
Hi Don, The exception was: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.apache.camel.component.file, org.apache.camel.component.bean, org.apache.camel.converter] Which I assum

Re: Camel under OSGi without Spring et al.

2011-06-20 Thread Hadrian Zbarcea
Hi, You are correct. There is also a camel-blueprint you may want to look at [1]. Regarding the absence of camel-core-osgi from the kit, that's actually a problem that was reported earlier today [2]. We use maven so much that we missed the absence of some of the jars from the official distro.

Re: Camel under OSGi without Spring et al.

2011-06-20 Thread Donald Whytock
Yeah, I had that. In an OSGi environment, you don't have TypeConverters available until they've been registered as services by the Camel bundles. I built something that uses a ServiceTracker to listen for instances of org.apache.camel.spi.ComponentResolver. One is launched with the camel-core bu

Re: Camel under OSGi without Spring et al.

2011-06-20 Thread Donald Whytock
OsgiCamelTracker.java (attached) is a work in progress. There's a reference to ContextUtil; that's the service class that supplies the CamelContext singleton. Use it by subclassing it and implementing methods start() and stop(). Call setBundleContext(bundleContext) first, then startTracking(). O

RE: Camel under OSGi without Spring et al.

2011-06-20 Thread Michael Furtak
Hi Hadrian, Aha, that explains it. Thanks! -Mike THIS MESSAGE IS INTENDED FOR THE USE OF THE PERSON TO WHOM IT IS ADDRESSED. IT MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you are not the intended recipient, your use of th

AMQP Component

2011-06-20 Thread James Carr
Hi All, I was going to spend some time today investigating using Apache Camel with RabbitMQ but according to https://issues.apache.org/jira/browse/CAMEL-3626 it looks like the version of qpid camel uses is outdated. I tried to exclude 0.5 and used 0.10 but I still get weird errors ("java.lang.Uns

Re: FTP route starts twice

2011-06-20 Thread Richard Kettelerij
@mabahma You didn't post the full code, some parts like the idempotent repository EIP are missing. Also why do you instantiate a new CamelContext in your RouteBuilder? Since you're already building a CamelContext in Spring. -- View this message in context: http://camel.465427.n5.nabble.com/FTP-ro

SOAP Router

2011-06-20 Thread Martin.Barrs
Hello, I would like to get advice on how to build a simple SOAP router using Camel. I have SOAP Envelopes arriving in three ways: HTTP, JMS and as files dumped in a directory. The envelopes have a header which will contain a standard XML defining routing information; The body could be any of

Re: JBoss 5.1.0, Camel, Spring, Servlet endpoint - Anyone succeded?

2011-06-20 Thread jazinner
When trying to use camel-jboss with camel-core 2.7.2, also got the error you described, [1]. I managed to resolve the issue by changing the camel-jboss source code, and dependencies in the pom. I changed this part of the pom.xml: org.apache.camel

Re: Camel under OSGi without Spring et al.

2011-06-20 Thread Willem Jiang
Just FYI, the camel-core-osgi bundle will be published in the Camel 2.8.0. You can find more information here[1] [1]https://issues.apache.org/jira/browse/CAMEL-3814 On 6/21/11 3:31 AM, Michael Furtak wrote: i Don, The exception was: org.apache.camel.TypeConverterLoaderException: Failed to lo

Re: AMQP Component

2011-06-20 Thread Willem Jiang
Maybe you didn't excludes all the qpid artifacts from camel AMQP component. Can you use mvn dependency:tree to check the artifacts versions? On 6/21/11 4:53 AM, James Carr wrote: Hi All, I was going to spend some time today investigating using Apache Camel with RabbitMQ but according to https:

Re: Camel under OSGi without Spring et al.

2011-06-20 Thread Christian Schneider
Hi Willem and Mike, I just tried to use the OsgiDefaultCamelContext in OSGi. This is not directly possbile as the package is not exported. In the end I found that there is a CamelContextFactory in camel-spring that can be used to instantiate a camel context. It works like this in the Activato

Camel-3519, camel-web on OSGi

2011-06-20 Thread Jim Talbut
Hi, Is there any chance of getting my patch for CAMEL-3519 into trunk before 2.8.0? I know it's quite a big change to review and I'm sure all the committers have a ton of others things to work on. Thanks Jim

Re: Camel-3519, camel-web on OSGi

2011-06-20 Thread Jean-Baptiste Onofré
Hi Jim, I try to take a look today. Regards JB On 06/21/2011 08:04 AM, Jim Talbut wrote: Hi, Is there any chance of getting my patch for CAMEL-3519 into trunk before 2.8.0? I know it's quite a big change to review and I'm sure all the committers have a ton of others things to work on. Thanks