Is there any way to keep switch on the jdbc.use_get_generated_keys permenently for a launcher

60 views
Skip to first unread message

Tony Li

unread,
Oct 27, 2015, 4:51:30 AM10/27/15
to rundeck-discuss
Hi,

 I'd like to appreciate any advice. I'm running a launcher 2.6.1 in my test environment and I made projectsStorage to an oracle db via setting this "rundeck.projectsStorageType=db",  I added "<property name="hibernate.jdbc.use_get_generated_keys">true</property>" into ./server/exp/webapp/WEB-INF/classes/hibernate.cfg.xml, as I knew for a tomcat container I have to do that to avoid the error of  "getGeneratedKeys() support is not enabled".

 However, it looks the file gets re-generated every time after I restart the rundeck, that causes the line I added gets removed. Is there any way to keep switch on the jdbc.use_get_generated_keys permenently?

Thanks,
Tony

Tony Li

unread,
Oct 28, 2015, 3:31:16 AM10/28/15
to rundeck-discuss
just figured it out, add -Dhibernate.jdbc.use_get_generated_keys=true to command line when start it.
Reply all
Reply to author
Forward
0 new messages