-->
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.  [ 1 post ] 
Author Message
 Post subject: MS SQL Server deadlock w/ MDB and Stateless EJB
PostPosted: Mon Sep 15, 2008 5:48 pm 
Newbie

Joined: Mon Sep 15, 2008 5:39 pm
Posts: 1
Hello,

I have a question I'm sure someone here can help me with; it has to do with deadlocks (I think) in SQL server. I have an application (EJB 3.0 MDB) running in OpenEJB. I'm using Hibernate as the JPA provider. When the MDB ebjCreate() method is called it does
does a query against a table and passes the data to another Stateless EJB as a HashMap. That second EJB inserts data into multiple database tables, including the database table that the MDB pulled information from. The info pulled and put into a hashmap may be used as reference data for other inserts that is why the MDB passes it to the stateless EJB. So I'm seeing a deadlocking issue between my select statement and my insert statement (that are both hitting the xreference table) and I'm not sure if or how I can avoid this (there must be).

I'm using
SQL Server 2005
Hibernate: hibernate-3.2.5.ga
Open EJB: 3.1 snapshot
I do have the openJPA jars in the classpath for generic JPA support if that matters


Thanks in advance for your help.


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

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.