eclipse-ee4j / eclipse-ee4j/metro-wsit
warn when WS-AT webmethod invoked in unsupported scenarios
- Dominant language
- Java
- Stars
- 6
- Forks
- 21
- Avg merge
- 10h 2m
- Merged PRs (30d)
- 1
Description
Issue a warning if can not flow a WS-AT transaction context due to following
implementation limitations. Note warning only issued when
there method is invoked with a current JTA transaction context.
User would expect txn context to be flowed as WS-AT Txn Context with the request.
1\. Invoking a WS-AT annotated web method from an Application Client Container
(not supported by WSIT 1.0)
2\. On an asynchronous,transacted web service invocation invoked
with a current JTA transaction context.
(probably will never support this, transaction processing by its very nature
implies synchronization between client controlling the transactional context
and the operations being processed in that transactional context.)
TxClientPipe is a good place to identify these situations at runtime.
Either can throw an exception or just warn that invoked operation is
not participating in current client transaction.
Statically, it might be possible to identify invalid combinations of
program annotations. (@WebMethod that is both transacted AND asynchronous)
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[current]
Source: [https://github.com/javaee/metro-wsit/issues/471](https://github.com/javaee/metro-wsit/issues/471)
Author: glassfishrobot
Contributor guide
Research direction
Start in TxClientPipe, the entry point named for identifying unsupported WS-AT flows. Trace invocations with a current JTA transaction from an Application Client Container and asynchronous transacted web service calls, then inspect how annotations expose invalid combinations. Done means the unsupported cases are detected and consistently reported as a warning or exception, with coverage for the chosen behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend-api-design, distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100