How to transfer folder to another ftp server.
ftp
|__20140619
|__MF
|__GT
|__OT
|__NT
I want to transfer the folder '20140619' to another FTP location except the
'MF' folder.
How is it possible??
--
View this message in context:
http://camel.465427.
Hi
I missed one more thing when I kept Trace in log4j.xml I could see exception
as below. and could not process the web request. but when I change to debug
it could process request.
Chosen method to invoke: public final javax.ws.rs.core.Response
com.sun.proxy.$Proxy38.getNextBatch(java.lang.String
I'm trying to use the camel-jasypt:2.10.0 component to decrypt the
properties defined my blueprint xml but the documentation at
http://camel.apache.org/jasypt.html only has Spring XML example and I could
not figure out a way to do it with Blueprint DSL.
My goal is to decrypt the properties defined
All i want is to call a Bean class, with a header and body , and check the
body if its correct when it returns.
Her is the bean i try to call:
public Document enrich(@Headers Map requestHeaders, Document doc)
throws TransformerException {
// There is some more code here...
}
This is my t
As ca camel route is defined by endpoints (
http://camel.apache.org/endpoint.html) where we send or receive messages =
exchanges, you should define in your test case some mock endpoints (
http://camel.apache.org/testing.html) which is not the case in your example
On Thu, Jun 19, 2014 at 10:12 AM,
June 2014 12:40 PM
Subject: How to transfer folder to another ftp server.
How to transfer folder to another ftp server.
ftp
|__20140619
|__MF
|__GT
|__OT
|__NT
I want to transfer the folder '20140619' to another FTP location except the
'MF' folder.
I'm trying to consume web service using setHeader component. *My main goal
here is not to write any java code and directly call the method with
arguments.* As well I'm very much new to camel tools. So I would really
expect your suggestion more. Please help me out in understanding and
executing my t
Hi Willem Jiang
Thanks for your response bellow I mentioned my camel route.
java.net.UnknownHostException
true
The last one should be OK.
How did you define the @MockEndpoints?
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On June 18, 2014 at 4:27:36 PM, ozzyoli (ozzy...@gm
I tryed it this way, to mock my endpoint, but get a nullpointer exception.
Do i have to set up something somewhere else or ?
public class FilterTest extends CamelTestSupport {
String header =
"abc20";
@EndpointInject(uri = "mock:result")
protected MockEndpoint resultEndp
@EndpointInject does not support wildcards. So you would need to
specify the url 100%
On Thu, Jun 19, 2014 at 10:50 AM, Willem Jiang wrote:
> The last one should be OK.
> How did you define the @MockEndpoints?
>
> --
> Willem Jiang
>
> Red Hat, Inc.
> Web: http://www.redhat.com
> Blog: http://wil
Also @EndpointInject is injected before the advice with AFAIR so this
wont work. For that to work we would need to inject some proxy instead
and delegate to the actual endpoint on-demand, which is harder. And
likely could cause side-effects / issues as a Proxy is not "the real
thing", for people us
Hi Claus Ibsen
I think I kept my point wrongly . Here I don't know the count how many files
I will receive. In that scenario also can I aggregate.
--
View this message in context:
http://camel.465427.n5.nabble.com/File-aggregation-tp5752538p5752570.html
Sent from the Camel - Users mailing list
Hi
See the option completionFromBatchConsumer
On Thu, Jun 19, 2014 at 11:12 AM, sakchakravarthi
wrote:
> Hi Claus Ibsen
> I think I kept my point wrongly . Here I don't know the count how many files
> I will receive. In that scenario also can I aggregate.
>
>
>
> --
> View this message in contex
Hello,
I use camel to consume files from a server via SFTP with a application running
on Apache Tomcat. Files remains on the server for archiving reasons. So I set
noop=true and Camel set idempotent=true as well, to avoid consuming the same
files over and over again.
Here are the versions that
Somewhere along the line, you’ll need a clientId for topic subscriptions. I see
one set for your camel connection factory and I suspect you have a client id
for your non-camel subscriber on your Spring DefaultMessageListenerContainer.
Make sure this is not the same client id as the one you put o
Hi Andreas A
I have a similar situation i can get n number of file from a file location
so could you please help me in giving example.
--
View this message in context:
http://camel.465427.n5.nabble.com/Aggregator-completionFromBatchConsumer-fallback-max-messages-tp2856427p5752578.html
Sent fro
Hi Chirag,
Thank you for your reply.
Yes I want to create the same folder structure on destination server.
How do I exclude some sub-folders??
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-transfer-folder-to-another-ftp-server-tp5752553p5752573.html
Sent from the
Now i tried this way
public class FilterTest extends CamelTestSupport {
// @EndpointInject(uri = "mock:result")
protected MockEndpoint resultEndpoint;
// @Produce(uri = "direct:start")
protected ProducerTemplate template;
@Testpublic void testSe
Green light but i dosent work ?
I Want to go thrue my bean AddIpBean, and give som input and get some
output.
Its not running in a server, i want to test this offline, is this possible ?
I dont go thrue my AddIpBean, what is wrong here ?
public class FilterTest extends CamelTestSupport {
Hi Thanks for your resp
Could you please provide me with example which explains aggregation with
option option completionFromBatchConsumer
--
View this message in context:
http://camel.465427.n5.nabble.com/File-aggregation-tp5752538p5752579.html
Sent from the Camel - Users mailing list archive
Hi
I have a pojo in route I am trying to do instance of check using is in
simple tag but it could not get checked properly. Pojo has a abstract Super
class. My condition looks like..
${body} is org.my.SpecificClass
--
View this message in context:
http://camel.465427.n5.nabble.com/Checking-i
Thanks for this tip. I did notice in some cases that behavior of the route
improved if I explicitly set a transaction manager, though I wasn't sure
why that was the case.
As for clientID, I do not have one set on the older (non-Camel)
configuration. I'll try setting one and seeing if that helps.
I have an application that consists of many modules deployed in several JBoss
instances. Those modules broadcast their version numbers via JMS to each
other.
It works in the following way. Each module periodically broadcasts its
versions like this:
camelTemplate.asyncSendBody(moduleVersionsOutput
Hi,
I'm trying to unmarshal from CSV file to POJO using Bindy on Camel. As I
need to unmarshal multiple csv files to multiple java objects , I have
created separated classes corresponding to each CSV and annotated the java
classes. When a single class is annotated, Bindy works fine but as soon as
remove these lines from testSendMatchingMessage(), this is handled by
CamelTestSupport automatically and causing duplicate "direct:start" routes
context.addRoutes(createRouteBuilder());
context.start();
Frankiboy wrote
> What is wrong here
>
> Green test, but notning happen
Is it possible to mock the first and second sql endpoints using a sort of
regular expression? The following seems to intercept all my "sql" endpoints.
interceptSendToEndpoint("sql:*")
As does this:
interceptSendToEndpoint("sql:.*")
I'd like to mock the first one and the 2nd one separately. The
AFAIR bindy requires you use different package names for different classes.
On Thu, Jun 19, 2014 at 7:21 PM, sprasan wrote:
> Hi,
> I'm trying to unmarshal from CSV file to POJO using Bindy on Camel. As I
> need to unmarshal multiple csv files to multiple java objects , I have
> created separate
What is wrong here
Green test, but notning happens i dont get into my AddIpBean with this
signature.
package dk.bankconnect.hub.unittest;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.ap
Hi
Read about the various filters you can use to include/exclude
files/directories. See the docs for the ftp and file component. Notice
that the ftp component extends the file component so almost all the
file options works for the ftp too.
On Thu, Jun 19, 2014 at 11:41 AM, skasish wrote:
> Hi Ch
There's also the resequencer pattern.
http://camel.apache.org/resequencer.html
On 19 June 2014 01:34, Darwish wrote:
> Thanks Claus , this is very helpful and rock!
>
>
>
> -
> Othman Darwish
> ProgressSoft Corp.
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Co
Hi,
Regarding the Jetty components documentation (looking at the 2.13.1 version)
I was initially under the impression that I could configure the max/min
Threads of the JettyHttpComponent using a URI on a 'from' clause. eg:
from("jetty:http://host:port/path?minThreads=20&maxThreads=200";).to()
W
Got the problem.
The issue was actually with HDFSConsumer-FTPProducer route. HDFS consumer
creates a .opened file before reading and FTP distribution was failing,due to
which .opened files remains in the HDFS directory. And these files are not
picked once the distribution resumes.
Now I can t
I found a solution:
set the id in the property-placeholder, use JasyptPropertiesParser and
define a PropertiesComponent location with blueprint:
As an enhancement for future versions, I would suggest that instances of
PropertiesParser could be retrieved from the registry the sam
I have allerady tried this, i got green ligth but newer go into my AddIpBean.
Its like the Route newer startsup , thats why i tried.
context.addRoutes(createRouteBuilder());
context.start();
--
View this message in context:
http://camel.465427.n5.nabble.com/Green-test-but-my-RouteBuilder-do
I have to setup camel to process data files where the first line of the file
is the metadata and then it follows with millions of lines of actual data.
The metadata dictates how the data is to be processed. What I am looking for
is something like this:
Read first line (metadata) and populate a bea
the issue is also with your template/mock setup...you are mixing concepts a
bit...
remove the declarations outside of the method and just do something like
this...
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedBodiesReceived("expected result");
template
37 matches
Mail list logo