hi!

i did the following change to 
org.apache.ojb.broker.util.configuration.impl.ConfigurationAbstractImpl.java

    protected void load()
    {
        properties = new Properties();
        try
        {
            final String filename = getFilename();
            URL url = 
Thread.currentThread().getContextClassLoader().getResource(filename);
            if (url == null)
            {
                try
                {
                    url = new URL( filename );
                }
                catch( MalformedURLException e )
                {
                    url = (new File(filename)).toURL();
                }
            }
            LoggerFactory.getBootLogger().info("OJB.properties: " + url);

            InputStream strIn = url.openStream();
            properties.load(strIn);
            strIn.close();
        }
        catch (Exception ignore)
        {
            LoggerFactory.getBootLogger().error("Cannot get OJB properties 
file, use default settings!", ignore );
            properties.put("valid", "false");
        }
    }


this code works for local OJB.properties and when filename is a http URL.

but this gets me to the next question. is the repository.xml file 
necessary on the client? (in client / server mode)

juergen

--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to