You'll need to register a job that is to be invoked on the 'OnStartApp' event, in this job you can create the connection, and than store it in a singleton service for later use.
Information about jobs can be found here: http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/WritingU NO/Jobs/Jobs Kind regards, Daan de Wit -----Original Message----- From: Thorsten Kramer [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2008 0:57 To: [email protected] Subject: [api-dev] Loading Extension on startup of OpenOffice and use it later Hi, we have implemented a small database OO-Extension that displays data from a database in dialogs.For database access the Spring framework and Hibernate are used. When the dialog is opened for the first time, Spring/Hibernate is initialized at the same time. Unfortunately this is very time consuming, especially on older computers. Now, the question: Is it possible to connect to the database, when OpenOffice is started? And then to use this connection object, when a user opens the dialog? Best regard Thorsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
