-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: concurent app - Could not execute JDBC batch update
PostPosted: Sat Feb 04, 2012 3:28 am 
Newbie

Joined: Sun Jun 14, 2009 6:20 am
Posts: 7
Hi all!
I have an hibernate app, that run in terminal. It's something classic, nothing fancy, with session config defined in cfg.xml
Everything work well, but i want to run two app in parallel. When second app start, i got on first error: org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
I try'it to use for every app separate configuration file, with different session-factory name, but still no luck.
What it's solution to run two or more app hibernate based in parallel withou conflicting?


Top
 Profile  
 
 Post subject: Re: concurent app - Could not execute JDBC batch update
PostPosted: Sat Feb 04, 2012 4:23 am 
Newbie

Joined: Sun Jun 14, 2009 6:20 am
Posts: 7
I found solution. It's not related to hibernate but is related to database. I use H2 database, and for concurent connections from multiple app, need to setup ;FILE_LOCK=SERIALIZED to the database URL.
More information here: http://www.h2database.com/html/advanced.html#file_locking_serialized
So now work how it's expected!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.