Hi
The Fuse ESB doc have some details about the shift appenders and how
to log per application
http://fusesource.com/docs/esbent/7.0/esb_runtime/ESBRuntimeLoggingApplications.html
You can then as Raul said also do it per route, using the routeId key.
See the MDC logging here
http://camel.apache.
Hi
You are under the mercy of XPath and what XPathExpression can do.
As it returns a NodeList which has Node elements, you may be able to
go from Node -> Document (or whatever the parent type is), and then
grab any namespaces. You would then need to use the DOM API from the
JDK for that.
And do t
Make sure you set you expectations on the mocks first in your unit
test. Before any messages gets routed etc.
On Mon, Nov 5, 2012 at 9:27 PM, David Karlsen wrote:
> I'm confused about how expectedBodiesReceived behaves.
>
> I have a route where I mock a jms endpoint (the endpoint is sent to in
>
Hi Willem,
Thanks for reply; the header is named XXX and doesn't end in CXF.
The weird part is that the header is filtered when CXF component address is
NMR (actually ALL headers disappear in this case). If the address is changed
to HTTP, everything works as expected. Can you please check the cod
Hey Bilgin,
I turned out to be infeasible for my use case to talk to CloudWatch
through Camel. Can't remember the exact details just now, but I'll
let you know if I do.
- D
On Fri, Oct 26, 2012 at 2:31 AM, bibryam [via Camel]
wrote:
> Hi Dan,
>
> did you have any progress with this CloudWatch
Hi,
Can you change the header name not end with CXF?
It looks like camel-cxf just filters the header which contains CXF.
--
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://willemji
Can you check the log to see if the camel route is failed to redelivery the
message?
I don't think you set right http endpoint option rightly with the HTTP_QUERY
header, as it will not effect the behavior of camel-http endpoint.
Can you setup the camel-http endpoint like this ?
> .to("http://dum
Hi,
It looks you didn't setup a right REST service request body. It could be a XML
or JSON string.
As you are using CamelCxfRsUsingHttpAPI, you need to build up the request body
yourself.
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://w
Hi Ramkumar,
You bring up an interesting topic for us. AFAIK, camel don't need to touch the
detail social networks API if we can use the genetical API like the
camel-jcloud does.
I know Spring is doing the some work here[1], maybe we can consider to build
some kind of camel component on the top
Hello,I`m trying call REST web service by using cxfrs component and I got
following exception:
[mel-1) thread #0 - timer://foo] idationXmlBeanDefinitionReader INFO
Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
[mel-1) thread #0 - timer://foo] idationXmlBeanDefinition
Yes, just like Christian says. Use a different logging category for each
route.
You can customise the logging category of your LoggingErrorHandler like
described here [1]. It may be worth externalising their names to a
properties file.
Once you have different logging categories, just set up the a
Yes.Log separately. We used a separate JMS Queue (JMS Appender ) for logging.
-Original Message-
From: maheshadepu [mailto:maheshad...@gmail.com]
Sent: Tuesday, November 06, 2012 2:53 AM
To: users@camel.apache.org
Subject: logging(error Handler) per each route
Hi All,
Is it possible to l
You can configure log4j to use different log files for different
packages/classes.
Best,
Christian
On Mon, Nov 5, 2012 at 10:22 PM, maheshadepu wrote:
> Hi All,
>
> Is it possible to log each route in a separate file?
> Right now I have enabled logging(errorhandler) for all routes.
> So all ro
We have a unit test [1] which make sure it works (at least with ActiveMQ).
May be it's a limitation of WebSphereMQ? Unfortunately I cannot test it,
but may be you can run this test against WebSphereMQ?
[1]
https://svn.apache.org/repos/asf/camel/tags/camel-2.10.2/components/camel-jms/src/test/java/
Doesn't this code look suspicious (look at actual bodies):
public void expectedBodiesReceived(final List bodies) {
expectedMessageCount(bodies.size());
this.expectedBodyValues = bodies;
this.actualBodyValues = new ArrayList();
expects(new Runnable() {
p
Same:
Body of message: 0. Expected: <:
> Try setting the expectation before you actually hit the endpoint with any
> messages. Hit the endpoint with your test logic. Then assert.
>
> Does it work then?
>
> Regards.
>
> Sent from a mobile device
> On 5 Nov 2012 20:27, "David Karlsen" wrote:
>
>> I
Hi All,
Is it possible to log each route in a separate file?
Right now I have enabled logging(errorhandler) for all routes.
So all routes logs go into a single log file?
But I want to log each route separately.
Thanks,
Mahesh
--
View this message in context:
http://camel.465427.n5.nabble
Is there a way to tell the splitter-xpath to copy all parent namespaces to
the splitted element?
This is what I am trying to do:
I am trying to split an XML message with XPath, this message has a schema
defining an element containing a sequence of xsi:anySimpleType. Creating
such message gives me
Try setting the expectation before you actually hit the endpoint with any
messages. Hit the endpoint with your test logic. Then assert.
Does it work then?
Regards.
Sent from a mobile device
On 5 Nov 2012 20:27, "David Karlsen" wrote:
> I'm confused about how expectedBodiesReceived behaves.
>
>
I'm confused about how expectedBodiesReceived behaves.
I have a route where I mock a jms endpoint (the endpoint is sent to in
an onException route as follows:
java.lang.Exception
true
Hi Chris,
I think you won't be successful with a spring-dm support issue since spring-dm
development has been stopped in 2009.
Have a look on gemini-blueprint (spring-dm 2.0+) and discussion on camel-dev
about introducing s new component to support gemini-blueprint in a future camel
version.
Rega
Claus
@Value was added in spring 3.1 - so this is a spring dm support issue? Let
me see if camel is using the latest flavor of the month
Chris
On Mon, Nov 5, 2012 at 8:09 AM, Claus Ibsen wrote:
> On Fri, Nov 2, 2012 at 10:17 PM, Christopher Love
> wrote:
> > Claus and other
> >
> > I am just
Jack,
perhaps the guys at activemq users list can give you a better solution, but
I believe you could try the approach described at
http://activemq.apache.org/interceptors.html and
http://activemq.apache.org/developing-plugins.html
att.
*Henrique Viecili*
On Mon, Nov 5, 2012 at 2:56 PM, jack w
Has anyone implemented an integration of Apache Camel with social networks ?
What are the key learning and key enterprise integration patterns in use ? I
guess in enterprise scenario things like OAuth, LDAP, Encryption will be of
more importance. Also we need methods to convert the qualitative d
Hi everyone,
Does anyone know if there is a way to intercept/wiretap a queue on a
remote broker.
I am trying to test the messaging contract of a component in a much
larger system without interfering with the rest of the messaging. The
remote broker is running activemq 5.6.
Ideally I'd like t
On Mon, Nov 5, 2012 at 11:41 AM, massyl wrote:
> Hi Claus,
> i'm using camel 2.10.0 and restlet 2.1-M7, but i've tried camel 2.10.2 and
> all restlet version from 2.0 up to 2.1-M7.
> this problem arise when we use SpringServerServlet (that extends
> ServerServlet), there is a method init(Componen
On Fri, Nov 2, 2012 at 10:17 PM, Christopher Love
wrote:
> Claus and other
>
> I am just coming up to speed on blueprint / osgi, and I think I may be
> running into the same form of issue. @Value with property place holder
> does not seem to be populating when the route is deployed inside of Kara
Hi
I guess the config changes are after you set cacheConsumers=false. And
you use the spring connection pool.
Well for what it is worth you cannot cache consumers when doing
request/reply and when JMSCorrelationIDs is in-use, such as you do.
As a new consumer must be created before a new JMSSelec
Hi,
> What version of Camel are you using?
2.10.2
> And how have you configured the JMS component
...
> and the route where you do request/reply?
.to(ExchangePattern.InOut,
"activemq:ActiveMQ.DLQ?replyTo=xxx.
Hi
What version of Camel are you using? And how have you configured the
JMS component, and the route where you do request/reply?
On Mon, Nov 5, 2012 at 12:21 PM, anaCortes wrote:
> The problem seems solved if I use cacheConsumer="false" in the
> CachingConnectionFactory in the ActiveMQ configu
It's not even a matter of constant vs dynamic values. To handle dynamic
values I can still use a bean and do exchange.getIn().setHeader(..).
The question however is how to get the camel headers to show as actual
headers on the outgoing JMS message. When I look on the outgoing queue
(using MQ Explo
http://camel.apache.org/constant.html
Documentation says set header works only for a constant value. In practical
scenario, we might need the set header to set values based on the message
exchange. This can be an improvement.
-Narita
-Original Message-
From: bung_ho [mailto:bung...@hotm
Hi, are you saying if I use before the in the route, then those camel headers will
automatically be added as headers on the eventual JMS message?
I had tried earlier to use an intermediate bean and in its code I simply did
exchange.getIn().setHeader(...) but nothing ever made it to the final jms
I've already read these two links and managed to do nice unit tests for
simple routes. But I still don't have answers to my questions. I'll check
the webinar. Meanwhile, I'll try to ask simpler questions.
I'm working with
@Override
public String isMockEndpoints() {
return "*";
}
and a te
The problem seems solved if I use cacheConsumer="false" in the
CachingConnectionFactory in the ActiveMQ configuration:
...
cacheConsumers*" value="false" />
Anyone knows why this can solve the problem of the fixed reply queues?
Thanks.
--
View this message in context:
http://came
Hi Claus,
i'm using camel 2.10.0 and restlet 2.1-M7, but i've tried camel 2.10.2 and
all restlet version from 2.0 up to 2.1-M7.
this problem arise when we use SpringServerServlet (that extends
ServerServlet), there is a method init(Component) that adds an entry to deal
with war protocol and then c
On Sun, Nov 4, 2012 at 10:09 AM, Henri Tremblay
wrote:
> Hi,
>
> I've started to play with Camel and loving it. However, I'm still having
> problems with the testing.
>
> I want to do an integration test of a complete message processing. Here's
> the flow, please focus on the solution, not on the
Hi
What Camel and Restlet version are you using? Maybe its working in a
more recent release.
On Sun, Nov 4, 2012 at 4:36 PM, massyl wrote:
> Hi,
> I'm facing one problem when configuring RestletComponent with relative path
> using spring.
> i configured SpringServerServlet and RestletComponent
Hi
If you want to set this from XML then you can possible do
JoeBlogs
5
eg using the simple language to set a value, and define the type using
resultType.
For the WMQConstants.WMQ_MDCTX_SET_IDENTITY_CONTEXT you would need to
get the actual String value they represent.
And us the string value i
Hello Henri!
Did you already checked out the following links [1], [2]?
With "adviceWith" you can manipulate your route in your test and "wire tap"
the message to a mock endpoint which can check your expectations. You can
also skip sending the message to the original endpoint (may be cause the
syst
Hi
You can use mock libraries such as EasyMock, Mockito, jMock and what
else is out there.
On Mon, Nov 5, 2012 at 3:59 AM, vinayks wrote:
> Thanks Henri. I don't want to test the actual route. I have a separate tests
> to test the routes. I am writing mock junits for the method where I invoke
41 matches
Mail list logo