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() {
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
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;
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
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
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
>
>
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()
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
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
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
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
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
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
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
14 matches
Mail list logo