Hi Mark,
 
Thanks for reporting your progress. I saw in your other related email that
you were able to get your ClientHelper working. I think this is a cool
feature for our upcoming OSGi extension! I've added a comment about it:
 
"Support for OSGI plugin framework"
http://restlet.tigris.org/issues/show_bug.cgi?id=83
 
If you are interested in contributing your code that would definitely speed
things a bit. For more info about contributing, you can read this page and
the wiki.
http://www.restlet.org/community/contribute


Best regards,
Jerome  


  _____  

De : Mark Derricutt [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 9 mai 2008 05:00
À : [email protected]
Objet : Re: CLAP across OSGi classloaders/bundles?



Just updated to the latest snapshot and I'm bit further along, it actually
requests index.html as expected.  Changing my ClientHelper to return a
MediaType:

InputRepresentation ir = new InputRepresentation(url.openStream(),
MediaType.ALL);

solves an NPE further down the chain, however now I'm seeing
com.noelios.restlet.Engine#getScore being called 3 times, and my output is:

[EMAIL PROTECTED]:~/IdeaProjects/securemx/smx3$ curl
http://localhost:8182/admin/index.html
osgi://smx3.testresource/admin/index.html
osgi://smx3.testresource/admin/index.html
osgi://smx3.testresource/admin/index.html
[EMAIL PROTECTED]:~/IdeaProjects/securemx/smx3$ 

I would have assumed I would seen the contents of the InputStream that
InputRepresentation read, rather than just the internal URL being outputed
(3 times no less).

Am I missing something simple here?


On Fri, May 9, 2008 at 2:37 PM, Mark Derricutt <[EMAIL PROTECTED]> wrote:


So after some experimentation I've created a ClientHelper and registered
that into restlet, only I'm stuck 



Reply via email to