This release of JBoss EAP 6 carries the following issue in the JMS component.
When a session is created in a transaction's context and parameters are passed to the generic JMS resource adapter, a `NullPointerException` (NPE) occurs.
The issue occurs because the processing of parameters is attempted, when the Java EE specification states that they are *not* to be processed.
The root cause of the issue is under investigation, but until then a workaround is to set the session to be transacted, as per the following example. With this workaround, the NPE will not occur.