users@glassfish.java.net

GlassFish 3.0.1 and classpath-suffix

From: Major Péter <majorpetya_at_sch.bme.hu>
Date: Sat, 31 Jul 2010 00:39:35 +0200

Hi,

As far as I know classpath-suffix isn't supported in GF v3:
http://forums.java.net/jive/thread.jspa?messageID=378158

but we have the following code:
URL resUrl = ClassLoader.getSystemResource(CONFIG_FILE_NAME);
    if(resUrl == null) {
        ClassLoader cl =
            Thread.currentThread().getContextClassLoader();
        if(cl != null) {
            resUrl = cl.getResource(CONFIG_FILE_NAME);
        }
    }

And this works with classpath-suffix containing a specific value, but
does not when it's empty. Is this intentional? Can I count on this, or
should I not depend on classpath-suffix at all?

Thanks,
Peter