Or in Java DSL:
setHeader("CamelFileName", "someNewFileName.txt");
Best,
Christian
On Wed, May 9, 2012 at 11:53 PM, ychawla wrote:
> Hi,
> Did you try setting the camel file name header:
>
>
>
> someNewFileName.txt
>
>
> Thanks,
> Yogesh
>
> --
> View this message in context:
> http://camel.
Hi!
I'm a beginner in apache camel and I would develop a route which separate
XML tags in differents xml files with the split().
For example :
...
One tags in one xml file.
Does it possible to do that with camel and how? I didn't find solutions for
the momen
On Thu, May 10, 2012 at 9:28 AM, Salomon wrote:
> Hi!
>
> I'm a beginner in apache camel and I would develop a route which separate
> XML tags in differents xml files with the split().
>
> For example :
>
>
>
>
>
>
>
>
> ...
>
>
>
>
>
> One tags in one xml file.
>
> Does it possible
After spending few more hours a decision was made to revisit SMX. Upgrading
camel in SMX-4.4.1 was simple enough. And the application is running.
Thanks,
ed
--
View this message in context:
http://camel.465427.n5.nabble.com/Help-with-a-Karaf-Camel-Cxf-ActiveMQ-setup-that-results-in-an-NPE-tp5696
On 9 May 2012 18:05, Claus Ibsen wrote:
> On Wed, May 9, 2012 at 4:57 PM, rdifrango wrote:
> There is an in flight registry you can see number of currently in
> flight messages etc.
> http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/InflightRepository.html
Is it pos
Thanks guys, but the solution you suggested would rename the files after the
ftp step so doesn't work.
Anyway to retain the original file name? This is necessary as I need to
perform some local processing after the file has been ftpd, and I need to
use the file name as some sort of an uid.
--
Vie
On Thu, May 10, 2012 at 10:06 AM, Alex Anderson wrote:
> On 9 May 2012 18:05, Claus Ibsen wrote:
>> On Wed, May 9, 2012 at 4:57 PM, rdifrango wrote:
>
>> There is an in flight registry you can see number of currently in
>> flight messages etc.
>> http://camel.apache.org/maven/current/camel-core/
On 10 May 2012 11:28, Claus Ibsen wrote:
> On Thu, May 10, 2012 at 10:06 AM, Alex Anderson wrote:
>> On 9 May 2012 18:05, Claus Ibsen wrote:
>>> On Wed, May 9, 2012 at 4:57 PM, rdifrango wrote:
>>
>>> There is an in flight registry you can see number of currently in
>>> flight messages etc.
>>>
I didn't understand very well your solution.
In your case, I need to know how many tags I have, otherwise it doesn't
work, for example: if I add tags without change the code. 'cause your idea
is to split tags one by one...right?
It does not exist a solution which separate automatically every tag
I think I have found the problem:
The RegistryBean.getBean() method is not thread safe:
When I was debugging this method i notized that the bean member variable
changes every now and then. I think this happens because another thread
changes the member.
In the last if block of the me method I thi
I do this in Camel 2.7.1 and it definitely changes the name of the file
before ftp:ing:
*theExchange.getIn().setHeader(Exchange.FILE_NAME, "newfilename");*
Hope that helps,
/Bengt
2012/5/10 qwerty5000
> Thanks guys, but the solution you suggested would rename the files after
> the
> ftp step
On Thu, May 10, 2012 at 11:23 AM, Bengt Rodehav wrote:
> I do this in Camel 2.7.1 and it definitely changes the name of the file
> before ftp:ing:
>
> *theExchange.getIn().setHeader(Exchange.FILE_NAME, "newfilename");*
>
Yeah you need to store the original file in another header before hand,
and
Hi,
using the split tag creates multiple messages depending on how much
elements there are, and these messages are processed one by one.
from("file:orders.xml").split().xpath("/orders/order") ...
that means the endpoint after the split is called multiple times (with
every message)
Now you
Hi
On 10/05/12 07:47, anand_tech wrote:
i am making restful webservices using apache cxf and camel. my configuration
is something like this :
I have three service beans exposed as services and are mapped to different
urls and the route is something like
I can now get it to work using the re-renaming approach.
Thanks all.
--
View this message in context:
http://camel.465427.n5.nabble.com/how-to-specify-remote-file-name-when-using-FTP-endpoint-tp5697227p5699753.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi,
I'm getting an error of:
java.lang.IllegalStateException: BeanFactory not initialized or already closed
- call 'refresh' before accessing beans via the ApplicationContext
when my application context is created for the second time.
The basics of the class are below.
When test1 is being run it
I think it would be a good feature to have. Our integration counterparts
often require that the name of the file we send to them is hardcoded (i e
it should always be the same name) or conform to a naming standard defined
by the receiver. But internally, on the sending side, the original file is
of
Hi Arnaud,
As mentioned by Christian Jencks should not be used. The transacted
parameter should be defined as "false". This parameter tells to Spring that
it does not have to create a local JMSTransaction using Spring JMS
TransactionManager but instead has to be use the JTA TransactionManager. In
Hi folks!
The intention is to save a file from the message body to a directory on the
file system.
Unfortunately I am not able to save a file that sits inside the body to save
to disk via file component. What I am doing wrong?
...
${headers.originialFile}
On Thu, May 10, 2012 at 10:38 AM, Alex Anderson wrote:
> On 10 May 2012 11:28, Claus Ibsen wrote:
>> On Thu, May 10, 2012 at 10:06 AM, Alex Anderson
>> wrote:
>>> On 9 May 2012 18:05, Claus Ibsen wrote:
On Wed, May 9, 2012 at 4:57 PM, rdifrango wrote:
>>>
There is an in flight regis
Hi,
We have a bunch of integrations that polls FTP servers for files.
We have experienced that from time to time the integrations stop fetching
files from the FTP servers.
There are no indications of errors in the log files etc.
It just seem to stop polling the files - if the integration is resta
Hi
could it be that you're suffering from [1] not being part of Camel version
you're using? If possible try to upgrade and see if that can help.
[1] https://issues.apache.org/jira/browse/CAMEL-4105
Babak
--
View this message in context:
http://camel.465427.n5.nabble.com/FTP-polling-seems-to-st
Please ignore this posting because I caused a typing error!
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-save-a-File-from-Body-to-disk-tp5699895p5700096.html
Sent from the Camel - Users mailing list archive at Nabble.com.
There is a difference between: split().xpath("/orders/order") and
split(xpath("/orders/order")?
I can't run "setHeader(Exchange.FILE_NAME)".
Each of my tags have a id number in attribute...may be that could be a
solution...!?
--
View this message in context:
http://camel.465427.n5.nabble.com/
Hi,
I'm not sure if these three beans have same method name.
As the REST request will be mapped into a method call, if you check the
method name in the camelCxfInProcessor, you should be able to tell the
request is coming for which bean. It should be easy to route the request
to different endp
On Thu, May 10, 2012 at 12:59 PM, Bengt Rodehav wrote:
> I think it would be a good feature to have. Our integration counterparts
> often require that the name of the file we send to them is hardcoded (i e
> it should always be the same name) or conform to a naming standard defined
> by the receiv
The bean method should be thread safe, as the method will be called
from different thread.
BTW the bean DSL support to pass the object, can you use the Object
instead of the Class?
On Thu May 10 17:12:22 2012, cgiera wrote:
I think I have found the problem:
The RegistryBean.getBean() method is
Hi
Current camel-cxfrs supports the async out of box.
Please check the code of CxfRsInvoker, it leverages the continuation to
invoke the async processors.
On 5/9/12 4:09 PM, Claus Ibsen wrote:
Hi
Are you using the CXF-RS producer from Camel, eg you do
from file
to cxfrs
The cxfrs curren
Hi
Which version of Camel are you using?
If you want to reuse the ApplicationContext across the test, you can
add the below codes in you test
public boolean isCreateCamelContextPerClass() {
return true;
}
On Thu May 10 18:53:01 2012, James Talbut wrote:
Hi,
I'm getting an error of:
java
Hi,
Using Camel 2.9.2 and CXF 2.6.0.
Previously I was using Camel 2.5.5 (I think) and this was working.
I changed it to use a Spring @RunWith and that made no difference, then I
noticed that client was static.
When I changed that it started working.
I don't know why it wasn't working as a stati
On Thu, May 10, 2012 at 4:11 PM, Willem Jiang wrote:
> Hi
>
> Current camel-cxfrs supports the async out of box.
> Please check the code of CxfRsInvoker, it leverages the continuation to
> invoke the async processors.
>
Willem, can you update the Camel docs at
http://camel.apache.org/asynchronous
Mainly this has to do with startup order of applications in our WAS server
instance (which we unfortunately cannot change). Just need a small delay of
10 to 15 seconds.
--
View this message in context:
http://camel.465427.n5.nabble.com/Delay-route-start-tp5686442p5700476.html
Sent from the Camel
On Thu, May 10, 2012 at 4:48 PM, PhilBurress wrote:
> Mainly this has to do with startup order of applications in our WAS server
> instance (which we unfortunately cannot change). Just need a small delay of
> 10 to 15 seconds.
>
With current code you can mark those routes as auto startup = false,
I can see that the Jetty consumer is responding with 503 - "Service
unavailable" during the grace-period. I can see from CAMEL-2660 that this
is by intention/design. I was actually hoping that the listening socket was
unbound instead, but as I control the producer code I think I can handle
the 503.
Hello, sorry to bother but I have a problem understanding how load
balancing works with some endpoints.
Basically, I have the following route in a client:
from(timer endpoint)
.loadbalance().roundrobin() (with other types of load balancing the
problem is similar)
.to(http endpoint 1, http endpoint
On Thu, May 10, 2012 at 2:54 PM, Salomon wrote:
> There is a difference between: split().xpath("/orders/order") and
> split(xpath("/orders/order")?
>
>
> I can't run "setHeader(Exchange.FILE_NAME)".
>
> Each of my tags have a id number in attribute...may be that could be a
> solution...!?
>
Yeah
Hi Romain,
>about the javadoc I thought of the dedicated folder:
>http://maven.apache.org/plugins/maven-javadoc-plugin/examples/javadoc-resources.html.
>
That wont work if you are already using a doclet like umlgraph. I have
tested locally that indeed I can generate the files with
${basedir}/src
I'm looking for options for achieving this using Camel.
1. HTTP Client sends a request to my server.
2. HTTP Controller gets the request, extracts the parameters, send a
request to "direct:start" using a producer template.
handleHTTPRequest()
{
.
ProducerTemplate template
Hi Romain,
Is there anyway to get the diagrams generated only when invoking "mvn site".
Generating the diagrams every time we build the project is not ideal.
Thanks!
-Nestor
--
View this message in context:
http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5700777.html
Sent from the
did you try attaching it to the site phase?
- Romain
2012/5/10 Nestor Urquiza
> Hi Romain,
>
> Is there anyway to get the diagrams generated only when invoking "mvn
> site".
> Generating the diagrams every time we build the project is not ideal.
>
> Thanks!
> -Nestor
>
> --
> View this message
Hi.
I have a route that carries messages of various kinds.
as:
Create the customer John Doe.
Create a basket for John Doe.
Add an item "foo" in the basket of John Doe.
Establishing the John Doe bill.
For the system to work I must follow the sequence of messages from John Doe.
if a message from Jo
>did you try attaching it to the site phase?
Thanks!
--
View this message in context:
http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5701013.html
Sent from the Camel - Users mailing list archive at Nabble.com.
i looked doclet and package notes.
the package as input needs some refactoring since now 1 input = 1 diagram.
So it means if i allow a package you'll get several diagram in a single
picture (if you want to refactor you can send a pull request ;)).
about the doclet i wonder if javadoc plugin suppo
JIRA created:
https://issues.apache.org/jira/browse/CAMEL-5269
/Bengt
2012/5/10 Claus Ibsen
> On Thu, May 10, 2012 at 12:59 PM, Bengt Rodehav wrote:
> > I think it would be a good feature to have. Our integration counterparts
> > often require that the name of the file we send to them is hard
can you try specifying a package instead of a class?
- Romain
2012/5/10 Romain Manni-Bucau
> i looked doclet and package notes.
>
> the package as input needs some refactoring since now 1 input = 1 diagram.
> So it means if i allow a package you'll get several diagram in a single
> picture (if
Hi Willem,
Dint quiet understand what you meant by this:
/"Current camel-cxfrs supports the async out of box.
Please check the code of CxfRsInvoker, it leverages the continuation to
invoke the async processors"/
Can you provide me with example or any pointers which give me more
information on t
Latest from github has not changes and in current version when you specify a
package in you get:
fr.rmannibucau.loader.spi.DiagramGeneratorRuntimeException: can't load route
class
at
fr.rmannibucau.camel.loader.CamelLoader.camelContextToDiagram(CamelLoader.java:76)
at fr.rmannibu
are you sure you got
https://github.com/rmannibucau/diagram-generator-parent/commit/f5e4636d45512c008176769a0b75b9144dbf397a
?
- Romain
2012/5/10 Nestor Urquiza
> Latest from github has not changes and in current version when you specify
> a
> package in you get:
>
>
> fr.rmannibucau.loader.
I basically run into the same problem, but do need/want to be able to specify
a validator, not just turn it off.
We have a system in which we receive ACK messages which don't comply to the
orgininal HL7 rules. We use a custumised ValidationContext to cover for
this. I would like to build a Camel
Hmm, I didn't used it until now, but from my point of view, I would *like*
an API like this one:
JettisonDataFormat jaxbObjectToJsonString = new JettisonDataFormat();
jaxbObjectToJsonString.set...
from("direct:start")
.marshall(jaxbObjectToJsonString)
.to("mock:end");
If you think this too,
I was using still the old mercurial repo but now after moving to git:
git clone https://github.com/rmannibucau/diagram-generator-parent.git
I still get the same result for the package option as I stated before:
fr.rmannibucau.loader.spi.DiagramGeneratorRuntimeException: can't load route
class
you should get some (slf4j) log just before.
- Romain
2012/5/10 Nestor Urquiza
> I was using still the old mercurial repo but now after moving to git:
> git clone https://github.com/rmannibucau/diagram-generator-parent.git
>
> I still get the same result for the package option as I stated befo
ERROR CamelLoader - can't instantiate a builder
java.lang.NullPointerException
at org.apache.xbean.finder.UrlSet.getUrls(UrlSet.java:205)
at org.apache.xbean.finder.UrlSet.(UrlSet.java:45)
at org.apache.xbean.finder.UrlSet.exclude(UrlSet.java:110)
at
fr.rmannibucau.c
On 2 May 2012 13:40, Claus Ibsen wrote:
> Hi
>
> Welcome on the ride.
>
> I suggest If you can then dive into the source code of camel-snmp and
> see if there is something wrong / problem.
I've added another patch
(https://issues.apache.org/jira/browse/CAMEL-5270) to add the address
that the SNMP
Hi,
I have a route with recipientList. When there is no consumers available on
the calculated endpoint a org.apache.camel.CamelExchangeException is thrown.
The problem is even i tried many ways, i can't find the way to catch this
exception with onException.
this.onException(Exception.
[ERROR] FATAL ERROR
[INFO]
[INFO] can't load route class
com.krfs.orchestration.camel.route
[INFO]
[INFO] Trace
fr.rmannibucau.loader.spi.DiagramGenerat
Any luck you share a project to reproduce it?
- Romain
Le 11 mai 2012 01:52, "Nestor Urquiza" a écrit :
>
> [ERROR] FATAL ERROR
> [INFO]
>
> [INFO] can't load route class
> com.krfs.orchestration.camel.route
> [INFO]
>
In fact it is generating both but I guess it keeps the same first name and
the resut is just one class. I have updated the code from the Camel in
Action book as an example. Get it in my svn:
nestor-krfs:cbr nestor$ svn ci -m "showing how package does not generate all
classes but just one despite
And in my real project I get a weird behavior when I try to use package
instead of input:
[INFO] One or more required plugin parameters are invalid/missing for
'diagram-generator:diagram'
[0] Inside the definition for plugin 'diagram-generator-maven-plugin'
specify the following:
...
VALUE
As CXF doesn't provides the async invocation client for JAXRS, current
camel-cxfrs doesn't have async producer support.
The document is updated.
On 5/10/12 10:46 PM, Claus Ibsen wrote:
On Thu, May 10, 2012 at 4:11 PM, Willem Jiang wrote:
Hi
Current camel-cxfrs supports the async out of box.
I'm working on it now :)
On Fri May 11 07:07:18 2012, Jonathan Barber wrote:
On 2 May 2012 13:40, Claus Ibsen wrote:
Hi
Welcome on the ride.
I suggest If you can then dive into the source code of camel-snmp and
see if there is something wrong / problem.
I've added another patch
(https://is
On Thu, May 10, 2012 at 9:35 PM, Arjen Duursma wrote:
> I basically run into the same problem, but do need/want to be able to specify
> a validator, not just turn it off.
>
> We have a system in which we receive ACK messages which don't comply to the
> orgininal HL7 rules. We use a custumised Val
Hi
For others reading this as well, please read the highlighted in bold
part of this page, in the _how to get help_ section
http://camel.apache.org/support
Its important for us to know what Camel version you use. There is many releases.
And please spend time beforehand checking with newer release
Hi
Yes the direct producer will block until the message is fully processed.
On Thu, May 10, 2012 at 6:12 PM, soumya_sd wrote:
> I'm looking for options for achieving this using Camel.
>
>
> 1. HTTP Client sends a request to my server.
> 2. HTTP Controller gets the request, extracts the paramete
Hi
I suggest to check the unit tests of camel-xstream, and see if there
is some samples that shows this.
And then get back to us with your findings, so others can benefit.
On Wed, May 9, 2012 at 5:33 PM, eismeraldo
wrote:
> Hi
> Im using camel version 2.9.2. with spring
> I try to unmarshal the
Hi
I am not sure people can follow what your problem is?
If you want error handling then read about Camel error handling, and
the links from this page
http://camel.apache.org/error-handling-in-camel.html
And there is also a failover load balancer
http://camel.apache.org/load-balancer.html
See i
Hi Claus,
You're right, sorry for the absence of version number (just an oversight).
First i was using 2.6.0 as i had no solution i also tried with
2.9.3-SNAPSHOT i still have this issue.
Cheers,
Arda
--
View this message in context:
http://camel.465427.n5.nabble.com/recipientList-onException-
67 matches
Mail list logo