[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: How to disable Hibernate's Auto session close?
1. Deploy your hibernate files as if they where running in jboss3.x (see wiki's) 2. you find the sources in jboss.org (fisheye or CVS). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955227#3955227 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955227 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: How to disable Hibernate's Auto session close?
You can't, it is hard-coded in jboss-hibernate.jar. see : Hibernate.class, transferSettings() settings.setProperty("hibernate.transaction.auto_close_session", "true"); You can still use still the sar-approche for deploying you're hibernate files or roll you're own jboss-hibernate.jar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955092#3955092 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955092 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Hibernate problem when deploying multiple .EAR files
Did you check the version of cglib.jar? (3th party lib for hibernate) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952370#3952370 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952370 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - CMT/EJB rollback
Hi, Can someone explain me why I have to add lines (1) and (2) in following snippet of code Info - jboss-server: 4.0.4 hibernate : 3.1.3 DB : Oracle8 EJB : SLSB | Transaction tx = null; | try { | Session session = factory.getCurrentSession(); | tx = session.beginTransaction(); (1) | session.save(inputObject); | session.flush();(2) | } catch (RuntimeException e) { | tx.rollback(); (1) | ExceptionHandler.analyze(log, e); | } | (1) I have to add this to catch PropertyValueExceptions (not-null constrain form hibernate) (2) I have to flush to generate a ConstraintViolationException in case of saving the same inputObject. If I don't add these lines, the exceptions are thrown by the container and catch by the ejb-client as a RemoteException witch is very annoying. Adding lines (1) and (2) prevent this and the exceptions are throw as applicationExceptions witch is OK. But I don't quit understand what actually happens. I though that CMT/EJB was also taken care of the commit and rollback of the transaction ??? If you need additional info don't hesitate to reply. Additional info : Following hibernate properties are hard coded by the jboss-hibernate Mbean | hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup | hibernate.transaction.factory_class=org.hibernate.transaction.JTATransactionFactory | hibernate.transaction.flush_before_completion=true | hibernate.transaction.auto_close_session=true | hibernate.connection.agressive_release=true | hibernate.connection.release_mode="after_statement" | | | | | Thanks | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949396#3949396 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949396 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - What happen to my PropertyValueException jboss4.0.4?
Hi, I had SLSB's (EJB2.0) running under jboss3.2.3/Hibernate-2.1.8 and using the hibernate sar deployer. These SLSB's where running as expected. I migrated these SLSB's (EJB2.0) to jboss4.0.4 (with hibernate3) and using the hibernate har deployer. The PropertyValueException is now thrown as nested RemoteExcepion to my ejb-client and not anymore as MyOwnExcpetion. Altought the PropertyValueException is catched and logged in the SLSB's, the server throws it as a nested RemoteException server.log | 11:35:37,579 ERROR [LogInterceptor] TransactionRolledbackException in method: public abstract void com.company.application.interfaces.DBDSProvisioning.updateIGMPCC(com.company.application.client.SubscriberInformationCCView) throws com.company.application.exception.applicationException,java.rmi.RemoteException, causedBy:org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=NET-IBHTINMJ879/51, BranchQual=, localId=51] status=STATUS_NO_TRANSACTION; - nested throwable:(org.hibernate.PropertyValueException: not-null property references a null or transient value:com.company.application.Hibernate.SubscriberinformationCc.statusIgmpCc) | Any Hibernate / JBoss gurus reading this ? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947632#3947632 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947632 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user