[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Tomcat 5 + Hibernate 3 + Hivetrans = duplicated key...
I have a duplicate key exception when hibernate updates a list wich have been modificated. I have a test which reproduce it sistematically, it has 2 clasess, one mapped @oneToMany to the other. The first has a list of the second. In a transaction scope I remove one element of the list, and later I add it again, hibernate try to insert again all elements without remove them, then i have a "duplicated unique key exception" at the commit. I am geting the session through the hivetrans.hibernate3.SessionFactory I could make it run successfully geting the session programaticaly, begining and commiting the transaction manually: | cfg = AnnotationConfiguration("cfg.xml); | sf = cfg.buildSessionFactory(); | s = sf.openSession(); | Why could the hivetrans session factory make change the strategy of persist the dirty list? Thank in advance for yout help! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4137789#4137789 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4137789 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Web Services Transactions
Hello, I am researching about the web services transactions behaiviour... I have read the WS-C, WS-AT & WS-BA specifications, and several internet papers, i have the concepts. Now I am looking for a working sample, to have something runing something to begin from... I know that Arjuna had an implementation, and it was included in jboss project so far. I understand it is now the jbossts component. I was trying to run the xts-demo application into the jboss-4.2.2 & jbossts-4.2.2 with no success... Now I am with jboss-5.0.0-beta4, where is the web services transcation support here? I see only a jbossws component, as a .sar application, but no samples, and nothing seems to provide the web services transaction support... Can anyone help me? I've put a lot of days in that, and I need a sample to see this feature really working... Thank you a lot! Matias Blasi. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131661#4131661 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131661 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user