Hi Lars
> // automatically register database driver
> Database database = (Database)
> (Class.forName( "org.xmldb.api.reference.DatabaseImpl" ).newInstance());
> // get root collection
> Collection = DatabaseManager.getCollection( url );
That creates an instance of DatabaseImpl that is never used except to
ensure that the driver installs itself. And I don't think this is much
better than just writing:
DatabaseManager.registerDatabase((Database)
(Class.forName( "org.xmldb.api.reference.DatabaseImpl").newInstance()));
Collection = DatabaseManager.getCollection( url );
Maybe the following is already enough to execute your static block (I
didn't test it):
Class.forName("org.xmldb.api.reference.DatabaseImpl");
Jeremias M�rki
mailto:[EMAIL PROTECTED]
OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch
----------------------------------------------------------------------
Post a message: mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]
Contact adminstrator: mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------