eclipse-ee4j / eclipse-ee4j/metro-wsit
2 Tranaction id's created for consequent webservice operation under a single User Transaction
- Dominant language
- Java
- Stars
- 6
- Forks
- 21
- Avg merge
- 10h 2m
- Merged PRs (30d)
- 1
Description
While invoking 2 webservice operations with in a UserTransaction, I see there are 2 different transactions created.
The client invocation of the service looks like :
ut.begin();
simple.client.SimpleWebservice port = service.getSimpleWebservicePort();
out.println("Transaction id at server"+port.getId());
out.println(port.mandatory("test"));
ut.rollback();
Each of the out.println in the servlet prints the obtained globalTransactionId from xid of the XAResourceImpl.
#### Environment
glassfish 3.1
Source: [https://github.com/javaee/metro-wsit/issues/1525](https://github.com/javaee/metro-wsit/issues/1525)
Author: glassfishrobot
Contributor guide
Research direction
Start by reproducing the client sequence shown: begin one UserTransaction, invoke getId and mandatory on the webservice port, then roll back. Inspect the servlet output and the globalTransactionId obtained from xid of XAResourceImpl; the issue is resolved when both operations report the same transaction ID under one UserTransaction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100