You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by JCR <jc...@proxymit.net> on 2011/05/08 11:46:27 UTC
Calling a resource from an OSGi bundle
Hi all,
I'm looking for a pattern to call a sling resource from within an OSGi
bundle.
My idea would be something with sling.include("/some/path.html"), but
this does not seem to be possible, as it is not a service.
So, another option would be to do a full-sized HTTP GET call, which
sounds like a lot of overhead.
Thanks for any ideas.
Juerg
Re: Calling a resource from an OSGi bundle
Posted by JCR <jc...@proxymit.net>.
Yeap, wrong list, thanks anyway for the hint, Justin.
Juerg
On 08.05.2011 14:44, Justin Edelson wrote:
> More of a Sling than a Jackrabbit question, no?
>
> In any case, you should be able to use the SlingRequestProcessor to do
> this. Search the (sling) list archives for details. If you have
> questions, post them to the sling users list, not the jackrabbit users
> list.
>
> HTH,
>
> Justin
>
> On Sun, May 8, 2011 at 5:46 AM, JCR<jc...@proxymit.net> wrote:
>> Hi all,
>>
>> I'm looking for a pattern to call a sling resource from within an OSGi
>> bundle.
>>
>> My idea would be something with sling.include("/some/path.html"), but this
>> does not seem to be possible, as it is not a service.
>> So, another option would be to do a full-sized HTTP GET call, which sounds
>> like a lot of overhead.
>>
>> Thanks for any ideas.
>> Juerg
>>
>>
Re: Calling a resource from an OSGi bundle
Posted by Justin Edelson <ju...@justinedelson.com>.
More of a Sling than a Jackrabbit question, no?
In any case, you should be able to use the SlingRequestProcessor to do
this. Search the (sling) list archives for details. If you have
questions, post them to the sling users list, not the jackrabbit users
list.
HTH,
Justin
On Sun, May 8, 2011 at 5:46 AM, JCR <jc...@proxymit.net> wrote:
> Hi all,
>
> I'm looking for a pattern to call a sling resource from within an OSGi
> bundle.
>
> My idea would be something with sling.include("/some/path.html"), but this
> does not seem to be possible, as it is not a service.
> So, another option would be to do a full-sized HTTP GET call, which sounds
> like a lot of overhead.
>
> Thanks for any ideas.
> Juerg
>
>