Re: how to specify remote file name when using FTP endpoint

2012-05-10 Thread Christian Müller
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.

Separate XML tags with splitter

2012-05-10 Thread Salomon
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

Re: Separate XML tags with splitter

2012-05-10 Thread Claus Ibsen
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

Re: Help with a Karaf/Camel/Cxf/ActiveMQ setup that results in an NPE

2012-05-10 Thread emb
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

Re: Waiting for Routes to Finish

2012-05-10 Thread Alex Anderson
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

Re: how to specify remote file name when using FTP endpoint

2012-05-10 Thread qwerty5000
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

Re: Waiting for Routes to Finish

2012-05-10 Thread Claus Ibsen
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/

Re: Waiting for Routes to Finish

2012-05-10 Thread Alex Anderson
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. >>>

Re: Separate XML tags with splitter

2012-05-10 Thread Salomon
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

Re: ClassCastException using cxf:bean

2012-05-10 Thread cgiera
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

Re: how to specify remote file name when using FTP endpoint

2012-05-10 Thread Bengt Rodehav
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

Re: how to specify remote file name when using FTP endpoint

2012-05-10 Thread Claus Ibsen
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

Re: Separate XML tags with splitter

2012-05-10 Thread Marco Westermann
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

Re: Apache Camel : CXFRS Server : Need advice for Routing

2012-05-10 Thread Sergey Beryozkin
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

Re: how to specify remote file name when using FTP endpoint

2012-05-10 Thread qwerty5000
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.

BeanFactory not initialized on second test

2012-05-10 Thread James Talbut
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

Re: how to specify remote file name when using FTP endpoint

2012-05-10 Thread Bengt Rodehav
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

Re: Aries TransactionManager + OpenJPA + ActiveMQ

2012-05-10 Thread Charles Moulliard
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

How to save a File from Body to disk

2012-05-10 Thread Hilde
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}

Re: Waiting for Routes to Finish

2012-05-10 Thread Claus Ibsen
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

FTP polling seems to stop(?)

2012-05-10 Thread mikaelfj
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

Re: FTP polling seems to stop(?)

2012-05-10 Thread Babak Vahdat
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

Re: How to save a File from Body to disk

2012-05-10 Thread Hilde
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.

Re: Separate XML tags with splitter

2012-05-10 Thread Salomon
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/

Re: Apache Camel : CXFRS Server : Need advice for Routing

2012-05-10 Thread Willem Jiang
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

Re: how to specify remote file name when using FTP endpoint

2012-05-10 Thread 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 hardcoded (i e > it should always be the same name) or conform to a naming standard defined > by the receiv

Re: ClassCastException using cxf:bean

2012-05-10 Thread Willem Jiang
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

Re: CXF webservice asyn

2012-05-10 Thread Willem Jiang
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

Re: BeanFactory not initialized on second test

2012-05-10 Thread Willem Jiang
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

Re: BeanFactory not initialized on second test

2012-05-10 Thread James Talbut
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

Re: CXF webservice asyn

2012-05-10 Thread Claus Ibsen
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

Re: Delay route start

2012-05-10 Thread PhilBurress
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

Re: Delay route start

2012-05-10 Thread Claus Ibsen
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,

Re: Graceful shutdown with drain stopping

2012-05-10 Thread Thomas Johansen
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.

Load Balancing

2012-05-10 Thread Rocco Gallo Citera
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

Re: Separate XML tags with splitter

2012-05-10 Thread Claus Ibsen
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

Re: diagram generator

2012-05-10 Thread Nestor Urquiza
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

Options for achieving this in Camel running inside Tomcat or Jetty

2012-05-10 Thread soumya_sd
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

Re: diagram generator

2012-05-10 Thread 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 in context: http://camel.465427.n5.nabble.com/diagram-generator-tp4375588p5700777.html Sent from the

Re: diagram generator

2012-05-10 Thread Romain Manni-Bucau
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

How to reorder the messages customer by customer?

2012-05-10 Thread sekaijin
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

Re: diagram generator

2012-05-10 Thread Nestor Urquiza
>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.

Re: diagram generator

2012-05-10 Thread 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 you want to refactor you can send a pull request ;)). about the doclet i wonder if javadoc plugin suppo

Re: how to specify remote file name when using FTP endpoint

2012-05-10 Thread Bengt Rodehav
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

Re: diagram generator

2012-05-10 Thread Romain Manni-Bucau
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

Re: CXF webservice asyn

2012-05-10 Thread Deepthi
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

Re: diagram generator

2012-05-10 Thread Nestor Urquiza
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

Re: diagram generator

2012-05-10 Thread Romain Manni-Bucau
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.

Re: How to prevent HL7 message validation?

2012-05-10 Thread Arjen Duursma
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

Re: Configure json to use jaxb annotations

2012-05-10 Thread Christian Müller
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,

Re: diagram generator

2012-05-10 Thread 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 before: fr.rmannibucau.loader.spi.DiagramGeneratorRuntimeException: can't load route class

Re: diagram generator

2012-05-10 Thread Romain Manni-Bucau
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

Re: diagram generator

2012-05-10 Thread Nestor Urquiza
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

Re: SNMP traps - missing information in the Camel message?

2012-05-10 Thread Jonathan Barber
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

recipientList onException not catching CamelExchangeException

2012-05-10 Thread arda.aydin
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.

Re: diagram generator

2012-05-10 Thread Nestor Urquiza
[ERROR] FATAL ERROR [INFO] [INFO] can't load route class com.krfs.orchestration.camel.route [INFO] [INFO] Trace fr.rmannibucau.loader.spi.DiagramGenerat

Re: diagram generator

2012-05-10 Thread Romain Manni-Bucau
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] >

Re: diagram generator

2012-05-10 Thread Nestor Urquiza
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

Re: diagram generator

2012-05-10 Thread Nestor Urquiza
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

Re: CXF webservice asyn

2012-05-10 Thread Willem Jiang
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.

Re: SNMP traps - missing information in the Camel message?

2012-05-10 Thread Willem Jiang
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

Re: How to prevent HL7 message validation?

2012-05-10 Thread Claus Ibsen
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

Re: recipientList onException not catching CamelExchangeException

2012-05-10 Thread Claus Ibsen
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

Re: Options for achieving this in Camel running inside Tomcat or Jetty

2012-05-10 Thread Claus Ibsen
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

Re: XStream CannotResolveClassException

2012-05-10 Thread Claus Ibsen
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

Re: Load Balancing

2012-05-10 Thread Claus Ibsen
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

Re: recipientList onException not catching CamelExchangeException

2012-05-10 Thread arda.aydin
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-