On Jun 24, 6:41 pm, Thomas Mueller <[email protected]>
wrote:
> Hi,
>
> > our application is automatically started
> > on Windows start up
>
> I guess there is no 'user' yet if the database is started within a
> "service", therefore there is no 'user home directory', so Java picks
> C:\Program Files\Application\startup.

Thanks for answer Thomas.

My explanation was maybe a little bit misleading. Our setup is simply
so that we have a shortcut in windows start menu startup folder, which
launches our application after user login.

We start h2 server within our application code. After that we connect
to the database using hibernate. I got rid of the problem by delaying
the retrieval of Data class. I also changed the code
so that we do not start h2 server anymore, but instead use h2 as
embedded mode, because the server functionality was not necessary
after all.


> > jdbc:h2:~/Application/local/localDB
>
> I suggest to use a absolute path in your case.

Absolute path usage is difficult, since our application is run on
Windows XP, Vista and 7, and we would like to put our database in user
home directory, which varies based on Windows version, language, and
user name.

> > unexpected status -555469361
>
> Could you verify you are using the same version of H2 for both the
> client and the server? H2 should work even in that case, but there
> were problems in the past.

Since both server starting and connecting was done in our application
code, the versions should be the same. We have only one reference to
h2 in our project (we are using maven).

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to