Re: Problem with camel-aws S3 when multiPartUpload is set to true

2018-01-05 Thread Artur Jablonski
Try setting region on your AmazonS3Client bean. On Fri, Jan 5, 2018 at 3:19 AM, kretin wrote: > I created a simple camel route to poll for files in a local directory and > upload them to a Ceph (S3) server at my University. I am using apache camel > 2.20.0 with the camel-aws S3 component, when I

Re: v2.20.1 bug or a feature?

2017-12-29 Thread Artur Jablonski
Hi, Yes, you're right. The body is under the 'Out' message on the exchange when the template.request returns. I guess, what confused me is that template.requestBody() behaves in a different way. Thanks for your explanation. Best, Artur On Thu, Dec 28, 2017 at 8:06 AM, Siano,

v2.20.1 bug or a feature?

2017-12-27 Thread Artur Jablonski
x27;s the 'new' value without the dummy processor. The thing is that I need to get out some headers from response, so I need Exchange object and not just the body. Best, Artur

Re: Using Seda component for

2017-12-26 Thread Artur Jablonski
and one because of threadpool) Best, Artur On Tue, Dec 26, 2017 at 3:21 PM, Mohammed Hany wrote: > Hi, > > Can I use the Seda endpoint in a synchronous request-reply pattern? It is > described here http://camel.apache.org/async.html. > > My route is simply: > from (mina2) >

Reactive streams with Camel, knowing when the flow completes (normally or with error)

2017-12-26 Thread Artur Jablonski
t if I want to wait/be notified that the exchange reached the end of the reactive stream and all went good or if somewhere on the way there has been an error? Is that possible? Where do I look? Disclaimer: I am new to reactive streams. Best, Artur PS: Thanks Claus and Jonathan for the book. It's awesome!

Re: Camel [2.19.3] + SpringBoot [1.5.6] fails executing two JUnit tests that succeed when run individually

2017-11-16 Thread Artur Jablonski
.4 which could > potentially also have the fix. > > On Wed, Nov 15, 2017 at 4:39 PM, Artur Jablonski > wrote: > > Sweet lord! This must be the fastest response ever... and yes indeed it > > works with 2.20.1. > > > > Thank you Claus > > > > Best, >

Re: Camel [2.19.3] + SpringBoot [1.5.6] fails executing two JUnit tests that succeed when run individually

2017-11-15 Thread Artur Jablonski
Sweet lord! This must be the fastest response ever... and yes indeed it works with 2.20.1. Thank you Claus Best, Artur On Wed, Nov 15, 2017 at 4:09 PM, Claus Ibsen wrote: > Hi > > I think we fixed something related to that, try with camel 2.20.1. > Or refactor your test classes

Camel [2.19.3] + SpringBoot [1.5.6] fails executing two JUnit tests that succeed when run individually

2017-11-15 Thread Artur Jablonski
the behaviour https://gist.github.com/anonymous/626cf26197dd5a05569d4d306870a22e What am I missing? Best, Artur

Re: aws-s3, get a single object

2017-07-05 Thread Artur Jablonski
hat a sane approach or is it a better way, cleaner, nicer, way more awesome way. Thanks Artur On Tue, Jul 4, 2017 at 5:14 PM, Artur Jablonski wrote: > Right, > So I managed to get that working, though I am not sure if that's the > proper way of doing this or more of a hack. >

Re: aws-s3, get a single object

2017-07-04 Thread Artur Jablonski
ithin the same poll which is what is happening if I return 'true' from the rollback() method. Is there a better way of doing this? This seems like a very common use case to me, perhaps this should be considered as a configuration of pollEnrich() or some other involved components here.

Re: aws-s3, get a single object

2017-06-22 Thread Artur Jablonski
I will try that, thank you for the hint! On Wed, Jun 21, 2017 at 5:40 PM, Taariq Levack wrote: > Then you can try the custom pollStrategy. > > > On 21 Jun 2017 10:57, "Artur Jablonski" wrote: > > > Hello! > > > > Thanks for the hint > >

Re: aws-s3, get a single object

2017-06-21 Thread Artur Jablonski
ception. I looked here http://camel.apache.org/polling-consumer.html and was looking at backoffErrorThreshold, backoffIdleThreshold and backoffMultiplier as the only properties that mention error handling, but I guess they're not for what I want. Am i missing something? Cheers Artur On Wed, Jun 21, 2017

Re: aws-s3, get a single object

2017-06-20 Thread Artur Jablonski
Right, that almost works. Now the problem I have is that when a file I ask for doesn't exist the consumer seems to be polling for it indefinitely. Is there a way of saying: hey polling consumer, try n times and then give up. Throw an error or return null. Don't insist, please. Cheers

Re: aws-s3, get a single object

2017-06-20 Thread Artur Jablonski
eleteAfterRead=false&fileName=${in.header.CamelAwsS3Key}") .convertBodyTo(byte[].class) .to("bean:unmarshall") I can now poke the route and set the CamelAWSS3Key header to the file I want. Cheerio! Artur On Mon, Jun 19, 2017 at 10:43

aws-s3, get a single object

2017-06-19 Thread Artur Jablonski
Hello, I am trying to get a single object from S3 via Camel and I am not sure how to do this. It seems that the producer endpoint can only upload to S3 and the consumer endpoint can poll a bucket, but how can express a use case of retrieving a single S3 object when I know it's key? Best Artur

Re: Camel + Spring + Spring Boot, waiting for the routes to start

2017-04-11 Thread Artur Jablonski
;started'ok, can do that, but perhaps it's not the most elegant solution. Any reason why Camel cannot be fully up and running before Spring? Cheerio Artur On Tue, Apr 11, 2017 at 3:34 PM, Claus Ibsen wrote: > Dont use the event listener to do code that may block > @Event

Re: Curious routing case

2017-04-11 Thread Artur Jablonski
of complexity of the processor. I have no better ideas anyway, so I will give it a go On Tue, Apr 11, 2017 at 10:45 AM, Artur Jablonski wrote: > Hello, > > I don't think this route definition is fitting my use case, though I > learnt a thing or two about the interesting patter

Re: Camel + Spring + Spring Boot, waiting for the routes to start

2017-04-11 Thread Artur Jablonski
@Test public void sendMessage() { template.sendBody(attachment); } } so... what's the deal? If firing a message is a part of my application logic... what's the recommended way of handling this? Cheerio Artur On Tue, Apr 11, 2017 at 1:30 PM, Artur Jablonski wrote:

Camel + Spring + Spring Boot, waiting for the routes to start

2017-04-11 Thread Artur Jablonski
Hello, I have the Camel + Spring + SpringBoot combo working I have my RouteBilder Spring Component that's being pickup up and started during Spring startup. The route starts fine as I can see SpringCamelContext output in the logs. What I am trying to do is to send a message to direct endpoint u

Re: Curious routing case

2017-04-11 Thread Artur Jablonski
irect:a").multicast().parallelProcessing().to("direct:x", "direct:y", "direct:z"); But here the x,y,z endpoints are hardcoded. I could write up some custom multicast I suppose to search the routes in CamelContext.. not sure. Thanks Artur On Mon, Apr 3, 2017 at 1:

Re: Curious routing case

2017-04-03 Thread Artur Jablonski
Hi Zoran, Thank you for such detailed response. This looks very promising. i will need to get my head around the aggregator pattern. For this week I will be busy with other tasks, but I will get back to it as soon as I can to see if I can get Camel work for the use case. Cheerio Artur On Mon

Re: Curious routing case

2017-04-01 Thread Artur Jablonski
rocessed before in which case the processor for the group should already exist... On 31 Mar 2017 7:58 p.m., "Zoran Regvart" wrote: > Hi Artur, > have a look at Camel EIP page[1], what you describe sounds to me like > Resequencer and Content based router patterns, > >

Re: Curious routing case

2017-03-31 Thread Artur Jablonski
use ActiveMQ Message Groups for this http://activemq.apache.org/message-groups.html <http://activemq.apache.org/ message-groups.html> > On Mar 31, 2017, at 9:08 AM, Artur Jablonski wrote: > > Hello. > > I wonder if someone could push me in the right direction trying to ex

Curious routing case

2017-03-31 Thread Artur Jablonski
namically. If a message comes belonging to a group that doesn't have it's handling route, then i could create it (is that even possible??) Then if there's no messages coming for a given group in some time I could remove the route for the group to cleanup (is that possible?) New to Camel Thx! Artur

Re: S3 MultiPart upload for InputStream

2017-03-29 Thread Artur
l the info and links. Super helpful. Best, Artur On 29 Mar 2017 6:57 p.m., "Zoran Regvart-2 [via Camel]" < ml-node+s465427n5796703...@n5.nabble.com> wrote: > Hi Artur, > I don't think that the implementation will load the whole file in > memory, looking at CAME

S3 MultiPart upload for InputStream

2017-03-29 Thread Artur
rticular reason? Thanks Artur -- View this message in context: http://camel.465427.n5.nabble.com/S3-MultiPart-upload-for-InputStream-tp5796702.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Configuring hibernate with blueprint in karaf

2014-11-06 Thread Artur Chyży
Hibernate 4.0.1 is not Osgified (No Osgi manifest entries in MANIFEST.MF). Future versions like 4.3.5 are osgified. Just use higher version for osgi, check if someone did not osgify it already (like servicemix team which osgifies some libraries), or use 'wrap:mvn:org.hibernate/hibernate-entityman