[Solved] XML file contains filename to be moved (with itself).. what packages should I use?

2018-12-13 Thread John F. Berry
Thank you Claus for your help..I got it running!  package org.mainegeneral.camel; import org.apache.camel.Processor; import org.apache.camel.Exchange; import org.apache.camel.builder.RouteBuilder; public class MyRouteBuilder extends RouteBuilder {     public void configure() {    

Re: XML file contains filename to be moved (with itself).. what packages should I use?

2018-12-13 Thread John F. Berry
So I execute and all I get is this... it just sits here: camel.MainApp.main()] FileEndpoint   INFO  Endpoint is configured with noop=true so forcing endpoint to be idempotent as well camel.MainApp.main()] FileEndpoint   INFO  Using default memory based idempotent

Re: XML file contains filename to be moved (with itself).. what packages should I use?

2018-12-13 Thread John F. Berry
OK.. I currently have it configured to read in the XML, pull the contained second filename, log it, but send it to a bean for it to process both file moves.  When I execute.. I don't even get the first log statements package org.mainegeneral.camel; import org.apache.camel.Processor;

Re: XML file contains filename to be moved (with itself).. what packages should I use?

2018-12-13 Thread Claus Ibsen
Hi If you in the first route just solves to move files to another folder, when you have both of them (eg the pairs you talked a bit about). The 2nd route can then process these files, knowing that both of them are available. Camel does have support for "done files" but they are based on a

Re: XML file contains filename to be moved (with itself).. what packages should I use?

2018-12-13 Thread John F. Berry
Yes.. this was my thinking, but with either scenario, I need to comingle exchanges to know what the first route is reading to make the decision in the second route.. In the previous e-mail you suggested I can extract the xpath in another java instance outside the route.. but I need that to

Re: XML file contains filename to be moved (with itself).. what packages should I use?

2018-12-13 Thread Claus Ibsen
Hi An alternative is maybe to use 2 routes, where the first route checks if that 2nd file exists with a and then move the files to another folder, where the 2nd route pickup and process that file, knowing that the other file exists. On Thu, Dec 13, 2018 at 3:20 PM Claus Ibsen wrote: > > Hi > >

Re: XML file contains filename to be moved (with itself).. what packages should I use?

2018-12-13 Thread Claus Ibsen
Hi You can use a bit of Java code to read the file content into memory, and then use xpath to extract that other file name. Camel has some helper APIs for that in IOHelper#loadTexxt and XPathBuilder. Here is some snippet from an unit test @Test public void testNotUsingExchangeResultType()

Re: XML file contains filename to be moved (with itself).. what packages should I use?

2018-12-13 Thread John F. Berry
Thank you Claus.. it's great to hear from you again.. I did see an example close to this on stackoverflow.. someone referenced a bean as a filter to check for an extra file to exist, but in that example the extra file's name that needed to exist was static.The "chicken or the egg" question

Re: camel-websocket configure maxThreads

2018-12-13 Thread Bradford Fisher
Will do. Thank you for your time! On Thu, Dec 13, 2018, 6:14 AM Claus Ibsen wrote: > Hi > > Try to ask on Jetty to see if there is maybe some limitations there. I > am not sure. > > On Thu, Dec 13, 2018 at 12:12 PM Bradford Fisher > wrote: > > > > I considered the possibility that maxThreads

Re: camel-websocket configure maxThreads

2018-12-13 Thread Claus Ibsen
Hi Try to ask on Jetty to see if there is maybe some limitations there. I am not sure. On Thu, Dec 13, 2018 at 12:12 PM Bradford Fisher wrote: > > I considered the possibility that maxThreads may have been set too high and > tried setting it to the value 2. The same error was generated. This is

Re: camel-websocket configure maxThreads

2018-12-13 Thread Bradford Fisher
I considered the possibility that maxThreads may have been set too high and tried setting it to the value 2. The same error was generated. This is also the same error that was being generated before I figured out how to treat the minimum and maximum thread values. On Thu, Dec 13, 2018, 6:02 AM

Re: camel-websocket configure maxThreads

2018-12-13 Thread Claus Ibsen
Hi Does the error mean that you have a too high value for max? eg maybe 4 is not possible with 1 core only. On Thu, Dec 13, 2018 at 10:26 AM Bradford Fisher wrote: > > Hey Claus, > > Thanks for responding so quickly! I did actually stumble upon the Component > configuration when reading through

JMS to CXF route

2018-12-13 Thread Joe Johnston
Hi, Inexperienced camel user here, I'm trying to connect a JMS queue to a CXF endpoint. My wsdl has the following security policy on it: http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient "> Here is a condensed

Re: camel-websocket configure maxThreads

2018-12-13 Thread Bradford Fisher
Hey Claus, Thanks for responding so quickly! I did actually stumble upon the Component configuration when reading through the Camel Spring documentation. I've verified that the xml Component configuration works when running in a virtual machine (virtualbox-5.2.22 / centos-7) configured with more