Once the message is routing to the next endpoint, you should be able to tell
the operation by looking up the message header of "operationName", then you can
use the CBR[1] to do the work as you want.
.when(header("operationName").isEqualTo("reportCriticalIncidents")).to(direct:route1)
.when(head
Yeah, I think it a good idea to support this kind of feature in Camel.
Please go ahead to write a patch for this feature :)
--
Willem Jiang
FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/)
(English)
You can use recipient list with simple language i.e.:
http://localhost:9002/rest/${header.id}/RestService
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-set-parameter-dynamically-in-uri-tp5716959p5716971.html
Sent from the Camel - Users mailing list archive at
Hi
On 08/08/12 00:36, javakurious wrote:
Based on the example in http://camel.apache.org/cxfrs.html cxfrs example
with camel , I created a REST service exposed as GET operation. Here is the
overview of what I have so far :
REST endpoint in Camel:
And the corresponding resource class used to c
hadrian wrote
>
> Would using properties be acceptable as a solution (including
> camel-jasypt maybe if you don't want the pwd in clear)?
>
> Hadrian
>
No sure what you mean, would it be possible for you to provide an example?
--
View this message in context:
http://camel.465427.n5.nabbl
hadrian wrote
>
> Would using properties be acceptable as a solution (including
> camel-jasypt maybe if you don't want the pwd in clear)?
>
> Hadrian
>
Hi Hadrian,
unfortunately I can't use properties without re engineering the whole
application. we manage hundreds of endpoints centrally and
Unfortunately interceptors cannot be used. We use a recipientList in our
route and password cannot be set in a header like filename... really need
this to be fixed.
--
View this message in context:
http://camel.465427.n5.nabble.com/URISupport-normalizeUri-different-result-from-camel-2-8-2-to-2-
Hi
I have my camel application running in Tomcat. It works perfect.
In my existing route I wanted to add a ActiveMQ endpoint. But tomcat says
listener error. I have specified my connection factory in a separate bean.
Error:
INFO:
validateJarFile(d:\installedsoftware\apache-tomcat-7.0.29-windo
Hmm, I don't know... In class AMQDestination there is method equals, and in
case _exchangeClass or _exchangeName are null there is NPE thrown.
Maybe try to replace lines:
if (!_exchangeClass.equals(that._exchangeClass))
{
return false;
}
if (!_exchangeName.equals(that._exchangeName))
{
Hi Michal,
before I try that, I think I will try to investigate why they are null.
/Lars
--
View this message in context:
http://camel.465427.n5.nabble.com/Connection-pooling-with-camel-amqp-tp5716936p5716980.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Rich,
All you need to do is specify the query object as the body of the IN
message.
Ultimately, the query object should be a DBObject (i.e. a JSON object), but
the good news is that camel-mongodb supports automatic type conversions
from Strings and HashMaps!
So you could do the following:
fr
Thanks guys,
That helps a lot.
--
View this message in context:
http://camel.465427.n5.nabble.com/Using-timer-and-MongoDb-queries-tp5716634p5716984.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Thanks Raul,
Knew there had to be some way of doing this but new to Camel
-Original Message-
From: Raul Kripalani [mailto:r...@fusesource.com]
Sent: 08 August 2012 13:31
To: users@camel.apache.org
Subject: Re: Using timer and MongoDb queries
Hi Rich,
All you need to do is specify the qu
Do you have the stack trace? Could you post that here?
Regards,
Jothi
On Wed, Aug 8, 2012 at 11:47 AM, Gnanaguru S <
gnanaguru.sattanat...@wipro.com> wrote:
>
> Hi
>
> I have my camel application running in Tomcat. It works perfect.
>
> In my existing route I wanted to add a ActiveMQ endpoint. B
Hello
We have a client sending a request to a CXF WS endpoint
MessageContentsList messageContentsList = (MessageContentsList)
template.requestBodyAndHeaders( uri,message));
// wait for the route to complete
then Camel route the message to a processor where we check for Except
Can I have a look at your route?
You said the client doesn't receive the response when the response, I think the
client you means is a Camel route client, am I right?
--
Willem Jiang
FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (ht
Hi Jothi,
This is the trace. I suspect the architecture of the libraries I have added.
Please share your thoughts.
FYI: I am having the spring-web.jar in my WEB-INF\lib folder ( for
additional info)
\\Aug 8, 2012 7:45:29 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spr
Thanks Michal.
This works.
--
View this message in context:
http://camel.465427.n5.nabble.com/Node-count-in-camel-tp5716946p5716999.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Thanks Michal.
This works.
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-set-parameter-dynamically-in-uri-tp5716959p5717001.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Babak Vahdat,
Thanks for the fix. Will look into contributing to camel.
--
View this message in context:
http://camel.465427.n5.nabble.com/MyBatis-Component-Bug-consumer-onConsume-hits-error-transactions-are-committed-instead-of-rollback-tp5716774p5717003.html
Sent from the Camel - Users ma
How /jdbcRejectProcessor/ processor looks like?
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-JDBC-1-6-1-tp5716995p5717006.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Will this value for the address attribute work to invoke through the in-vm
protocol?
local://company.com/app/services/HelloWorldService
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-CXF-In-VM-tp5716772p5717008.html
Sent from the Camel - Users mailing list archive at
...or to keep with the flow of the example:
local://company.com/infrastructure/services/hash/HashService
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-CXF-In-VM-tp5716772p5717009.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I get this error:
java.lang.IllegalStateException: Local destination does not have a
MessageObserver on address
local://company.com/infrastructure/services/hash/HashService
Here is my beans.xml content:
http://company.com/infrastructure/services/hash";
id="HashServiceEndpoin
Hi dunnlow,
1. Yes, web console use runtime camel context and does not modify xml file.
2. Yes, there is no way to delete route in web console. You can check REST
API for that possibility.
--
View this message in context:
http://camel.465427.n5.nabble.com/Routes-in-camel-console-don-t-persist-
I voted for https://issues.apache.org/jira/browse/QPID-3760.
May it speed up a fix...
Best,
Christian
On Wed, Aug 8, 2012 at 1:16 PM, helander wrote:
> Hi Michal,
>
> before I try that, I think I will try to investigate why they are null.
>
> /Lars
>
>
>
> --
> View this message in context:
> h
You should subscribe to the list. Otherwise you post is not forwarded to the
mailing list where most of the developers listening...
Checkout http://camel.apache.org/discussion-forums.html
Best,
Christian
--
View this message in context:
http://camel.465427.n5.nabble.com/Routes-in-camel-console
Hi Christian,
I found this JIRA earlier today, and most likely it is the same problem.
The equals() function does not seem to deal with all possible varaints of
destination definitions.
I am in the process of trying out a fix, but I have not yet been able to
build a new qpid-client. Will struggle
Maybe my example will help you [1]...[4]...
Or try
/order/item/id
/rest/${header[id]}/WebService
http://localhost:9002/REST-Webservice"; />
[1]
https://github.com/muellerc/camel-in-daily-use/blob/master/part-2/src/test/java/org/apache/cmueller/camel/sus/cidu/part1/Cust
I am new to Apache Camel. So please excuse the novice question.
I am building a testing framework to see how much a single router can
put message into the queue.
I have a basic camel-context.xml where the router is injected.
http://camel.apache.org/schema/spring";>
I'm struggling with a very odd issue with Camel 2.10 and I'm hoping someone
could explain why it's occurring. I've attached a test case that
demonstrates the issue. It is a very simple route - just take a file from a
local directory and FTP it to a server. Here is the problem:
When I specify th
This is fixed some time ago...
Is it possible for you to upgrade to 2.10.0 or so?
If not, you can use the Content Enricher Pattern [2] to work around this
issue.
[1]
https://svn.apache.org/repos/asf/camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
[
I didn't understand what you try to do.
I assume you want publish a web service via CXF. In this case, you can
choose HTTP or JMS as wire protocol. There is no "in vm" protocol as far as
I know.
Camel support some "in vm" protocols (which are independent from CXF):
direct
seda
vm
direct-vm
Best,
C
I have tested the fix in org.apache.qpid.client.AMQDestination.equals(), and
now it works.
I just made sure that no null valued references were used.
Hopefully the qpid project will fix this soon. For my case, the fix I made
helps, but I do not know if there may be situations where it could create
Hi Lars,
Could you attach your patch to the
https://issues.apache.org/jira/browse/QPID-3760 to speed up its resolution?
To have a better latency with qpid you probably have to make sure that:
1. tcp_nodelay
(http://qpid.apache.org/books/0.16/Programming-In-Apache-Qpid/html/QpidJNDI.html#idp3287
I don't suggest you to use the local transport, as you need to make sure the
client and server are in the same JVM and they are sharing the same bus.
Did you have any chance to use the traditional http address ?
--
Willem Jiang
FuseSource
Web: http://www.fusesource.com (http://www.fusesource
We need to leverage the CXF Camel transport[1] to connect the work of Camel
supported "in vm" protocols.
[1]http://camel.apache.org/camel-transport-for-cxf.html
--
Willem Jiang
FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (http://w
Hello,
Is it possible to handle multiple file output in Exchange?
Here is my scenario
from(routes.getString("inbound")).to(routes.getString("shared.inbound")).process(new
Processor() {
public void process(Exchange exchange) throws Exception {
MYProcessor asdaProcess
What's your multiple file output looks like?
You can put it into a list and using splitter[1] to send them to the file
endpoint.
[1]http://camel.apache.org/splitter.html
--
Willem Jiang
FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.
I raised the issue: https://issues.apache.org/jira/browse/CAMEL-5492
Best,
Christian
--
View this message in context:
http://camel.465427.n5.nabble.com/Jetty-consumer-restricting-methods-tp5716938p5717024.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I didn't understand why you think it's related to ActiveMQ?
java.lang.ClassNotFoundException:
org.springframework.web.context.ContextLoaderListener
Looks like there is still a Spring library missing...
Best,
Christian
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-A
Hi,
Can you double check if there are more then one Servelt API jar in your war?
--
Willem Jiang
FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/)
(English)
http://jnn.javaeye.com (http:/
Thanks very much Willem.
1. Input file - Order1.xml
2. Output after the Processor component - File1.xml, File2.xml, File3.xml.
Output files are generated after XSLT transformation.
3. All the output file is routed to the same endpoint
I looked through the splitter documentation and think that is
I think it is OK.
--
Willem Jiang
FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/)
(English)
http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: willemji
44 matches
Mail list logo