Where is this file located?  I'm using H2 embedded in my WAR
file...it's in memory only.

On Jun 20, 3:54 pm, sim <[email protected]> wrote:
> On 18 июн, 15:31, leojhartiv <[email protected]> wrote:
>
> > I am currently a user of HSQLDB and am trying to upgrade to H2 in
> > order to better support our integration testing effort.
>
> > I have successfully deployed our application using H2, specifying the
> > following database information:
>
> > Driver=org.h2.Driver
> > url=jdbc:h2:mem:DBSHR
> > username=sa
> > password=
>
> > Now my goal is to run some integration tests, remotely accessing the
> > same database from a different JVM.  I'm assuming this is possible
> > from this section of the documentation:
>
> >http://www.h2database.com/html/features.html#memory_only_databases
>
> > "It is also possible to access a memory-only database remotely (or
> > from multiple processes in the same machine) using TCP/IP or SSL/TLS.
> > An example database URL is: jdbc:h2:tcp://localhost/mem:db1 ."
>
> > I've tried connecting using the same JDBC configuration:
>
> > Driver=org.h2.Driver
> > url=jdbc:h2:mem:DBSHR
> > username=sa
> > password=
>
> > That doesn't seem to connect it to the existing database.
>
> > I've then tried connecting using the TCP configuration as suggested in
> > the documentation:
>
> > Driver=org.h2.Driver
> > url=jdbc:h2:tcp://localhost/mem:DBSHR
> > username=sa
> > password=
>
> > That gives me the following error message:
>
> > ERROR: An error occurred while trying to make a connection to
> > the database:
>
> > JDBC URL: jdbc:h2:tcp://localhost/mem:dbshr
>
> > Connection
> > is broken [90067-114]
>
> > Is there a step I'm missing?
>
> To access your database remotely you should add a line in wrapper.conf
> file
>
>                   wrapper.app.parameter.x=-tcpAllowOthers        where
> x - parameter number
--~--~---------~--~----~------------~-------~--~----~
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