You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Penagos Jaime <Ja...@ub.uni-muenchen.de> on 2021/08/04 11:21:51 UTC
OAI-PMH Component and Simple Language support
Hi everyone,
I am currently testing the OAI-PMH component with Camel 3.11.x, the component works as intended, but it doesnt let me use Simple Language in the Producer / Consumer.
I want to load an ID from the body of a file, and after some basic processing, use this information as the identifier, but when I start the routes, it just shows in the URL
?verb=GetRecord&identifier=exchangeProperty%7BmyId%7D
I've tried using ${exchangeProperty.myId} or the getProperty() builder, but nothing seems to work...
Is there a workaround you could recommend to me or something I am missing?
Thank you so much fort he insights!
Best regards
--
Jaime Penagos
Ludwig-Maximilians-Universität
Universitätsbibliothek
Abteilung Informationstechnologie
Geschwister-Scholl-Platz 1, 80539 München
Tel.: +49 89 2180 5747
E-Mail: jaime.penagos@ub.uni-muenchen.de<ma...@ub.uni-muenchen.de>
Re: OAI-PMH Component and Simple Language support
Posted by Andrea Cosentino <an...@yahoo.com.INVALID>.
Can you please show the full route? To use the simple language you need to use toD and not to.
--
Andrea Cosentino
----------------------------------
Apache Camel PMC Chair
Apache Karaf Committer
Apache Servicemix PMC Member
Email: ancosen1985@yahoo.com
Twitter: @oscerd2
Github: oscerd
On Wednesday, August 4, 2021, 01:22:12 PM GMT+2, Penagos Jaime <ja...@ub.uni-muenchen.de> wrote:
Hi everyone,
I am currently testing the OAI-PMH component with Camel 3.11.x, the component works as intended, but it doesnt let me use Simple Language in the Producer / Consumer.
I want to load an ID from the body of a file, and after some basic processing, use this information as the identifier, but when I start the routes, it just shows in the URL
?verb=GetRecord&identifier=exchangeProperty%7BmyId%7D
I've tried using ${exchangeProperty.myId} or the getProperty() builder, but nothing seems to work...
Is there a workaround you could recommend to me or something I am missing?
Thank you so much fort he insights!
Best regards
--
Jaime Penagos
Ludwig-Maximilians-Universität
Universitätsbibliothek
Abteilung Informationstechnologie
Geschwister-Scholl-Platz 1, 80539 München
Tel.: +49 89 2180 5747
E-Mail: jaime.penagos@ub.uni-muenchen.de<ma...@ub.uni-muenchen.de>
AW: OAI-PMH Component and Simple Language support
Posted by Penagos Jaime <Ja...@ub.uni-muenchen.de>.
Wow, nevermind.
With toD worked as expected.
Was that one of the changes in Camel 3?
Thanks for all the quick help!
Best regards,
Jaime Penagos
-----Ursprüngliche Nachricht-----
Von: Penagos Jaime <Ja...@ub.uni-muenchen.de>
Gesendet: Mittwoch, 4. August 2021 13:29
An: users@camel.apache.org
Betreff: AW: OAI-PMH Component and Simple Language support
Oh, I havent used the toD yet. The full route looks like this
from("direct:fetch")
.to("oaipmh:URL"
+ "?"
+ "verb=GetRecord"
+ "&"
+ "onlyFirst=true"
+ "&"
+ "repeatCount=0"
+ "&"
+ "identifier="
+ simple("${exchangeProperty.myId}")
+ "&"
+ "metadataPrefix=datacite"
)
.log("${body}");
Will check the couple things you recommended. Thanks!
-----Ursprüngliche Nachricht-----
Von: Claus Ibsen <cl...@gmail.com>
Gesendet: Mittwoch, 4. August 2021 13:25
An: users@camel.apache.org
Betreff: Re: OAI-PMH Component and Simple Language support
Hi
See the toD and content enricher eip patterns
On Wed, Aug 4, 2021 at 1:22 PM Penagos Jaime <Ja...@ub.uni-muenchen.de> wrote:
>
> Hi everyone,
>
> I am currently testing the OAI-PMH component with Camel 3.11.x, the component works as intended, but it doesnt let me use Simple Language in the Producer / Consumer.
>
> I want to load an ID from the body of a file, and after some basic
> processing, use this information as the identifier, but when I start
> the routes, it just shows in the URL
>
> ?verb=GetRecord&identifier=exchangeProperty%7BmyId%7D
>
> I've tried using ${exchangeProperty.myId} or the getProperty() builder, but nothing seems to work...
>
> Is there a workaround you could recommend to me or something I am missing?
>
> Thank you so much fort he insights!
> Best regards
>
> --
> Jaime Penagos
>
> Ludwig-Maximilians-Universität
> Universitätsbibliothek
> Abteilung Informationstechnologie
>
> Geschwister-Scholl-Platz 1, 80539 München
> Tel.: +49 89 2180 5747
> E-Mail:
> jaime.penagos@ub.uni-muenchen.de<mailto:jaime.penagos@ub.uni-muenchen.
> de>
>
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
AW: OAI-PMH Component and Simple Language support
Posted by Penagos Jaime <Ja...@ub.uni-muenchen.de>.
Oh, I havent used the toD yet. The full route looks like this
from("direct:fetch")
.to("oaipmh:URL"
+ "?"
+ "verb=GetRecord"
+ "&"
+ "onlyFirst=true"
+ "&"
+ "repeatCount=0"
+ "&"
+ "identifier="
+ simple("${exchangeProperty.myId}")
+ "&"
+ "metadataPrefix=datacite"
)
.log("${body}");
Will check the couple things you recommended. Thanks!
-----Ursprüngliche Nachricht-----
Von: Claus Ibsen <cl...@gmail.com>
Gesendet: Mittwoch, 4. August 2021 13:25
An: users@camel.apache.org
Betreff: Re: OAI-PMH Component and Simple Language support
Hi
See the toD and content enricher eip patterns
On Wed, Aug 4, 2021 at 1:22 PM Penagos Jaime <Ja...@ub.uni-muenchen.de> wrote:
>
> Hi everyone,
>
> I am currently testing the OAI-PMH component with Camel 3.11.x, the component works as intended, but it doesnt let me use Simple Language in the Producer / Consumer.
>
> I want to load an ID from the body of a file, and after some basic
> processing, use this information as the identifier, but when I start
> the routes, it just shows in the URL
>
> ?verb=GetRecord&identifier=exchangeProperty%7BmyId%7D
>
> I've tried using ${exchangeProperty.myId} or the getProperty() builder, but nothing seems to work...
>
> Is there a workaround you could recommend to me or something I am missing?
>
> Thank you so much fort he insights!
> Best regards
>
> --
> Jaime Penagos
>
> Ludwig-Maximilians-Universität
> Universitätsbibliothek
> Abteilung Informationstechnologie
>
> Geschwister-Scholl-Platz 1, 80539 München
> Tel.: +49 89 2180 5747
> E-Mail:
> jaime.penagos@ub.uni-muenchen.de<mailto:jaime.penagos@ub.uni-muenchen.
> de>
>
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2
Re: OAI-PMH Component and Simple Language support
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
See the toD and content enricher eip patterns
On Wed, Aug 4, 2021 at 1:22 PM Penagos Jaime
<Ja...@ub.uni-muenchen.de> wrote:
>
> Hi everyone,
>
> I am currently testing the OAI-PMH component with Camel 3.11.x, the component works as intended, but it doesnt let me use Simple Language in the Producer / Consumer.
>
> I want to load an ID from the body of a file, and after some basic processing, use this information as the identifier, but when I start the routes, it just shows in the URL
>
> ?verb=GetRecord&identifier=exchangeProperty%7BmyId%7D
>
> I've tried using ${exchangeProperty.myId} or the getProperty() builder, but nothing seems to work...
>
> Is there a workaround you could recommend to me or something I am missing?
>
> Thank you so much fort he insights!
> Best regards
>
> --
> Jaime Penagos
>
> Ludwig-Maximilians-Universität
> Universitätsbibliothek
> Abteilung Informationstechnologie
>
> Geschwister-Scholl-Platz 1, 80539 München
> Tel.: +49 89 2180 5747
> E-Mail: jaime.penagos@ub.uni-muenchen.de<ma...@ub.uni-muenchen.de>
>
--
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2