problem about jta-Collection of common programming errors
Andreas_D
java hibernate jpa jta
Within a complex usertransction (ut) we have to find a JPA entity, add a new child and find the parent entity again. We observe, that the list of children is incomplete when we fetch the parent inside the transaction and complete as expected after the transaction commits. Everything is single threaded and uses the same entity manager instance.Are we missing something obvious that would explain that behaviour?ut.begin();// find the parent entity ParentEntity parent = em.find(parentKey); assertEqu
SiB
jboss transactions jmx jta
We have JBoss [EAP] 4.3.0.GA_CP01 environment and I need to modify the TransactionTimeout property of com.arjuna.ats.jbossatx.jta.TransactionManagerServicebut whenever i try to change the value via MBean from JMX-Console; following stacktrace shows up:java.lang.IllegalStateException: Cannot set transaction timeout once MBean has started com.arjuna.ats.jbossatx.jta.TransactionManagerService.setTransactionTimeout(TransactionManagerService.java:323) sun.reflect.NativeMethodAccessorImpl.invoke0(Nati
Julien BRENELIERE
hibernate spring-mvc jboss7.x jta
I’m getting stuck with a NullPointerException on my EntityManager in my services classes. My spring singletons are perfectly instanciated, my persitance-unit too as far as I can see from the JSBOSS war deployment logs.Here is my code: persistence.xml:<persistence-unit name=”sisweb-edi” transaction-type=”JTA”><provider>org.hibernate.ejb.HibernatePersistence</provider><jta-data-source>java:/jdbc/sisweb-edi</jta-data-source><class>com.sis.web.edi.domain.Codificat
Tapas Bose
java java-ee jta java-ee-7 ejb-3.2
I am reading the Transaction Management of Java EE 7 and I get confused by the concept of nested transaction and the functionality of EJBContext#setRollbackOnly(). Say I have two Session Beans, Bean1Impl and Bean2Impl and their signatures are:@Stateless @TransactionManagement(TransactionManagementType.CONTAINER) public class Bean1Impl implements Bean1 {@Resource private EJBContext context;@TransactionAttribute(REQUIRED)public void method1() {try {//some operations such as persist(), merge() or
Philipp
jpa glassfish eclipselink jta
I have a question about JTA with Glassfish. For days Iam trying to solve this problem. I want to write an Entity in a database. To keep it simple I use the GlassfishDB. In the Glassfish-Admin Console I use the jdbc/__default as Resource. The Ping of the Connection-Pool is working. In the persistence.xml I have declared that Iam using JTA and that jdbc/__ default is my Resource. If I try to create tables from fields I get an Exception:[EL Info]: EclipseLink, version: Eclipse Persistence Services
Rich Seller
java maven-2 jetty jta atomikos
I am working on a project with multiple JDBC data sources and JTA. I use Maven as a build tool, and I’d like to use the Jetty plugin (6.1.20) to run the application during development.I am trying to configure Jetty to use Atomikos as the transaction manager. I’m following the Atomikos documentation from Jetty, but the Jetty startup fails with what looks like a class loader issue.Here are the relevant bits of my configuration.runtime scope dependencies in my pom.xml:<dependency><groupId&
Vineet Reynolds
java jpa transactions ejb jta
I want to know that how can I do two phase commit transaction by using Java EE5…I am using EJB with JPA which has hibernate configured with MySql. I just want to use JAVA EE specification for transaction not using hibernate or JDBC specific object….
Caterpillar
java-ee tomcat jboss jta jboss-tools
Concerning previous question: How to adapt persistence.xml file to connect JPA to a JDBC/MySQL database in Java EE enviroment (Tomcat + JSF)I am enabling JTA on the Eclipse Dynamic web project I am working on. I have chosen the JBoss narayana-full-5.0.0.M3 that is the new version of the older jbossts-full-4.17.4. Following the readme.txt, I have included in project’s generation path:lib/ext/*.jar and lib/jta/narayana-jta.jarbut at certain point of the readme file, you can read:2 If you need to u
SerotoninChase
java hibernate spring-mvc jta xa
Exception from application log:12:04:18,503 INFO ExceptionResolver:30 – [ org.springframework.dao.DeadlockLoserDataAccessException ] Hibernate flushing: could not update: [sero.chase.integration.Beans.Bean#1000]; SQL [update SCHM.v***240u_bean set prop1=?, prop2=?, prop3=?, prop4=?, prop5=?, prop6=?, prop7=?, prop8=?, prop9=?, prop10=?, prop11=?, prop12=?, prop13=?, prop14=?, prop15=?, prop16=?, prop17=?, prop18=?, prop19=?, prop20=?, prop21=?, where bean_id=?]; UNSUCCESSFUL EXECUTION CAUSED B
skaffman
java spring jta hibernate-4.x
I’ll try to configure spring with hibernate using JTA and I have this spring xml file:model.xml<beans> <bean id=”txManager”class=”org.springframework.transaction.jta.JtaTransactionManager”><property name=”transactionManagerName” value=”java:/TransactionManager” /><property name=”userTransactionName” value=”UserTransaction” /><property name=”allowCustomIsolationLevels” value=”true” /> </bean><tx:annotation-driven transaction-manager=”txManager” /><jee:
Andrew
java spring hibernate jta spring-transactions
Update: I was testing it with Bitronix TM and it rollbacks perfectly, so the issue is in JBoss TM (arjuna) or in my configuration.Update 2: It looks like transactions are not global, I’ve tried different datasources, Bitronix datasource has allowLocalTransactions property and after setting it my application throws an exception that something tried to use it in local mode. If I use Bitronix with this datasource it works without any errors. I believe there is something wrong in configs.I have an i
skaffman
java ejb-3.0 jndi jboss6.x jta
Quick question about EJB 3 stateless bean jndi lookup from context. Does context.lookup(“myBean”) return an instance of the bean? My bean is not a singleton.The reason that I ask is because I keep getting transaction time outs on JBoss AS 6 for my persistence CRUD service on inserts and deletes. I have a Callable in which I inject a persistence CRUD stateless bean so that it does only 5,000 inserts in its own transaction (hence the question about returning a new instance and not the same insta
Amit
hibernate jboss entitymanager jta
Following is my environment specifications:Server: JBOSS6.1 finalPersistence layer: JPA with Hibernate as persistence provider (Hibernate version 3.6.6.Final)Application architecture is like: Controller -> Session Beans -> Businell Logic Layer -> Builder (Hibernate layer) – DB (MYSQL)We are using “RESOURCE_LOCAL” transaction which is configured in the persistence.xml as follows:<persistence-unit name=”test” transaction-type=”RESOURCE_LOCAL”><provider>org.hibernate.ejb.HibernatePersis
Vanessa
glassfish jta
I’m trying to take a WAR, which deploys and runs fine on Tomcat, and deploy it on Glassfish. The initial error message in Glassfish is:com.sun.enterprise.deployment.backend.IASDeploymentException:Deployment Error — Thepersistence-context-ref-name[org.nhindirect.config.store.dao.impl.AnchorDaoImpl/entityManager]in module[C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\config-service]resolves to a persistence unit called[config-store] which is of typeRESOURCE_LOCAL. Only persistence un
Arjan Tijms
transactions commit jta java-ee-5
I’m using GlassFish 2.1 and 2.1.1.If I’ve a bean method annotated by @TransactionAttribute(value = TransactionAttributeType.REQUIRES_NEW). After doing some JPA stuff the commit fails in the afterCompletion-Phase of JTS.GlassFish logs this failure only. And the caller of this bean method has no chance to know something goes wrong.So I wonder, if there is any definition how a Java EE 5 server has to handle exceptions while commiting. I would expect any runtime exception.I’m using stateless beans.
Web site is in building