| Summary: | Cannot commit session in a servlet | ||
|---|---|---|---|
| Product: | Red Hat Enterprise MRG | Reporter: | Martin Vecera <mvecera> |
| Component: | qpid-jca | Assignee: | messaging-bugs <messaging-bugs> |
| Status: | CLOSED NOTABUG | QA Contact: | MRG Quality Engineering <mrgqe-bugs> |
| Severity: | urgent | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.0 | CC: | wprice |
| Target Milestone: | 2.0.4 | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-09-15 14:45:47 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Martin Vecera
2011-09-15 13:35:22 UTC
If your using an XA ConnectionFactory, you will in turn create an XASession. Calling commit() on an XASession is prohibited as per the API: http://java.sun.com/javaee/5/docs/api/javax/jms/XASession.html#commit() For what you want to do, you need to use a notx-connection-factory since you are managing the transactions yourself. Config would look something like: <notx-connection-factory> <jndi-name>QpidJMS</jndi-name> . . . </notx-connection-factory> Sorry, that should read:
<no-tx-connection-factory>
<jndi-name>QpidJMS</jndi-name>
.
.
.
</no-tx-connection-factory>
See above comments for explanation. |