I finally figured out what you meant...I read it wrong the first time. I'm able to remotely connect to my mem db now.
Thanks for your help! On Jun 23, 8:43 am, leojhartiv <[email protected]> wrote: > Well, I guess I'm not sure what mode I need. > > I'm currently using H2 in embedded memory-only mode. I use this in > spring/hibernate-wired integration tests. I also use it embedded, > memory-only on developer desktops: they fire up the application > locally during development for smoke testing vs starting it with our > production database, Oracle. > > Now I have a need to run web integration tests when the application is > running. So a developer would: > > 1. Start tomcat and the web application using the memory-only, > embedded database. > 2. Run web integration tests via Maven using Sellenium WebTest. These > tests would need access to the database used by the web application > (in this case its embedded memory-only H2 instance) in order to seed > the application with data prior to each test. > > From the documentation, I assumed this was possible. Perhaps it's not > though... > > On Jun 22, 11:43 pm, Thomas Mueller <[email protected]> > wrote: > > > Hi, > > > > 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 > > > Is there a step I'm missing? > > > You also need to start a server, specially a "TCP > > server":http://www.h2database.com/html/tutorial.html#using_server > > > This is the "Server > > Mode":http://www.h2database.com/html/features.html#connection_modes > > > > I'm using H2 embedded > > > No, it looks like you are using the server mode, not the embedded mode. > > > Regards, > > Thomas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
