Hi
There is API on CamelContext to get all the endpoints. Then just loop
that and do your own matching on the names (eg your wildcard stuff),
and apply the whenXXX code to them.
On Thu, Sep 20, 2012 at 8:46 AM, pmcb55 wrote:
> Hi Willem,
>
> Thanks for the comment - and yes, I probably could a
Hi Willem,
Thanks for the comment - and yes, I probably could add a custom
MockComponent like you say, but that's a lot more work than I think a
developer should have to do.
The reason to have a single mock to handle numerous query parameters is
simply that the actual thing I'm mocking is a compl
On Wed, Sep 19, 2012 at 3:27 PM, Bilgin Ibryam wrote:
> Hi all,
>
> I've to fetch two files from an ftp server at the same time and merge them
> into one message for further processing.
> The merging part is easy by using an aggregator, but is there a way to
> ensure that both files are read from
It could easy to implement your requirement by add a customer MockComponent
which just look up the created MockEndpoint if the uri is end with *.
But I'm not sure why do you want to create the same mock endpoint with the uri
with different the query parameters.
--
Willem Jiang
Red Hat, Inc.
So I have a very simple mocking use-case. Basically I want to do the
following:
Processor emulator = new ServiceEmulator();
MockEndpoint mock = getMockEndpoint("mock:Service");
mock.whenAnyExchangeReceived(emulator);
This is fine, but if I want to invoke my mock with query parameters
I think we can add a printer prefix option on the camel-printer endpoint to
help us find the right printer we want.
I just fill a JIRA[1] for it.
[1]https://issues.apache.org/jira/browse/CAMEL-5630
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com |
Update
Gmane.org camel group is created -
http://permalink.gmane.org/gmane.announce/20100,
http://news.gmane.org/gmane.comp.apache.camel.user
Past mails are not available now, currently I don't know where to look
for existing mail archive tar. if any one has clue, please help us.
A bit abo
thanks Babak
But I have another problem on Windows 2008 server.
services (printers) are prefixed by "Win32 Printer :"
i.e :[Win32 Printer : Microsoft XPS Document Writer, Win32 Printer :
\\nrbnrw0264\nrbco006]
But when I look the source code, I realize that it can never be equal to the
config
Hi Claus,
Thanks for the response. I am using quartz to scheduling and
SimpleScheduledRoutePolicy stop the route after 2 minutes, but I am able to
move only one file to the out directory though ftp server folder have many
files. Could you please tell that I am missing something from below code
Hi,
> In some work flows service class expects response and some times it does not.
If response is requested, consider using asynchronous version of
ProducerTemplate methods returning java.util.Future instances. For
example ProducerTemplate#asyncRequestBody . This approach can
significantly impro
Thank you everyone for helping me work through this issue. I finally figured
out how to use groovy to solve for it.
This seems to be working for me.
request.body.replace("\\","")
Thanks again!
--
View this message in context:
http://camel.465427.n5.nabble.com/Strin
Hi
Have you tried setting the mimeType option to "PDF":
http://camel.apache.org/printer.html
Which would correspond to the following MIME type:
http://docs.oracle.com/javase/6/docs/api/javax/print/DocFlavor.BYTE_ARRAY.html#PDF
Also the following unit-test should give you some idea:
https://sv
I am using camel (tried 2.6 and 2.10.1) in an osgi environment and I am
getting exceptions when camel is checking an 'is' predicate:
org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: is
operator cannot find class with name: MyClassName
It seems that the class loader used by ca
Hello,
what is the right syntax (options ?) to print a pdf with camel-printer ?
I don't find any example...
J-M
--
View this message in context:
http://camel.465427.n5.nabble.com/print-a-PDF-with-camel-printer-tp5719615.html
Sent from the Camel - Users mailing list archive at Nabble.com.
The FTP (and file) component fetch one file after the other. If you can
distinguish between both files, you could write two routes where each route
only consume one file type and send it to the same aggregator. Would that
work for you?
Best,
Christian
On Wed, Sep 19, 2012 at 3:27 PM, Bilgin Ibrya
On 19 September 2012 15:57, Hadrian Zbarcea wrote:
> Actually activemq-camel and camel-exec don't work well together because of a
> TypeConverter in activemq-camel.
Got any details of the problem the type converters in activemq-camel
cause camel-exec?
--
James
---
FuseSource
Email: ja...@fu
May be Smooks doesn't close the stream in a propper way?
Sent from a mobile device
Am 19.09.2012 11:00 schrieb "OrackBahama" :
> Thanks Mohan, I fully agree with you - besides one point:
>
> Always checking the return value of the renameTo(...) function call is of
> no
> use if you can't rely on
On 19/09/12 18:40, santoshjoshi wrote:
Hi Charles,
I try to contact you but got
*Missing domain
Please fix the error and try again.*
Regards,
Santosh Joshi
Charles Moulliard-2 wrote
Can you contact me next week (
ch007m@
) to discuss that please.
On Fri, Sep 14, 2012 at 3:26 PM, santos
Hi Charles,
I try to contact you but got
*Missing domain
Please fix the error and try again.*
Regards,
Santosh Joshi
Charles Moulliard-2 wrote
> Can you contact me next week (
> ch007m@
> ) to discuss that please.
>
> On Fri, Sep 14, 2012 at 3:26 PM, santoshjoshi <
> santoshjoshi2003@
Hi there,
Is there a way to add custom header to Soap message as below. I am using
Camel-SpringWS.
where CustomerObject being a java object generated using cxf-codegen-plugin
Regards,
Karthik
--
View this message in context:
http://camel.465427.n5.nabble.com/Adding-cus
On Wed, Sep 19, 2012 at 5:05 PM, gramanero wrote:
> Yes, I started to realize that when I received an Ambiguous method call
> exception in Camel. This is what I was trying to refer to when I said that
> there are probably some limitations to the Simple language in that I am
> unable to essentially
Hi
Ah you want to use some of the message headers from the JMS message
consumed from ActiveMQ, in the exec endpoint when you call that native
application?
If so check this FAQ about "dynamic to" endpoints in Camel
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html
You should use the rec
Yes, I started to realize that when I received an Ambiguous method call
exception in Camel. This is what I was trying to refer to when I said that
there are probably some limitations to the Simple language in that I am
unable to essentially add a cast to show my intent. For example I am
assuming so
Actually activemq-camel and camel-exec don't work well together because
of a TypeConverter in activemq-camel. It does work with with camel-jms
though, I'd recommend using that.
Cheers,
Hadrian
On 09/19/2012 10:32 AM, Gert de Wit wrote:
Hi all,
Would like to access the ActiveMQ message-header
Hi
You can take a look at this example
http://camel.apache.org/pojo-messaging-example.html
And check out the links in the bottom of the page as well.
On Wed, Sep 19, 2012 at 4:19 PM, Aska Weera wrote:
> Hello
>
> I am Camel beginner. This is my first post. I want service class
> (Spring MVC c
Hello
I am Camel beginner. This is my first post. I want service class
(Spring MVC controller/POJO) to call Camel routes.
In some work flows service class expects response and some times it does not.
what is the best way to do that? Camel Proxies or Producer template or
any other way out there?
Hello Claus!
Thank you for your explanations!
--
View this message in context:
http://camel.465427.n5.nabble.com/transacted-in-combination-with-onException-tp5719591p5719597.html
Sent from the Camel - Users mailing list archive at Nabble.com.
There is a new method:
http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#replace(java.lang.CharSequence,
java.lang.CharSequence)
On Wed, Sep 19, 2012 at 9:49 AM, Claus Ibsen wrote:
> The replace method on java.lang.String accepts only char as
> parameters, and not another string.
>
On Wed, Sep 19, 2012 at 3:31 PM, Hilde wrote:
> Hello folks!
>
> The book "Camel in Action" says on page 293 "NOTE: When using transacted()
> in the Java DSL,
> you must add it right after from() to ensure that the route is properly
> configured to use
> transactions. ..."
>
> However when onExcep
The replace method on java.lang.String accepts only char as
parameters, and not another string.
Hence why it wont work.
eg "foo" is not a char.
On Wed, Sep 19, 2012 at 3:30 PM, gramanero wrote:
> Hi Henryk,
>
> I apologize for not providing more information. I guess I thought there was
> enough
Hello folks!
The book "Camel in Action" says on page 293 "NOTE: When using transacted()
in the Java DSL,
you must add it right after from() to ensure that the route is properly
configured to use
transactions. ..."
However when onException() is used after transacted(), onException() is
thrown im
Hi Henryk,
I apologize for not providing more information. I guess I thought there was
enough context within the thread that one could understand what I was
referring to. Sounds like that was not the case.
The two attempts I made using Spring are as follows:
What Claus suggested:
${body.repl
http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:tx="http://www.springframework.org/schema/tx";
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xs
Hi Claus,
Yes It was also posted by me. In that case I will delete this thread. I
didn't knew you replied on that thread of mine.
--
View this message in context:
http://camel.465427.n5.nabble.com/Searching-for-an-expression-in-an-HTTP-response-tp5719571p5719585.html
Sent from the Camel - User
If you are by any chance the same user as this talking about the same
topic, then see my comments there
http://fusesource.com/forums/thread.jspa?threadID=4251&tstart=0
On Wed, Sep 19, 2012 at 11:41 AM, balkishore
wrote:
> Hi Claus
>
> I am extremely sorry, But it doesn't make any sense to perform
Hi Claus
I am extremely sorry, But it doesn't make any sense to perform the path
operation after the loadbalncer? If I perform the xpath after loadbalancer,
does it searches for the expression in the resposne? And if I perform it
after balancer, does it performs sticky load balancing based on the
Thanks Mohan, I fully agree with you - besides one point:
Always checking the return value of the renameTo(...) function call is of no
use if you can't rely on Windows having completed, flushed and unlocked
everything to disk before returning this value.
My experience is that even if the return v
On Wed, Sep 19, 2012 at 9:08 AM, balkishore wrote:
> How can I search for an Xpath expression in the SOAP response?
> from("something").loadbalnce.sticky("expression").to("something") searches
> for the expression in the SOAP request and doesn't checks for the expression
> in the SOAP response.
>
Thanks Claus, just the trick.
--
View this message in context:
http://camel.465427.n5.nabble.com/Splitting-within-transactions-tp5719539p5719573.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi
See this FAQ
http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html
On Wed, Sep 19, 2012 at 8:38 AM, william sundberg
wrote:
> Hi,
>
> I tried to use the provided code to stop an Route, but it continues to
> execute even after it have been stopped.
>
> Could someone look at this and
How can I search for an Xpath expression in the SOAP response?
from("something").loadbalnce.sticky("expression").to("something") searches
for the expression in the SOAP request and doesn't checks for the expression
in the SOAP response.
How can I tell camel to search it in response instead?
--
41 matches
Mail list logo