You can also try upgrading the java mail JAR
On Fri, May 24, 2013 at 8:46 AM, cgiera wrote:
> Hello,
>
> hm, it is not a really big step from 14 messages to 10 ^^.
> Or does this limiting of the messages changes the behavior of the
> MailConsumer significantly?
>
> Thx for your reply.
>
> kind re
Hi all,
many thanks for your helpful responses. As I don't have to deal with headers
I'll write a custom DataFormat.
Regards,
Frank
--
View this message in context:
http://camel.465427.n5.nabble.com/Custom-component-for-weird-legacy-format-tp5733030p5733070.html
Sent from the Camel - Users ma
Nobody can help me ?
--
View this message in context:
http://camel.465427.n5.nabble.com/Sftp-component-problem-tp5733034p5733071.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Claus,
Thanks for the reply (and congratulations on the Camel in Action book - very
readable and a great intro to Camel).
Setting maxMessagesPerPoll=1 works but slows down the run hugely (from 10
seconds to around 10 minutes in my quick test).
Setting it to a higher value (e.g. 500) still work
Hi,
You probably want to use the flatten=true url parameter, otherwise the full
qualified filename (including the path) is used as a filename in file to file
communication (SFTP is a remote file in this sense...). See the documentation
of the camel file component for details.
Best regards
Step
I disagree... the javadoc for ProducerTemplate.sendBody() states "Notice:
that if the processing of the exchange failed with an Exception it is thrown
from this method as a CamelExecutionException with the caused exception
wrapped.". So if an exception is thrown during processing sendBody should
t
Hi,
I created CAMEL-6393 to describe the change proposed.
regards, aki
2013/5/17 Aki Yoshida
> Hi Claus,
> so the http component assumes always a list of string as its header value?
>
> camel-cxf seems to currently always assume a string entry (there is a
> casting code like (String)camelHeader
Hi
Study the EIPs and components again. And the difference between a direct
component vs a stub/seda (eg sync vs async) and the InOnly vs InOut.
And the send vs request methods on the producer template.
They all have an influence on what happens.
Also for testing purpose you may wanna take a l
HIclause thanks for ur information but will u please help for FTP
transfer in java or apache camel...thanks
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733085.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I am attempting to use a MockEndpoint to drive Exception testing. I have
configured the MockEndpoint as follows:
mockEndpoint.whenAnyExchangeReceived(new Processor(){
public void process(Exchange ago0) throws Exception{
System.out.println("here");
throw new
Hi ,
I am bit new with camel but i was stuck in multicast exception handling
you can follow this link
http://camel.apache.org/exception-clause.html
and I will suggest you refer your customexception class to your route where
you are doing multicast
I mean to say
call your customException
Hi everybody,
i have a general question about camel usage.
I want to read an xml source, filter out a few tags, convert that to
rss and put it into mongodb.
What works is the reading of xml and storing rss into mongodb.
Now what i cannot get a clue of is how i convert that xml to rss AND
filter o
Hi,
Am Fr, 24. Mai 2013, um 13:53, schrieb milan777:
> HIclause thanks for ur information but will u please help for FTP
> transfer in java or apache camel...thanks
The FTP/SFTP/FTPS Component is described here:
https://camel.apache.org/ftp2.html
Do you have a specific problem?
Lutz
--
Ple
Hi
The file component is intende for being used in routes, where it can work
on batches of files.
The polling consumer API you do is for a single message at a time, and
doesnt work as fast when the component is batch based.
So if you really want to move files from one dir to another from java co
I am not getting file from the ftp this is my problem and i can show u my
code also
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
public class FileCopier {
public static void main(String
Hi,
Am Fr, 24. Mai 2013, um 15:34, schrieb milan777:
> I am not getting file from the ftp this is my problem and i can show u my
> code also
I don't see anything related to Camel in your code.
Lutz
--
Please do not send me Microsoft Office/Apple iWork documents.
Send OpenDocument instead! h
This sample isn't camel code...
You're going to want to slowly go through the previous examples and
resources supplied... you can also take a look at this:
http://camel.apache.org/ftp-example.html
On Fri, May 24, 2013 at 6:34 AM, milan777 wrote:
> I am not getting file from the ftp this i
First question: Do you want to use plain Java (as the code you showed) or
Apache Camel?
For plain java you'll have to use an FTP library to do that. Have a look at
Apache common-net: http://commons.apache.org/proper/commons-net/
You cannot simply refer to an FTP location in the File("") construc
I don't actually just move the files from one folder to another - they are
consumed from file (via ConsumerTemplate) but then go to a direct route and
a whole host of other stuff happens - I just simplified the example in order
to be as clear as possible in my post.
My consumer either reads from a
Take a look at using stages for your processing with SEDA component.
http://camel.apache.org/seda.html
You can configure the threads pooling and concurrent consumers... Also,
depending on your "scaling" requirements, keep in mind to tune the
persistence store to handle your additional load.
On
Thanks to allcan anyone post the camel code instead of my plain java code
please it will be very helpful for me as well other user
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733103.html
Sent from the Camel - Users mailing list archive
See the ftp example
http://camel.apache.org/ftp-example.html
Its included in the Apache Camel 2.11 download
http://camel.apache.org/download
On Fri, May 24, 2013 at 4:04 PM, milan777 wrote:
> Thanks to allcan anyone post the camel code instead of my plain java
> code
> please it will be ve
K.. let's start with this, which works... how is your route different?
https://github.com/christian-posta/camel-sandbox/blob/master/one-off/src/test/java/posta/TestMockExceptions.java
On Fri, May 24, 2013 at 5:45 AM, dancerjohn wrote:
> I am attempting to use a MockEndpoint to drive Exception
We are using java mail 1.4.4. I think this is pretty new although ~ 1 month
ago java mail 1.5 was released.
Short update from our testing/analyzing:
It seems the problem occures when mails are arriving on the mailbox while
MailConsumer is working.
I have created a test scenario where I loaded ~3
Download the latest release. (A direct link:
http://apache.belnet.be/camel/apache-camel/2.11.0/apache-camel-2.11.0.zip
Open the zip file and go to the ftp examle.
It's right there. You just have to do the effort to download it, and open it.
We gave you everything to get you started. It's up to you
isben- i am looking for ftp code in apache camel so please is there anyone
post the ftp camel code
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733108.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Thanksfor ur guidence
--
View this message in context:
http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733116.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Milan,
it is also always a good hint looking at the test cases of a component (e.g.
FTP component).
Have fun,
- Christoph
On May 24, 2013, at 4:29 PM, milan777 wrote:
> Thanksfor ur guidence
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-conf
Hi Christian,
first of all, it would be really helpful if you could provide some more
information.
Secondly, as far as I can see from the sample code, you are directly writing to
System out "here". However, I do not see any expected behavior for your
RuntimeException. Are you catching this exc
Hi Sven,
one option would be implementing a TypeConverter that takes the original
message and transforms it into the output format.
Maybe this link might help you to resolve your transformation:
http://camel.apache.org/type-converter.html
I've done similar things in the past by using some XPat
Thanks Christoph :)
I had 2 seconds to hack it up before i boarded a plane.
If you run it, exception will bubble up. Was looking for some dialog with
dancerjohn about his usecase and how his might be different and where the
exception might be caught and/or subsumed.
On Fri, May 24, 2013 at 7:4
Hi,
can you try to set the exception on the exchange instead of throwing it?
If that's the case then I think there might a bug in SedaConsumer which
propagates back exceptions on the exchange but doesn't propagate thrown
exceptions.
Bilgin
On 24 May 2013 12:31, dancerjohn wrote:
>
> I disagre
There is no bug on the seda consumer. He sends a InOnly message.
So the consumer can only "handle" the exception itself by logging it.
If he does a InOut then the producer template will wait for the reply
message, and because it failed with the exception, the reply message is the
exception.
On F
Ah, I see. It is the a-sync nature of stub that causes the difference. I will
look into how I can use stub and still get the exception thrown from the
produces (will look into receive).
Thanks
--
View this message in context:
http://camel.465427.n5.nabble.com/Why-doesn-t-the-stub-component-thr
This is what my test looks like
@EndpointInject(uri="mock:coreEndpoint", context="coreContext")
MockEndpoint mockEndpoint;
@Produce(uri="direct:jmsInputQueue")
ProducerTemplate producerTemplate;
@Test
public void test(){
mockEndpoint.whenAnyExchangeReceived(new Processor(){
public v
Thank you! I do use the exception handling in my route but the problem is
when I use stoponexception, On an exception the execution stops and throws
'parallel processing exception' instead of custom exception. May be that's
the behaviour. Any thoughts on this?
--
View this message in context:
h
Hi,
I tried with this header but still it is not working.
Thanks and Regards,
Param
--
View this message in context:
http://camel.465427.n5.nabble.com/jetty-http-dynamic-uri-in-consumer-from-tp5732691p5733131.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I did read the documentation, many times :)
It was not camel that was wrong - it was my unit test.
>From what I can tell, if you set BOTH a completionSize and a
completionTimeout it will use both: e.g. if you set it to
completionSize="500" completionTimeout="500" for example, it will stop when
Willem.Jiang wrote
> It looks like you are deploying the camel route into OSGi container?
> The warning means there are more than on javax.xml.ws.WebServiceProvider
> classes are loaded by deferent Classloader.
Hi,
still having
/WARNUNG: The javax.xml.ws.WebServiceProvider annotation was alrea
Hi Christoph,
thank you for your answer. Looking at the documentation i only see
examples for pojos. Does that mean i have to use pojos as data objects
and cannot just use a convert function from a bean to remove the
unneeded xml elements?
If you had a short example i would really appreciate this
Hello guys
the following XML DSL prints:
2003-05-24 16:06:35,496 INFO [Im Logging WHEN]
2003-05-24 16:06:35,496 INFO [Im Logging OTHERWISE]
${body.list}
Hmm, I got the jist of it, but how would one add a SSL Certificate (client)
to an Exchange?
Let's say I'm going to https://mysite.com/foo The server I'm sending from
already has the server certificate, which is easy to do, but if I wanted to
attach a x509 certificate as a client cert, how would I
We have developed a workflow application using Camel for loading genomic
results into Oracle database. The application is deployed in WebLogic and
is working well except one issue: all log messages from Camel package are
all written to welogic system console log file and we could not figure out
h
Hello,
I have exposed a service using the camel Jetty component. Internally, this
Jetty component talks to three other camel http routes in a sequential
manner. The final response of the Jetty component is build from the
responses of the three http components. Apparently, at very high loads,
resul
will anyone please find error in this program!!! please i am getting erroe
like could not connect to ftp...i am passing user name and passwords
though...my code is
-FTP client
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOT
Hi
Yes its very clear in the docs at
http://camel.apache.org/aggregator2
> Notice that all the completion ways are per correlation key. And you can
> combine them in any way you like. It's basically the first which triggers
> that wins. So you can use a completion size together with a completio
46 matches
Mail list logo