Re: Exception occurs when deploy a Route Bundle which contains Javascript Language into Karaf

2012-11-07 Thread Claus Ibsen
On Thu, Nov 8, 2012 at 8:41 AM, liugang wrote: > Yes, I installed the camel-script feature > The camel version is 2.10.2, and karaf is 2.2.9 > > For Groovy and jruby seems ok (because they are using external engine, > right?) > > But for js, I have this problem. I think I have all dependencies. >

RE: Exception occurs when deploy a Route Bundle which contains Javascript Language into Karaf

2012-11-07 Thread liugang
Yes, I installed the camel-script feature The camel version is 2.10.2, and karaf is 2.2.9 For Groovy and jruby seems ok (because they are using external engine, right?) But for js, I have this problem. I think I have all dependencies. -Original Message- From: Claus Ibsen [mailto:claus.

Re: Exception occurs when deploy a Route Bundle which contains Javascript Language into Karaf

2012-11-07 Thread Claus Ibsen
Hi Have you installed the camel-script feature beforehand? And what version of Karaf and Camel are you using? On Thu, Nov 8, 2012 at 8:34 AM, liugang wrote: > Hi All: > > When I deploy a bundle which includes Javascript Language into Karaf, I got > an Exception "No Script engine could be create

Exception occurs when deploy a Route Bundle which contains Javascript Language into Karaf

2012-11-07 Thread liugang
Hi All: When I deploy a bundle which includes Javascript Language into Karaf, I got an Exception "No Script engine could be created for:js" This may be caused by the classloader problem, it can't find the com.sun.script.javascript.RhinoScriptEngineFactory and com.sun.script.javascript.RhinoScriptE

Re: How to mock a bean in a route?

2012-11-07 Thread David Karlsen
I have a follow up question on this. I have this route: /ledgerres:Document

Re: Problem with pollEnrich

2012-11-07 Thread Claus Ibsen
On Wed, Nov 7, 2012 at 9:08 PM, Babak Vahdat wrote: > > > Am 07.11.12 09:28 schrieb "Babak Vahdat" unter > : > >>Hi >> >>There's a routing use case currently I'm stuck with which goes as the >>following: >> >>- Download an index file from a FTP server containing the list of (to be >>downloaded) fi

Re: Dynamic Changes to Properties File When Using Bridge Property Placeholder

2012-11-07 Thread Claus Ibsen
On Wed, Nov 7, 2012 at 6:06 PM, pberkman wrote: > I am using the > org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer to > parameterize most of the varible-configuration in the Camel Contexts/Routes > as such: > > class="org.apache.camel.spring.spi.BridgePropertyPlaceholderCo

Re: Planning to write a component

2012-11-07 Thread Claus Ibsen
Hi This add new component guide, has links to the ASF page where the accepted licenses is listed etc. http://camel.apache.org/add-new-component-guide.html On Thu, Nov 8, 2012 at 5:58 AM, Willem jiang wrote: > Hi Ram, > > It's should be OK if you host the component in the gitHub if you just want

Re: Planning to write a component

2012-11-07 Thread Willem jiang
Hi Ram, It's should be OK if you host the component in the gitHub if you just want to play and learn the AIML. Maybe I bring the License issue out too quickly, but it just main concern of us if you want to contribute it to Apache Camel. -- Willem Jiang Red Hat, Inc. FuseSource is now part of

Re: Getting rid of inflight changes

2012-11-07 Thread bigandyt
Hi Claus, Earlier you mention there was a bug shutting down the SEDA queues, are you able to tell me what version it was fixed. Im investigating an issue where some messages seem to be hung on a seda queue and as we use quite an old version of camel im wondering if it could be that. -- View t

Re: Dynamic Changes to Properties File When Using Bridge Property Placeholder

2012-11-07 Thread pberkman
using Glassfish 3.1.2, so they have OSGI, but that is not a trivial change - something I need to do in the future for certain, but not just for this functionality... any other options? -- View this message in context: http://camel.465427.n5.nabble.com/Dynamic-Changes-to-Properties-File-When-Us

RE: Camel at our Hackathon

2012-11-07 Thread Ramkumar.Iyer
Thanks for asking. http://ramkumariyer.blogspot.com/2012/11/we-had-hackathon-for-top-energy-company.html Write-up We had a hackathon for a top energy company. We wanted to showcase social media routing. We already have a development setup with various queues for various departments. U

Re: Bridge Property Loading Order

2012-11-07 Thread pberkman
for both test and production. the container is Glassfish 3.1.2 (not OSGI yet). I'm trying, with zero success so far, the solutions around writing a Sring Context Bootstrap... anything simpler would be good... I'm surprised that Spring didn't think of this earlier... seems like a good use??? t

Re: How to set HTTP Authorization Policy using Java DSL

2012-11-07 Thread Willem jiang
Hi, First you need more setup on Jetty engine to get the basic authentication done. It could be easy if you leverage the web container which provides the function out of box. You can find an example here[1]. The Error means camel cannot find the reference RoutePolicy from the camel context. Y

Re: Camel at our Hackathon

2012-11-07 Thread Willem jiang
It is really a interesting use case. It could be great if you can share us some detail information by providing a blog link. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://wil

Camel at our Hackathon

2012-11-07 Thread Ramkumar.Iyer
Just wanted to let the list know we use Camel with a Content Based Router and Simple expression logic to route Twitter data for a certain organization to multiple email queues. Planning to improve this further with analyzing the sentiment in the Twitter tweet and making for two way traffic. It w

Re: How to mock a bean in a route?

2012-11-07 Thread James Carman
You can inject mock objects into your route builders very easily. Just pick your mock object framework of choice and inject them when you create your RouteBuilder. On Wed, Nov 7, 2012 at 10:37 AM, zzkozak wrote: > Hi, > > I have the following route and would like to test it by throwing an > exce

How to set HTTP Authorization Policy using Java DSL

2012-11-07 Thread Don Doffe
Hi,I'm trying to set HTTP Authorization Policy as described in here http://camel.apache.org/spring-security.html. But I need to set it using JavaDSL: from("jetty://http://localhost:9090/api?matchOnUriPrefix=true";) .routeId("Activation Endpoint").routePolicyRef("admin_policy")But I g

Re: Dynamic Changes to Properties File When Using Bridge Property Placeholder

2012-11-07 Thread Christian Müller
Which runtime do you use? In Karaf and ServiceMix you use the OSGI ConfigAdmin service which does this for you. For free... ;-) And you can configure the properties in a nice console too. The changed property will be also flushed into the config file. Best, Christian On Wed, Nov 7, 2012 at 6:06 P

Re: Bridge Property Loading Order

2012-11-07 Thread Christian Müller
The PropertyPlaceholderConfigurer is not made for this kind of substitution. Did you need this stuff only for your test or also for your regular deployment? Which environment do you use (Standalone, Karaf, Tomcat, ...)? Best, Christian On Wed, Nov 7, 2012 at 4:29 PM, pberkman wrote: > I have th

Re: How to mock a bean in a route?

2012-11-07 Thread Christian Müller
This link could be helpful: http://camel.apache.org/advicewith.html Best, Christian On Wed, Nov 7, 2012 at 4:37 PM, zzkozak wrote: > Hi, > > I have the following route and would like to test it by throwing an > exception by the orderRequestCreator bean. How do I do that? > > > > I am using an

Re: Website/wiki editing permissions

2012-11-07 Thread Christian Müller
Karma granted! Looking for your first documentation contribution. Best, Christian On Wed, Nov 7, 2012 at 10:57 PM, Arnout Engelen wrote: > On Wed, Nov 07, 2012 at 10:44:55PM +0100, Christian Müller wrote: > > Your e-mail address in Confluence doesn't match with the one you provided > > in the I

Re: Problem with pollEnrich

2012-11-07 Thread Babak Vahdat
Am 07.11.12 09:28 schrieb "Babak Vahdat" unter : >Hi > >There's a routing use case currently I'm stuck with which goes as the >following: > >- Download an index file from a FTP server containing the list of (to be >downloaded) files which're listed in this index file line by line >- Do some futh

RE: Dead Letter Delivers Twice!?

2012-11-07 Thread Calvert, Zach (Zach)** CTR **
Yikes, nevermind. PEBKAC error. -Original Message- From: Calvert, Zach (Zach)** CTR ** [mailto:zcalv...@motive.com] Sent: Wednesday, November 07, 2012 11:09 AM To: users@camel.apache.org Subject: Dead Letter Delivers Twice!? I have a camel route that trips up an error in it. We have se

Dynamic Changes to Properties File When Using Bridge Property Placeholder

2012-11-07 Thread pberkman
I am using the org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer to parameterize most of the varible-configuration in the Camel Contexts/Routes as such: Unfortunately, the default is to cache all the property values. So, I have to reload the app e

Dead Letter Delivers Twice!?

2012-11-07 Thread Calvert, Zach (Zach)** CTR **
I have a camel route that trips up an error in it. We have set up: And then our route is defined: Now when I call it

Bridge Property Loading Order

2012-11-07 Thread pberkman
I have the following in my main Camel context: and, a bit later in the file I try and use the properties to control an as follows: I'm doing this to allow for various configurations - secure, non-secure, and SAML bassed endpoints.

Re: Switching the CXF Supplier (server/listener) from HTTP to HTTPS

2012-11-07 Thread pberkman
Willem, as always, thank you for your direction! that was exactly the problem. I missread the FAQ. I used the following and it worked perfectly:

How to mock a bean in a route?

2012-11-07 Thread zzkozak
Hi, I have the following route and would like to test it by throwing an exception by the orderRequestCreator bean. How do I do that? I am using annotated JUnit tests, like this: Thank you in advance, Marcin -- View this message in context: http://camel.465427.n5.nabble.com/How-to-moc

Re: JMS - Shared fixed reply queue doesn´t consume all the messages

2012-11-07 Thread anaCortes
I´ve created a dummy unit test that checks that with fixed shared reply queues and CachingConnectionFactory, the parameter replyToCacheLevelName doesn´t solve the stuck messages in the reply queue problem. In this test, I send 3 messages (at almost the same time) to one queue that uses the replyTo

Re: JMS - Shared fixed reply queue doesn´t consume all the messages

2012-11-07 Thread anaCortes
> Why are you reading from the built-in DLQ queue of the broker? That seems odd/wrong. I agree, i don´t like it. But this was there and i don´t know if there is any weird reason to have that. I would change the queue. Could this cause any problem? -- View this message in context: http://camel

Re: JMS - Shared fixed reply queue doesn´t consume all the messages

2012-11-07 Thread Claus Ibsen
On Wed, Nov 7, 2012 at 11:55 AM, anaCortes wrote: > The replyToCacheLevelName parameter doesn´t solve the problem. > > I´ve added the parameter in the configuration: > class="org.apache.activemq.camel.component.ActiveMQComponent"> > > > > > I´ve also tried adding it to the endpoint:

Re: JMS - Shared fixed reply queue doesn´t consume all the messages

2012-11-07 Thread anaCortes
The replyToCacheLevelName parameter doesn´t solve the problem. I´ve added the parameter in the configuration: I´ve also tried adding it to the endpoint: "activemq:ActiveMQ.DLQ?replyTo=xxx.REPLY&requestTimeout=255000&receiveTimeout=250&timeToLive=51&replyToCacheLevelName=CAC

Re: File do ActiveMQ

2012-11-07 Thread Leandro Franchi
Hi Christian, first of all, thanks for reply. I've 160 routes like rt-* (see below). These routes, polling files in directories and send each file to seda endpoint. The seda endpoint process messages and send a processed message to ActiveMQ. I'm using ActiveMQ because these process are running

MINA Serial - what route syntax and how to install ?

2012-11-07 Thread c031917
I want to use the long awaited Camel + MINA 2 capability to get serial data onto the message bus. I can't find any documentation or example how to do that. What is the syntax ? something like from ("mina:*/dev/ttyUSB0*:") .to("jms:operations"); ? 2. question: how do i install

Problem with pollEnrich

2012-11-07 Thread Babak Vahdat
Hi There's a routing use case currently I'm stuck with which goes as the following: - Download an index file from a FTP server containing the list of (to be downloaded) files which're listed in this index file line by line - Do some futher processing with the index file being downloaded which is