You can try trough an URL using the !/ syntax to locate an internal resource, but I dunno if works recursively.
new URL("jar:/path/to/myejb.jar!/my/resource")
[Message sent by forum member 'bossola' (bruno.bossola_at_jugtorino.it)]
http://forums.java.net/jive/thread.jspa?messageID=390435