Hello Chirtsian,

Regarding 2). Honestly, personally I didn't try to configure the proxy to
communicate with the Azure services. However, I have done some research and
it looks like you will need first to build your own HttpClient with the
proxy settings as stated here
<https://github.com/Azure/azure-sdk-for-java/issues/5117#issuecomment-533672290>.
Once you have done that, you will need to build your own BlobServiceClient
with your custom HttpClient and then use it in the endpoint parameters
<https://camel.apache.org/components/3.4.x/azure-storage-blob-component.html#_query_parameters_19_parameters>
.

Regards,
Omar


On Tue, Feb 23, 2021 at 11:27 AM <christian.muel...@spar-ics.com> wrote:

> Hi,
> Thx for the quick response.
> ad.1) will do that thx
> ad.2)
> it is just a simple http/https proxy. We require a proxy to communicate
> with the outside world.
> Tried to set the options in the jvm via -Dhttps.proxyHost/
> -Dhttps.proxyPort without any luck.
> Is it possible that the component just ignores the jvm options? Seems
> unlikely...
>
> Regards Christian
>
> -----Original Message-----
> From: Claus Ibsen <claus.ib...@gmail.com>
> Sent: Dienstag, 23. Februar 2021 06:40
> To: users@camel.apache.org
> Subject: {EXT} Re: Bug camel-azure-storage-blob 3.7.0
>
> Hi Christian
>
> Welcome to the Camel community.
>
> Ad 1)
> Yes that seems like a little bug. You are welcome to create a JIRA ticket.
>
> You can try as a workaround in a custom processor before calling the
> azure, to convert the message body to a FileInputStream.
>
> Ad 2)
> What kind of proxy would that be? I have not heard of any cloud services
> that go via a proxy before.
>
>
>
>
> On Mon, Feb 22, 2021 at 7:10 PM <christian.muel...@spar-ics.com> wrote:
>
> > Hi Guys,
> >
> > First of all thanks for your great work.
> > We are having a great time with camel and are looking forward to
> > contribute when we are more experienced with the framework!
> >
> > It would be cool if someone can help us with our current issue:
> > We are currently trying to integrate azure cloud by using the
> > *camel-azure-storage-blob* component
> >
> > <dependency>
> >     <groupId>org.apache.camel.springboot</groupId>
> >     <artifactId>camel-azure-storage-blob-starter</artifactId>
> >
> >     <version>3.7.0</version>
> > </dependency>
> >
> >
> > 1.) Everything works fine until we activate *stream caching* and camel
> > starts to spool the payload. In this case we get the following error:
> >
> > Caused by: java.lang.IllegalArgumentException: InputStream of body
> > exchange does not support mark/rest operations.
> >
> >             at
> > org.apache.camel.component.azure.storage.blob.BlobStreamAndLength.crea
> > teBlobStreamAndLengthFromExchangeBody(BlobStreamAndLength.java:52)
> >
> >             at
> > org.apache.camel.component.azure.storage.blob.operations.BlobOperation
> > s.uploadBlockBlob(BlobOperations.java:181)
> >
> > I have looked into the source and think that the component does not
> > load the stream properly from the FileInputStreamCache object. Am I
> > missing something or is this actually a bug (missing feature) in the
> component?
> >
> > 2.) Additionally I would like to force the component to communicate
> > over a proxy with the azure cloud. However I did not find anything
> > regarding setting a proxy in camel-azure-storage-blob component?
> > Not possible? Does there exist a workaround.
> >
> > Regards Christian
> >
> >
> >
> > <https://www.spar-ics.com/>
> >
> >
> > *Dipl. Ing. Christian* *Müller*
> > Software Engineer
> > Business Automation & Integration
> >
> > *Mobile:*
> >
> > +43 664 88748100
> >
> > *E-Mail:*
> >
> > christian.muel...@spar-ics.com
> >
> >
> >
> >
> > *SPAR Business Services GmbH *Information & Communication Services
> > Europastrasse 3, 5015 Salzburg, Austria
> >
> >
> >
> >
> >
> > Sollten Sie diese E-Mail unbeabsichtigt bzw. irrtümlich erhalten
> > haben, so weisen wir Sie darauf hin, dass gemäß § 93 Abs 4 TKG der
> > Inhalt sowie die Tatsache des Empfangs dieser E-Mail weder
> > aufgezeichnet noch verwertet oder Unbefugten mitgeteilt werden dürfen.
> > Wir ersuchen Sie, die Nachricht von Ihrem System zu löschen und sich mit
> uns in Verbindung zu setzen.
> >
> > If you have received this email accidentally or in error, we point out
> > that, in accordance with § 93 para. 4 TKG (Telecommunications Act),
> > the contents of this email and the fact of its receipt must not be
> > recorded, exploited or communicated to unauthorized persons. We ask
> > you to delete the message from your system and to contact us.
> >
> >
> >
>
>
> --
> Claus Ibsen
> -----------------
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2
>

Reply via email to