I'm trying to load a connection repository xml file at runtime using MetadataManager.readConnectionRepository method. The problem is that the xml file is inside a jar. Passing readConnectionRepository the file name causes it to look inside the filesystem relative to the application (in this case Tomcat's bin directory). Passing readConnectionRepository a stream read using MyClass.class.getResourceAsStream("repository_frag.xml") finds the xml file but then has a problem finding the repository.dtd for which it looks in the filesystem relative to the application.

Does anyone know of a way of getting round either of these problems? I thought their might be a way of using a custom EntityResolver that forces OJB to find the dtd file inside my jar file but I couldn't find a way of doing this.

Any help would be much appreciated.

Thanks,

Steve Vangasse



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to