I'm developing a mission-critical solution where data integrity is paramount and performance a close second. If data gets stuffed up, it's gonna be cata$trophic.
So, I'm looking for the C/C++ version of ... |
I'm analyzing the different behaviors between the JTA (Java Transactions API) and the .NET counterpart System.Transactions: the approach is quite different between the two of them.
In fact, Java's version of Transactions ... |
Looks like Bitronix, as suggested elsewhere, works very well. However, I'm stumped by a problem with it. I get this exception from Hibernate, when I attempt to save the ... |
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 ... |
I'll try to describe the situation. We have a web service; on each request web service starts a JTA transaction. It performs several database calls through XA datasource within that and ... |
Can someone give me a good explanation on the motivation and application of JTA in modern Java applications? I don't want overly technical details. But just a paragraph on why do ... |
I want to rollback a transaction which already committed, does JTA support this kind of function?
|
|
I store file’s attributes (size, update time…) in database. So the problem is how to manage transaction for database and file.
In jee environment, JTA is just able to manage database transaction. ... |
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 ... |
I have a getStockQuote() function that will get a current stock quote for a symbol from the stock market.
My goal is that within a JTA transaction, the first call to getStockQuote() ... |
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 ... |
In WebSphere, if you code opens two concurrent database connections, you get an error of the form:
J2CA0086W: Shareable connection MCWrapper id 556e556e Managed connection WSRdbManagedConnectionImpl@52365236 State:STATE_TRAN_WRAPPER_INUSE
from resource jdbc/abc ... |
I am using distributed transactions in a BDB JE application to coordinate transactions across multiple BDB JE environments. I want to set the transaction isolation level to serializable. To ... |
I have a stateless bean with bean-managed transaction and a method like this:
@Stateless
@TransactionManagement(TransactionManagementType.BEAN)
public class ... {
@Resource
private UserTransaction ut;
@EJB ...
|
Is the reusage of the ut instance in the following code correct?
UserTransaction ut = (UserTransaction)ctx.lookup("java:comp/UserTransaction");
ut.begin();
doSomeWork();
ut.commit();//Or rollback (I think it doesn't matter)
ut.begin(); ...
|
I have such managed bean in my JEE6 app:
@Named
@RequestScoped
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public class RegistrationBean implements Serializable {
@PersistenceContext
EntityManager em;
public String doRegistration() {
...
|
I'm using Atomikos essential transactions as my TM in my J2SE application.
I have the following code:
if (userTransaction.getStatus()== Status.STATUS_ACTIVE){
userTransaction.commit();
}
and then I see in the logs the following exception:
java.lang.IllegalStateException:
... |
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 ... |
I am after a test suite that does sufficient tests for the core aforementioned jta interfaces:
- TransactionManager
- Transaction including enlisting/delisting of a XAResource
- UserTransaction
I am adding a layer around jta system ... |
I am trying out a few things w/ JOTM and have some general purpose questions regarding how things work. I have listed the sequence of events to get a definitive summary ... |
I am trying out a few things w/ JOTM and have some general purpose questions regarding how things work. I have listed the sequence of events to get a definitive summary ... |
Because the TransactionManager has no way to register a XAResource manager, so that it can enlist XAResources in future Transactions.
The only way to solve this problem is to wrap the handle ... |
I've been reading about "Java Transaction" , and i've been confused about what's it? and what's useful in?
|
We use ibatis 2.3 for the dao in our webservices. we have been using ibatis for a while now. We tie ibatis to JTA for transactions and normally start batches and ... |
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 methods?
I know access ... |
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 ... |
We utilize in-memory LRU caches for several different models across our application. To avoid issues arising from transactions being rolled back (like stale entries), a notion of transactional caches was added: ... |
Does Websphere Application Server (7.0, preferably) have a log for transaction manager? I'd like to see how and when transactions are started for my application's threads, whether and when they commit ... |
The JDBC 3.0 specification is enlightening. The JDBC 3.0 specification says: {{ The default is for auto-commit mode to be enabled when the Connection object is created. If the value of auto-commit is changed in the middle of a transaction, the current transaction is committed. It is an error to enable auto-commit for a connection participating in a distributed transaction, as ... |
I am trying to find some examples of how I might use JTA to solve a programming problem. I need the ability to wrap a transaction around two distinct events: a File write and a SQL transaction. I have a file that needs to be copied to a particular place and a corresponding SQL update statement to be executed. If either ... |