server-mode

Start the H2 database in server mode via Spring

做~自己de王妃 提交于 2019-11-28 20:46:47
I'm trying to start the H2 database in server mode (I want it to run in a different process) via Spring. Currently I'm using java Runnable.exec to start the h2 database (using the command: " java -cp h2.jar org.h2.tools.Server ") I know that there is a way to do it via Spring. I tried to add the following to the spring configuration, but it didn't work (it didn't start the H2 database): <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,true,-tcpPort,8043" /> </bean>

Start the H2 database in server mode via Spring

给你一囗甜甜゛ 提交于 2019-11-27 13:11:29
问题 I'm trying to start the H2 database in server mode (I want it to run in a different process) via Spring. Currently I'm using java Runnable.exec to start the h2 database (using the command: " java -cp h2.jar org.h2.tools.Server ") I know that there is a way to do it via Spring. I tried to add the following to the spring configuration, but it didn't work (it didn't start the H2 database): <bean id="org.h2.tools.Server" class="org.h2.tools.Server" factory-method="createTcpServer" init-method=

Emacs - Error when calling (server-start)

送分小仙女□ 提交于 2019-11-27 06:04:39
I am currently using GNU Emacs 23.0.93.1 in Windows Vista SP1. In my .emacs file I make a call to (server-start) and that is causing an error with the message The directory ~/.emacs.d/server is unsafe . Has anyone seen this and know a fix or workaround? ... other than leaving server turned off ;) Here is the stack trace: Debugger entered--Lisp error: (error "The directory ~/.emacs.d/server is unsafe") signal(error ("The directory ~/.emacs.d/server is unsafe")) error("The directory %s is unsafe" "~/.emacs.d/server") server-ensure-safe-dir("~\\.emacs.d\\server\\") server-start(nil) call

Emacs - Error when calling (server-start)

懵懂的女人 提交于 2019-11-26 11:53:09
问题 I am currently using GNU Emacs 23.0.93.1 in Windows Vista SP1. In my .emacs file I make a call to (server-start) and that is causing an error with the message The directory ~/.emacs.d/server is unsafe . Has anyone seen this and know a fix or workaround? ... other than leaving server turned off ;) Here is the stack trace: Debugger entered--Lisp error: (error \"The directory ~/.emacs.d/server is unsafe\") signal(error (\"The directory ~/.emacs.d/server is unsafe\")) error(\"The directory %s is