Hi
If you have all the data in headers, then you can use the simple
language to build a message body
http://camel.apache.org/simple
I guess this is what you attempted with . But constant is
what is says a constant.
"<2> DateValue Hostname Message"
So try with
"<2> ${header. DateValue} ${head
Did you try to reset the StreamCache before try to read something from it?
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On December 16, 2014 at 3:04:45 PM, shanal
I'm developing a route that will read the incoming xml message and create a
new message to pass to an outbound route.
I need to extract some data via xpath then concat the data elements to send
to a new route.
Example
My
home
var1 = data1
var2 = data2
var3 = var1 + " " + var2
var3 =
Thanks Sergey it works and removes the unwanted header information.
Sergey Beryozkin-3 wrote
> Hi, AFAIK one needs to activate a header filter strategy that would
> block copying the input headers
>
> Cheers, Sergey
> On 15/12/14 23:33, Kumaran wrote:
>> Hi
>>
>> we are using camel cxfrs server
The service I'm using requires that we "login" and maintain the session.
(Yuck, I know!)
I can do this using regular java and CXF, but can't figure out the right way
with Camel & CXF.
This works with Java / CXF.
((BindingProvider)
port).getRequestContext().put(BindingProvider.SESSION_MAINTA
That was it. Thanks for your help.
--
View this message in context:
http://camel.465427.n5.nabble.com/Can-t-find-the-BindingOperationInfo-with-operation-name-urn-login-tp5760654p5760783.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Ok I have the solution now.
I added sync=false to the uri
It was using request / reply model and waiting for a response.
Thanks for all the help.
Mike
--
View this message in context:
http://camel.465427.n5.nabble.com/Sending-to-Syslog-tp5760517p5760780.html
Sent from the Camel - Users m
Hi
When you get this kind of error it can indicate mixed versions.
Can you make sure the version of the Camel JARs are the same version
as the version of Camel that was shipped with ActiveMQ.
On Tue, Dec 16, 2014 at 7:28 PM, mtod09 wrote:
> I have it working I guess I was missing some more Jar
Hello! Thanks for answering.
Well, actually it did work! But, I thought that wire tap was not appropriate
for this case. Anyway, do you know why the rest return gets messed up when I
try to send an inOnly message?
--
View this message in context:
http://camel.465427.n5.nabble.com/Problem-with-
I have it working I guess I was missing some more Jar's.
Interesting the 1st message seems to work but the second one times out then
works.
Error Message:
ERROR | Failed delivery for (MessageId:
queue_syslogMessages_ID_FM-WLTP082-60537-1418754256058-7_1_1_1_1 on
ExchangeId: ID-FM-WLTP082-60535-1
Thanks
I have added the Jar's things are looking better.
The route is running now when I send it a formatted message I get the
following error:
*Message:* <2>Jul 10 12:00:00 192.168.1.1 SyslogGen MESSAGE TEXT
ERROR | Failed delivery for (MessageId:
ID:FM-WLTP082-56545-1418751719052-7:1:1:1:1 on
Hi,
We’re working with an exchange that requires us to follow a 2 step logon
process for establishing the connection.
The message sequence is shown below.
1. Send session logon request (35=A)
2. Receive session logon response(35=A) and SessionStatus message (35=h)
3. Send Use
@Jan,
I just missed your previous replies.
I just saw you also have provided the JDK info already.
thanks.
2014-12-16 14:25 GMT+01:00 Aki Yoshida :
> It's good to hear it is working in your environment.
>
> by the way, I saw your camael doc update regarding the concrete error
> example you saw.
>
It's good to hear it is working in your environment.
by the way, I saw your camael doc update regarding the concrete error
example you saw.
We need to formulate that differently.
There is a small sanity check before starting the tokenization (not
comparing the impl name itself but trying to infer
Hi,
What is the correct way to use different aggregation strategy in camel
depending on some header? Is the following way fine or is there any other
cleaner approach to do this?
from("direct:start")
.choice()
.when(header("foo").equalTo("bar"))
.aggregate(header("id"), new
B
Sure... i can use any rest tool but my idea is create a set of regression
test to help me on the future.
ps. i am moving to maven central. Thanks
--
View this message in context:
http://camel.465427.n5.nabble.com/Testing-REST-Service-tp5760757p5760764.html
Sent from the Camel - Users mailing
I also published the demo
https://github.com/janmaterne/CamelXtokenizer
Jan
> -Ursprüngliche Nachricht-
> Von: Jan Matèrne (jhm) [mailto:apa...@materne.de]
> Gesendet: Dienstag, 16. Dezember 2014 12:45
> An: users@camel.apache.org
> Betreff: AW: AW: camel - xsd
>
> done
>
> Jan
>
> > -
I just went through the code we need to setup the endpoint before creating the
new topic.
Here is the JIRA[1] I just created.
[1]https://issues.apache.org/jira/browse/CAMEL-8156
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn
And btw Camel 2.14.1 is now synced in Maven central, so if you use
maven you can upgrade.
On Tue, Dec 16, 2014 at 11:57 AM, fabrizio.spataro
wrote:
> Hello,
>
> i am using camel 2.14.1 (snapshot) to aim use newest camel rest component
> (using REST DSL).
>
> I am writing more rest services and i
Hi
Yeah sure you can use any http client, or some of the http client that
are native to rest, such as camel-restlet.
You can also see the unit tests of the various rest-dsl how we test it
itself, eg in camel-jetty, camel-restlet, camel-rest-spark etc.
Also you do not need to use a Camel component
done
Jan
> -Ursprüngliche Nachricht-
> Von: Claus Ibsen [mailto:claus.ib...@gmail.com]
> Gesendet: Dienstag, 16. Dezember 2014 12:11
> An: users@camel.apache.org
> Betreff: Re: AW: camel - xsd
>
> Hi
>
> Ya sure its a good idea to update the docs with your findings.
>
> On Tue, Dec 16,
Hello,
i am using camel 2.14.1 (snapshot) to aim use newest camel rest component
(using REST DSL).
I am writing more rest services and i would test it using camel test java
class.
My main idea is write java class extends CamelTestSupport and use http camel
component to invoke my REST services.
Hi
Ya sure its a good idea to update the docs with your findings.
On Tue, Dec 16, 2014 at 11:09 AM, Jan Matèrne (jhm) wrote:
> I stripped down my own example and did a cross check to yours:
>
> When running on Java 1.8.0_20-ea-b20 the test failed.
> When I add Woodstox 4.4.1 as dependency the te
Hi, AFAIK one needs to activate a header filter strategy that would
block copying the input headers
Cheers, Sergey
On 15/12/14 23:33, Kumaran wrote:
Hi
we are using camel cxfrs server to expose our proxy services, The service
is exposer is working fine but if the response is more that certain
I stripped down my own example and did a cross check to yours:
When running on Java 1.8.0_20-ea-b20 the test failed.
When I add Woodstox 4.4.1 as dependency the test passed.
Same results when using Java 1.9.0-ea-b06.
https://camel.apache.org/splitter.html sais
"Note that this StAX based tokenize
I don’t think you need to dependency injection in your XML DSL, as we just look
up the instance from the registry. Can you give an example that you need to use
Guice to do the DI work?
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
htt
How did you submit the attachments?
camel-jetty supports multipart/form out of box.
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On December 15, 2014 at 2:48:14 P
Thanks Jan for your prompt response.
It will be easy for me if you can provide the java classes.
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-xsd-tp5760376p5760745.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Sorry for my late answer, I was ill :(
Thanks for your sample project, I investigated into it now.
All tests passed. (Camel 2.14.0)
But your test used the XMLTokenExpressionIterator directly I migrated my own
test class (using the RouteBuilder) into your project.
- added the test class
- added th
Hi
See the javadoc of the start method and class javadoc of CamelContext
On Tue, Dec 16, 2014 at 9:54 AM, ManishGupta wrote:
> Thanks for the Prompt reply Claus , I know about the mockEndpoint (assertions
> and Expectations) , It is very well explained in the book I didn't use them
> to make it
Thanks for the Prompt reply Claus , I know about the mockEndpoint (assertions
and Expectations) , It is very well explained in the book I didn't use them
to make it simpler at first.
I didn't get your point on
//"You need to run the test for a longer time. The start method is non
blocking."
Ca
Hi
I suggest to check
http://xstream.codehaus.org/
And see how you configure/control dates
On Mon, Dec 15, 2014 at 11:36 AM, sayed_india
wrote:
> Hello,
> Can any one please help in retaining the date value instead converting to
> GMT?
>
> Thanks,
> Sayed
>
>
>
> --
> View this message in conte
Hi
You need to run the test for a longer time. The start method is non
blocking. And for testing you may want to use mocks to set
expectations and whatnot.
Since you got the book, then read the entire testing chapter to learn more.
On Tue, Dec 16, 2014 at 9:24 AM, ManishGupta wrote:
> Afterno
Afternoon all,
I have created Junit for existing production routes , Requirement was not to
change anything from the route and test it with dummy data. From
cameInAction and camel.apache.org i found the best approach will be to use
adviceWith. I am using camel 2.10.
When i run the Junit it starts
34 matches
Mail list logo