Hi,
I would like to start the h2 server in the startup of my Spring application
to use a H2 DB in server mode.
In the app startup, the datasource bean throws and exception indication
that connection is refued.
If I execute the server manually It works without problems.
¿Any idea?¿What am i doing wrong?
Thanks in advance!
This is my bean declaration.
<bean id = "org.h2.tools.Server"
class="org.h2.tools.Server"
factory-method="createTcpServer"
init-method="start"
destroy-method="stop">
<constructor-arg value="-tcp,-tcpAllowOthers,-tcpPort,8043" />
</bean>
<bean class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close" id="configurationDataSource" >
<property name="driverClassName" value="org.h2.Driver"/>
<property name="url"
value="jdbc:h2:tcp://localhost/D:\testDB;AUTO_SERVER=TRUE"/>
<property name="username" value="test"/>
<property name="password" value="test"/>
</bean>
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.