dev@glassfish.java.net

Re: How to load resources from module.jar/META-INF in GFv3?

From: Potociar Marek <Marek.Potociar_at_Sun.COM>
Date: Fri, 21 Nov 2008 18:17:28 +0100

Never mind... I eventually solved it by retrieving the class loader of
the class that is located in that jar. Calling getResource() on this
class loader works fine.
Thanks,
Marek


On 21.11.2008, at 18:08, Potociar Marek wrote:

> Hello,
> I need to find a way how to load a resource from a GFv3 module
> located in module.jar/META-INF. To be exact, I need to load
> webservices.jar/META-INF/metro-default.xml when a new WS gets
> deployed. Standard
> Thread.currentThread().getContextClassLoader().getResource("META-INF/
> metro-default.xml") approach apparently does not work.
>
> Thanks for your help,
> Marek
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>