Mina endpoint getEndpointUri() results in error?

2012-04-06 Thread Steve973
Due to a design consideration, we are creating endpoints by using a factory. A client specifies the type of endpoint it wants by submitting a configuration, but as the server, we want to be able to control what resources we provide and how we provide them. In the case of our Mina endpoints, we us

Re: How to configure multiple consumers from @Consume + uri?

2012-04-06 Thread Robert Dare
Thanks Claus, That worked like a charm! On 4/6/12, Claus Ibsen wrote: > Hi > > There is a option concurrentConsumers which by default is 1. > So in your case you have a pool of 1 to 10. > Only on higher load it ought to increase. > > You can configure the @Consume and use concurrentConsumers=10,

Re: http4 Component not exposing HttpContext

2012-04-06 Thread Jeff Segal
All, I dusted this one off after 5 months and created a patch for it at https://issues.apache.org/jira/browse/CAMEL-4693. It's pretty straightforward - I added a HttpContext to HttpComponent, HttpEndpoint and HttpProducer which is determined from the "httpContext" or "httpContextRef" parameters. I

Re: How to configure multiple consumers from @Consume + uri?

2012-04-06 Thread ajdobson
I just tried adding concurrentConsumer=10 to my @Consume annotation and I do not think it worked. @Consume(uri="activemq:queue:MyQueue?concurrentConsumers=10") When I go to ActiveMQ's admin page, the number of consumers for MyQueue still shows 1. Am I missing something? -- View this message in

Re: Can't I do this with a filter?

2012-04-06 Thread Christopher Love
Thanks Claus For some reason is was getting a npe with the solution of using the 'not', so I inverted the method and it works like a charm! Chris On Fri, Apr 6, 2012 at 10:04 AM, Claus Ibsen wrote: > Hi > > If you use a filter then you most likely need to invert the method. > eg a isNotXXX met

Re: Add property to Route (not Exchange)

2012-04-06 Thread Reuben Garrett
Jeff, i can think of two approaches which might help: whenever possible, i try to map my routing logic onto declarative orchestrations of Enterprise Integration Patterns [1] to avoid interacting directly with Camel's API [2], neutral though it may be. perhaps your use-case can be satisfied by fa

Camel error handler stop routing on original route when an exception occur in the splitter using jaxb marshalled objects

2012-04-06 Thread Luca Foppiano
Dear all, I've been digging into this problem for some time now and I haven't find why this is happening. I'm using camel 2.9.1. The whole problems is quite complicated to explain, I've created a test that reproduce the error that might be more useful. I have a route that get some XML and trans

Re: Can't I do this with a filter?

2012-04-06 Thread Claus Ibsen
Hi If you use a filter then you most likely need to invert the method. eg a isNotXXX method filter().method(RedisService.class, "isNotLsaHtmlDuplicateBody") .to("activemq:getAndStoreHTMLPage") .end() And you can use end to mark the end of the filter. There is also a not predicate in Camel b

Re: How to move mail into imap folder after reading

2012-04-06 Thread Claus Ibsen
On Fri, Apr 6, 2012 at 11:47 AM, Binamebou wrote: > Hi, > > I have a route reading an imap account and sending content into a jms queue. > > I would like to move read mails into a specific folder instead of deleting > them. Is it possible ? How ? > No, you can either delete, or mark the mail as s

Can't I do this with a filter?

2012-04-06 Thread chrislovecnm
Hi all I am doing this .choice() .when().method(RedisService.class, "isLsaHtmlDuplicateBody").to("mock:nowhere") .otherwise().to("activemq:getAndStoreHTMLPage?concurrentConsumers=30&asyncConsumer=true"); I tried using a filter first, but I seemed to still be getting data.

Re: How to configure multiple consumers from @Consume + uri?

2012-04-06 Thread Claus Ibsen
Hi There is a option concurrentConsumers which by default is 1. So in your case you have a pool of 1 to 10. Only on higher load it ought to increase. You can configure the @Consume and use concurrentConsumers=10, then you have a steady pool with 10 consumers. On Fri, Apr 6, 2012 at 2:48 PM, Robe

My long running bean sending out messages

2012-04-06 Thread Borut Bolčina
Hello, I am trying to marry crawler4j with Camel and having some trouble sending messages out of my bean. The producer is not instantiated - I get NPE. My goal is to send each crawled page (html in string variable) to the next stage in the route. If I simplify the crawler with a demo bean: publi

How to configure multiple consumers from @Consume + uri?

2012-04-06 Thread Robert Dare
Hello everyone, and happy Friday! I have a Spring web application that uses the @Consume annotation to pull from an ActiveMQ queue. Is it possible to configure this to create multiple consumers from the queue? I was hoping I could add something like this: @Consume(uri="activemq:queue:MyQueueNam

How to move mail into imap folder after reading

2012-04-06 Thread Binamebou
Hi, I have a route reading an imap account and sending content into a jms queue. I would like to move read mails into a specific folder instead of deleting them. Is it possible ? How ? Thank's Benoît -- View this message in context: http://camel.465427.n5.nabble.com/How-to-move-mail-into-ima

Re: How can Shiro be used with camel to limit access to a route?

2012-04-06 Thread Claus Ibsen
On Fri, Apr 6, 2012 at 10:36 AM, mgiammarco wrote: > 2012/4/6, Claus Ibsen-2 [via Camel] > : >> >> >> On Thu, Apr 5, 2012 at 8:54 PM, mgiammarco wrote: >>> Ok I have found the bug: >>> >>> ShiroSecurityTokenInjector creates a bytearray and puts it in the message >>> header. >>> >>> The bytearray

Re: how to invoke a web service

2012-04-06 Thread madhu
thank you very much . i will proceed in that way -- View this message in context: http://camel.465427.n5.nabble.com/how-to-invoke-a-web-service-tp5622105p5622342.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: How can Shiro be used with camel to limit access to a route?

2012-04-06 Thread mgiammarco
2012/4/6, Claus Ibsen-2 [via Camel] : > > > On Thu, Apr 5, 2012 at 8:54 PM, mgiammarco wrote: >> Ok I have found the bug: >> >> ShiroSecurityTokenInjector creates a bytearray and puts it in the message >> header. >> >> The bytearray do not pass through openwire... >> > > Ah crap, yeah JMS spec hav

Re: how to invoke a web service

2012-04-06 Thread Claus Ibsen
Hi On Fri, Apr 6, 2012 at 7:34 AM, madhu wrote: > how we can invoke a webservice in camel? > Please spend more time reading the documentation, and trying the examples and tutorials etc. There is a lot of documentation to Apache Camel http://camel.apache.org/examples.html http://camel.apache.org/

Re: Difficulty with BeanIO from 2.10-SNAPSHOT - route does NOT start

2012-04-06 Thread Claus Ibsen
Hi Glad its resolved. And that it works fine. And the fact people help us test and use the SNAPSHOT code so we can catch issues before we cut a release. On Thu, Apr 5, 2012 at 7:42 PM, Aaron Daubman wrote: > Hi Claus, > > Thanks for the reply. Fortunately (or unfortunately after the time > was

Re: Parsing XML and binding to Java Object

2012-04-06 Thread Claus Ibsen
On Fri, Apr 6, 2012 at 12:01 AM, Christian Müller wrote: > Use the camel-jaxb component/dataformat: http://camel.apache.org/jaxb.html > Yeah we have some data formats listed here which can do Object <-> XML http://camel.apache.org/data-format > Best, > Christian > > On Thu, Apr 5, 2012 at 8:36

Re: How can Shiro be used with camel to limit access to a route?

2012-04-06 Thread Claus Ibsen
On Thu, Apr 5, 2012 at 8:54 PM, mgiammarco wrote: > Ok I have found the bug: > > ShiroSecurityTokenInjector creates a bytearray and puts it in the message > header. > > The bytearray do not pass through openwire... > Ah crap, yeah JMS spec have limitations on what can be transfered over JMS in JM

Re: Detecting SOAP Faults

2012-04-06 Thread Claus Ibsen
On Fri, Apr 6, 2012 at 4:24 AM, Castyn wrote: > I actually do have validation enabled on the CXF consumer in the properties > with the schema-validation-enabled which I guess is why it returns a SOAP > fault to the calling client and not something else. > > I didn't realize a CXF consumer never te

Re: MyBatis batch-insert example?

2012-04-06 Thread Claus Ibsen
On Fri, Apr 6, 2012 at 6:44 AM, Aaron Daubman wrote: > I just created an issue and submitted a patch for this: > https://issues.apache.org/jira/browse/CAMEL-5143 > Thanks for the contribution. Seems like a good improvement. Do you know if the old Apache iBatis project supports a similar function