jta Questions
1
Solved
I am using JBoss AS 7.1.1 and able to configure a new JTA datasource and wire it to my EJB using
@PersistenceContext(unitName="TestPU")
private EntityManager entityManager;
When I tried to use ...
Lectureship asked 12/4, 2012 at 5:8
2
Solved
I am using Spring 2.0.6 and Hibernate 3.2.x on apache tomcat5.5,now we planed to changed our hybernate mapping files into hybernate+jpa support mapping files.
for that we created files like this
...
2
I'm developing in a JavaEE environment (weblogic 12), and part of my code uses JDBC; Therefore, I need to aqcuire a JDBC connection from the application server.
I know it's a really bad practice to...
Jamisonjammal asked 19/3, 2012 at 9:28
2
Solved
I am new to JTA and it's underlying transaction managers. Can anyone explain the pros/cons of each of these? Feel free to add others I didn't list in title.
Also, don't the major application...
Psalmody asked 4/6, 2010 at 22:30
1
Solved
I am getting this missing artifact message for
javax.transaction:jta:jar:1.0.1Bas403 Forbidden
Multiple annotations found at this line:
- Missing artifact javax.transaction:jta:jar:1.0.1B
- A...
1
Solved
It seems that the Entity Manager instance jboss manages and provides is a proxy to the actual implementation bound to a persistence context.
This actual implementation gathers the isolation provid...
Refund asked 22/12, 2011 at 11:50
2
Solved
The documentation for EntityManager.persist() says it will Make an instance managed and persistent.
It is persisting the entity to the database, but when I call the EntityManager.contains() metho...
Frosty asked 16/12, 2011 at 3:47
2
Solved
I have an application that interacts multiple databases and some custom services. For some operations, I need transaction-like behavior where a set of changes either commit across all databases/ser...
Brassware asked 7/12, 2011 at 19:53
4
Solved
Is it possible to make XA-transactional access to the file system in Java?
I want to manipulate files within the boundaries of a transaction and my transaction must participate in a distributed tr...
Hafner asked 21/5, 2009 at 10:55
1
Solved
We meet an scenario that works with multi thread.
In the main Thread, do some logic and update the database, in a point, it will call another service to update database, which is run in another Th...
Liederkranz asked 5/8, 2011 at 6:27
2
Solved
UserTransaction ut=lookup....
ut.beginTransaction();
saveToFooDB();
statelessEjb.transactionSupportedMethod(); //saves something to the Foo DB
saveToFooDB();
ut.commit();
If i was doing the a...
Deirdre asked 10/3, 2010 at 1:29
2
Solved
I am developing a J2EE application which is deployed on JBoss application server.
The application is composed of an EJB 2.x component and a web component and is running on local computer or remote ...
Lattimore asked 17/1, 2011 at 3:41
4
Solved
I have a JTA transcation which I commit. Can I roll it back after I commit? If yes, how? I have following situation.
I have a backend layer which updated 3 DBs. I have used JTA user transcation f...
2
Solved
I've been reading about "Java Transaction" , and i've been confused about what's it? and what's useful in?
Pitman asked 30/4, 2011 at 22:24
2
Solved
I have a @Stateless EJB using container managed transaction. Is there a way to access the "status" of javax.transaction.UserTransaction? That is, calling UserTransaction.getStatus() inside the bean...
Valuation asked 5/6, 2011 at 3:49
1
Solved
We are using jboss managed EntityMangerFactory using following spring bean
<jee:jndi-lookup id="entityManagerFactory" jndi-name="persistence-units/myPU"/>
Now in our spring bean we use @Pe...
5
Solved
I have a web application using JPA and JTA with Spring. I would like to support both JBoss and Tomcat. When running on JBoss, I'd like to use JBoss' own TransactionManager, and when running on Tomc...
1
I have been studying jboss CMT , and would like to learn how the transaction works from top to bottom, best way would be printing debug information to the log file, I enabled org.hibernate.SQL , ho...
Rupture asked 14/2, 2011 at 10:49
3
Solved
Suppose you use JPA with Spring, with Hibernate as JPA implementation.
JPA transaction mode is "JTA", so you need to pass the container transactionManager to Hibernate.
The classical answer is to s...
2
I was given an "API" in the form of a JAR to do some external accounting operations from my Java-Seam-Hibernate appplication.
Internally, the API is an plain Hibernate application, using two indep...
Lightless asked 25/1, 2011 at 15:15
3
Solved
I have a stateless bean with bean-managed transactions, and a method like this:
@Stateless
@TransactionManagement(TransactionManagementType.BEAN)
public class ... {
@Resource
private UserTrans...
Burkey asked 7/11, 2010 at 15:23
2
Solved
We are in the process of re-thinking our tech stack and below are our choices (We can't live without Spring and Hibernate due to the complexity etc of the app). We are also moving from J2EE 1.4 to ...
2
My application has long running transactions and hence I tried the option session.close() at the end of every method to ensure that the connection objects are not held indefinitely for long time.
...
5
Solved
Basically, what it says on the tin; I need a JTA implementation useable in a Java SE application, ideally one that doesn't carry too much of a framework burden with it.
Eliott asked 22/4, 2009 at 14:57
2
Solved
I'm running an application with the following components:
Oracle 9i
WAS 6.1.0.23 with WS and EJB3 features pack
JPA with Hibernate 3.3.2.GA as provider (with Hibernate-EntityManager 3.4.0)
Spring...
Globular asked 7/12, 2009 at 12:18
© 2022 - 2024 — McMap. All rights reserved.