Hi
what you need is the properties component. Look here:
http://camel.apache.org/properties.html
then you can refer your endpoint like this
.to("{{myHttpEndpoint}}")
where you have that defined in your properties like this:
myHttpEndpoint=http://servername.com/test
regards, Marco
Am 26.01
Hi
See this FAQ
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html
Or you can define the endpoint using property placeholders
http://camel.apache.org/using-propertyplaceholder.html
http://camel.apache.org/how-do-i-use-spring-property-placeholder-with-camel-xml.html
On Thu, Jan 26, 2012
Hello again,
I have relized that I must use a ProcessStrategy instead of PollStrategy.
ProcessStrategy can be used in the uri like pollStrategy
uri = "ftp://..&processStrategy=#myProcessStrategy";;
This parameter is of Camel-File2 and FTP2 inherits it.
I am using the GenericFileRenameProces
I think you should not have any problems, the conversion is really simple.
After split statement you have a Node as body. For XSLT you need a Source. Try
adding this instead setBody
That should force conversion to document object and I belive fix your problem.
Best regards,
Łukasz Dywicki
--
Hi, can anyone help with this.. specifically computeDelay() method never
appears to be called..
We are using camel 2.7.1 and found this post which suggests that the above
config should work..
http://camel.465427.n5.nabble.com/Delayer-and-as
I'm working on a Camel component for SMSLib (http://www.smslib.org).
This is a Java library for communicating with mobile phones and modems
via a serial connection to send and receive SMS messages using the
Hayes (AT) command set.
I have a working prototype - you can see the source at
https://gith
Hi,
I wanted to know if there's a way to use @DataField annotation not in the
class properties but in the getters of the class. The thing is that I need
to extend the domain class (auto-generated), and from the extended class use
bindy annotations.
I have already implemented an example with bind
Excellent suggestion Łukasz!
Chris, have a look at
http://camel.apache.org/xslt.html#XSLT-NotesonusingXSLTandJavaVersions,
perhaps that will resolve your issue. For my quick unit test I'm using
openjdk 1.6.0_22 (ArchLinux-6.b22_1.10.5-1-x86_64) and xalan 2.6.0 was
already in my projects dependenci
My advice would be to read over the source for the file endpoint first - it's
fairly bare-bones and makes it easy to comprehend how things work (for
example, how endpoints receive parameters and then pass those along to
consumers and producers). From there it's helpful to go through the mock
endpoi
Alex, smslib is distributed under ALv2, which is great. I didn't check
yet if it's OSGi ready, we're looking for that too. All our components
are now OSGi ready. If smslib isn't we'll try to work with them to make
it OSGi ready or find another solution.
The question I have for you is how to yo
Thank you guys. I added the converyBodyTo command instead of my crazy
setBody command and it seemed to work. I did have to change the attribute
to type vs javaType though.
I wish I could explain why that was needed though. It seems odd that split
would change the data into something not compatible
I'm trying to log message body using something like:
from ("jms:mytestqueue").
setBody().simple("Say Hello").
.log(LoggingLevel.DEBUG, "Message body: ${body}")
..
In my log file, instead of seeing "Message body: Say Hello" I got "Message
body: ${body}", any extra confi
Looks like you have Quotations around the ${body} making it literal, try
"Message body: "+${body} instead
Hope this helps
On Thu, 26 Jan 2012 13:00:25 -0800 (PST), honghebox
wrote:
> I'm trying to log message body using something like:
>
> from ("jms:mytestqueue").
> setBody().simple("Say
No, without quotations around ${body}, you code even won't compile.
--
View this message in context:
http://camel.465427.n5.nabble.com/help-with-log-DSL-tp5433969p5433989.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi,
I have a web application based on spring, camel and activemq. The war file
works fine when I deploy in tomcat. I am trying to use the embedded Jetty
instead of Tomcat as described
http://internna.blogspot.com/2011/08/step-by-step-executable-war-files.html
here
I am always getting the below
The below exception means that some other application is using
tcp://localhost:61616...
java.net.BindException: Address already in use: JVM_Bind
verify with command:
Windows - netstat -an |find /i "listening"
Linux - netstat -anp }grep 61616
If you try to run tomcat and jetty at the same time you
Thanks for the response.
I am not running tomcat and jetty at the same time. And also the results of
netstat command doesn't list this port.
I tried changing to different ports like 61617 / 616701, but it doesn't
help.
--
View this message in context:
http://camel.465427.n5.nabble.com/BindExcepti
Sorry was thinking Spring/Blueprint not Java DSL.
you cant not really do a .log() in Java DSL you need to use a .to()
go look at http://camel.apache.org/log.html
try .to("log:PACKAGE?level=DEBUG&showBody=true")
where PACKAGE is the java package space for logging. ex:
log:com.national?...
--
T
You can use the .log in your routes, via the log EIP (
http://camel.apache.org/logeip.html).
I tested the route segment supplied in the original message (via
Camel 2.6.0-fuse-01-09) ::
.setBody().simple("Say Hello")
.log(LoggingLevel.DEBUG, "Message body: ${body}")
.. and it works as expe
Will suspending the context that a JmsComponent has active endpoints in, cause
the JMS connection.stop() to be called?
I'm looking for the best/right method to quickly disable message flow inside of
Camel using JMS components.
Anyone know off hand if camelContext.suspend() will do the right thi
It doesn't appear that camelContext.suspend() even attempts to suspend() its
components... is that expected?
--jason
On Jan 26, 2012, at 2:13 PM, Jason Dillon wrote:
> Will suspending the context that a JmsComponent has active endpoints in,
> cause the JMS connection.stop() to be called?
>
>
The error is caused by ActiveMQ JMS Broker try to bind the port of
61616.
Can you check if you start the ActiveMQ Broker twice ?
Or you already start the broker somewhere.
On Fri Jan 27 05:33:53 2012, lavanya wrote:
Thanks for the response.
I am not running tomcat and jetty at the same time. An
On Thu, Jan 26, 2012 at 11:46 PM, Jason Dillon wrote:
> It doesn't appear that camelContext.suspend() even attempts to suspend() its
> components... is that expected?
>
Yes, suspend() is for suspending route *consumers only*.
So the routes does not intake new messages, but all the other route
se
Hi, thank you for the clear advice - I'll go through your recommended
components today and see if they help me get a better grip on things.
I definitely intend to unit test the wazoo out of everything, but it's
a little tricky right now as I'm not entirely sure where
responsibilities should lie in
Hi Hadrian,
I made a mock implementation of the Java serial API specifically for
unit testing: https://github.com/frontlinesms/mock-serial
Do you have any practical advice for developing components, or
resources I should be reading?
Thanks,
Alex
On 26 January 2012 21:22, Hadrian Zbarcea wrot
25 matches
Mail list logo