tx == 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4
2014-08-20 08:35:08,694 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) BaseTransaction.begin^M
2014-08-20 08:35:08,694 TRACE [com.arjuna.ats.arjuna] (Thread-8 (HornetQ-client-global-threads-411174393)) StateManager::StateManager( 2, 0 )^M
2014-08-20 08:35:08,694 TRACE [com.arjuna.ats.arjuna] (Thread-8 (HornetQ-client-global-threads-411174393)) BasicAction::BasicAction()^M
2014-08-20 08:35:08,694 TRACE [com.arjuna.ats.arjuna] (Thread-8 (HornetQ-client-global-threads-411174393)) BasicAction::Begin() for action-id 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4^M
2014-08-20 08:35:08,694 TRACE [com.arjuna.ats.arjuna] (Thread-8 (HornetQ-client-global-threads-411174393)) BasicAction::actionInitialise() for action-id 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4^M
2014-08-20 08:35:08,694 TRACE [com.arjuna.ats.arjuna] (Thread-8 (HornetQ-client-global-threads-411174393)) ActionHierarchy::ActionHierarchy(1)^M
2014-08-20 08:35:08,694 TRACE [com.arjuna.ats.arjuna] (Thread-8 (HornetQ-client-global-threads-411174393)) ActionHierarchy::add(0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4, 1)^M
2014-08-20 08:35:08,694 TRACE [com.arjuna.ats.arjuna] (Thread-8 (HornetQ-client-global-threads-411174393)) BasicAction::addChildThread () action 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 adding Thread[Thread-8 (HornetQ-client-global-threads-411174393),5,HornetQ-client-global-threads-411174393]^M
2014-08-20 08:35:08,694 TRACE [com.arjuna.ats.arjuna] (Thread-8 (HornetQ-client-global-threads-411174393)) BasicAction::addChildThread () action 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 adding Thread[Thread-8 (HornetQ-client-global-threads-411174393),5,HornetQ-client-global-threads-411174393] result = true^M
2014-08-20 08:35:08,694 TRACE [com.arjuna.ats.arjuna] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionReaper::insert ( BasicAction: 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 status: ActionStatus.RUNNING, 300 )^M
2014-08-20 08:35:08,694 TRACE [com.arjuna.ats.arjuna] (Thread-8 (HornetQ-client-global-threads-411174393)) ReaperElement::ReaperElement ( BasicAction: 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 status: ActionStatus.RUNNING, 300 )^M
Hibernate ORM Synchronization is registered:
2014-08-20 08:35:08,694 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.registerInterposedSynchronization^M
2014-08-20 08:35:08,695 DEBUG [org.jboss.as.jpa] (Thread-8 (HornetQ-client-global-threads-411174393)) Thread-8 (HornetQ-client-global-threads-411174393):[transaction scoped EntityManager]: created entity manager session TransactionImple < ac, BasicAction: 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 status: ActionStatus.RUNNING >^M
2014-08-20 08:35:08,695 TRACE [org.hibernate.persister.entity.AbstractEntityPersister] (Thread-8 (HornetQ-client-global-threads-411174393)) Fetching entity: [de.mobilexag.centerware.job.entity.Job#-1007]^M
2014-08-20 08:35:08,695 DEBUG [org.hibernate.loader.Loader] (Thread-8 (HornetQ-client-global-threads-411174393)) Loading entity: [de.mobilexag.centerware.job.entity.Job#-1007]^M
2014-08-20 08:35:08,695 DEBUG [org.hibernate.SQL] (Thread-8 (HornetQ-client-global-threads-411174393)) select job0_.JOB_ID as JOB_ID1_0_0_, job0_.JOB_BUSINESS_ERROR_CODE as JOB_BUSI2_0_0_, job0_.JOB_CHANNEL_ID as JOB_CHAN3_0_0_, job0_.JOB_CODE as JOB_CODE4_0_0_, job0_.JOB_CRON as JOB_CRON5_0_0_, job0_.JOB_DATA_GZIP as JOB_DATA6_0_0_, job0_.JOB_DONE as JOB_DONE7_0_0_, job0_.JOB_ERROR_CODE as JOB_ERRO8_0_0_, job0_.JOB_FAILURE_DETAILS as JOB_FAIL9_0_0_, job0_.JOB_FAILURES as JOB_FAI10_0_0_, job0_.JOB_FORMAT as JOB_FOR11_0_0_, job0_.JOB_INITIATOR as JOB_INI12_0_0_, job0_.JOB_META as JOB_MET13_0_0_, job0_.JOB_NEXT_PLANNED_START as JOB_NEX14_0_0_, job0_.JOB_ORDER_ID as JOB_ORD15_0_0_, job0_.JOB_PRIORITY as JOB_PRI16_0_0_, job0_.JOB_QUEUED as JOB_QUE17_0_0_, job0_.JOB_SKIP_REASON as JOB_SKI18_0_0_, job0_.JOB_SKIPPED as JOB_SKI19_0_0_, job0_.JOB_STARTED as JOB_STA20_0_0_, job0_.JOB_TEN_ID as JOB_TEN21_0_0_, job0_.JOB_TIME_DONE as JOB_TIM22_0_0_, job0_.JOB_TIME_LAST_FAILURE as JOB_TIM23_0_0_, job0_.JOB_TIME_QUEUED as JOB_TIM24_0_0_, job0_.JOB_TIME_STARTED as JOB_TIM25_0_0_, job0_.JOB_TIME_STORED as JOB_TIM26_0_0_, job0_.JOB_TIME_UPDATED as JOB_TIM27_0_0_, job0_.JOB_TRANSACTION_ID as JOB_TRA28_0_0_, job0_.JOB_VERSION as JOB_VER29_0_0_ from CW_JOB job0_ where job0_.JOB_ID=?^M
2014-08-20 08:35:08,695 DEBUG [org.hibernate.engine.jdbc.internal.LogicalConnectionImpl] (Thread-8 (HornetQ-client-global-threads-411174393)) Obtaining JDBC connection^M
2014-08-20 08:35:08,695 TRACE [org.jboss.jca.core.connectionmanager.TxConnectionManager] (Thread-8 (HornetQ-client-global-threads-411174393)) Subject: null^M
2014-08-20 08:35:08,695 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,695 TRACE [org.jboss.jca.core.connectionmanager.TxConnectionManager] (Thread-8 (HornetQ-client-global-threads-411174393)) getManagedConnection interleaving=false , tx=TransactionImple < ac, BasicAction: 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 status: ActionStatus.RUNNING >^M
2014-08-20 08:35:08,695 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.getTransactionKey^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.getTransactionKey^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.getResource^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.getTransactionKey^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.getResource^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.putResource^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.getResource^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,696 TRACE [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (Thread-8 (HornetQ-client-global-threads-411174393)) getConnection(null, WrappedConnectionRequestInfo@3af423de[userN
ManagedConnectionPool: 26e064d2^M
Method: getConnection(null, WrappedConnectionRequestInfo@3af423de[userName=ROB_MIP])^M
ManagedConnectionFactory:^M
Class: org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$WildFlyXaMCF^M
Object: 75e3d5c4^M
ConnectionListenerFactory:^M
Class: org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl^M
Object: 445ff7d1^M
Pool:^M
Name: centerware2^M
PoolConfiguration:^M
MinSize: 5^M
InitialSize: 5^M
MaxSize: 30^M
BlockingTimeout: 30000^M
IdleTimeoutMinutes: 30^M
BackgroundValidation: false^M
BackgroundValidationMillis: 0^M
StrictMin: false^M
UseFastFail: false^M
Available (2):^M
41dcc2ae (NORMAL) (Used: 1408523707945) (Validated: 1408523259440)^M
498e27f7 (NORMAL) (Used: 1408523708675) (Validated: 1408523405709)^M
InUse (2):^M
159492ef (NORMAL) (Validated: 1408523558210)^M
2770daf4 (NORMAL) (Validated: 1408523259428)^M
Statistics:^M
ActiveCount: 4^M
AvailableCount: 28^M
AverageBlockingTime: 1^M
AverageCreationTime: 65^M
AverageGetTime: 4^M
BlockingFailureCount: 0^M
CreatedCount: 4^M
DestroyedCount: 0^M
IdleCount: 2^M
InUseCount: 2^M
MaxCreationTime: 111^M
MaxGetTime: 155^M
MaxUsedCount: 4^M
MaxWaitCount: 0^M
MaxWaitTime: 1^M
TimedOut: 0^M
TotalBlockingTime: 5^M
TotalCreationTime: 262^M
TotalGetTime: 578^M
WaitCount: 0^M
2014-08-20 08:35:08,696 TRACE [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (Thread-8 (HornetQ-client-global-threads-411174393)) supplying ManagedConnection from pool: org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@41dcc2ae[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 connection handles=0 lastUse=1408523707945 trackByTx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@70d22cae mcp=SemaphoreArrayListManagedConnectionPool@26e064d2[pool=centerware2] xaResource=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 txSync=null]^M
2014-08-20 08:35:08,696 TRACE [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (Thread-8 (HornetQ-client-global-threads-411174393)) Got connection from pool tracked by transaction=org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@41dcc2ae[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 connection handles=0 lastUse=1408523707945 trackByTx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@70d22cae mcp=SemaphoreArrayListManagedConnectionPool@26e064d2[pool=centerware2] xaResource=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 txSync=null] tx=TransactionImple < ac, BasicAction: 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 status: ActionStatus.RUNNING >^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.getTransactionKey^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.getResource^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.getResource^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.putResource^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,696 TRACE [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (Thread-8 (HornetQ-client-global-threads-411174393)) Using connection from pool tracked by transaction=org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@41dcc2ae[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 connection handles=0 lastUse=1408523707945 trackByTx=true pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@70d22cae mcp=SemaphoreArrayListManagedConnectionPool@26e064d2[pool=centerware2] xaResource=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 txSync=null] tx=TransactionImple < ac, BasicAction: 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 status: ActionStatus.RUNNING >^M
2014-08-20 08:35:08,696 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,696 TRACE [org.jboss.jca.core.connectionmanager.listener.TxConnectionListener] (Thread-8 (HornetQ-client-global-threads-411174393)) Pre-enlist: org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@41dcc2ae[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 connection handles=0 lastUse=1408523707945 trackByTx=true pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@70d22cae mcp=SemaphoreArrayListManagedConnectionPool@26e064d2[pool=centerware2] xaResource=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 txSync=null] threadTx=TransactionImple < ac, BasicAction: 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 status: ActionStatus.RUNNING >^M
IJ/JCA Synchronization is registered:
2014-08-20 08:35:08,697 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.registerInterposedSynchronization^M
2014-08-20 08:35:08,697 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,697 TRACE [com.arjuna.ats.arjuna] (EJB default - 9) BasicAction::End() for action-id 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ee9^M
2014-08-20 08:35:08,697 TRACE [org.jboss.jca.core.connectionmanager.listener.TxConnectionListener] (Thread-8 (HornetQ-client-global-threads-411174393)) Get synchronizer org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@41dcc2ae[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 connection handles=0 lastUse=1408523707945 trackByTx=true pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@70d22cae mcp=SemaphoreArrayListManagedConnectionPool@26e064d2[pool=centerware2] xaResource=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 txSync=null] threadTx=TransactionImple < ac, BasicAction: 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 status: ActionStatus.RUNNING >^M
2014-08-20 08:35:08,697 TRACE [com.arjuna.ats.arjuna] (EJB default - 9) BasicAction::onePhaseCommit() for action-id 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ee9^M
2014-08-20 08:35:08,697 TRACE [com.arjuna.ats.jta] (EJB default - 9) XAResourceRecord.topLevelOnePhaseCommit for XAResourceRecord < resource:org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@5bfa74ef, txid:< formatId=131077, gtrid_length=29, bqual_length=36, tx_uid=0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ee9, node_name=1, branch_uid=0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef1, subordinatenodename=null, eis_name=unknown eis name >, heuristic: TwoPhaseOutcome.FINISH_OK com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord@c407b7e >, record id=0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef2^M
2014-08-20 08:35:08,697 TRACE [org.jboss.jca.core.connectionmanager.listener.TxConnectionListener] (Thread-8 (HornetQ-client-global-threads-411174393)) Enlisting resource org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@41dcc2ae[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 connection handles=0 lastUse=1408523707945 trackByTx=true pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@70d22cae mcp=SemaphoreArrayListManagedConnectionPool@26e064d2[pool=centerware2] xaResource=org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 txSync=TransactionSynchronization@747706068{tx=TransactionImple < ac, BasicAction: 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 status: ActionStatus.RUNNING > wasTrackByTx=true enlisted=false cancel=false}]^M
2014-08-20 08:35:08,697 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.enlistResource ( org.jboss.jca.adapters.jdbc.xa.XAManagedConnection@394146c8 )^M
2014-08-20 08:35:08,697 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,697 TRACE [com.arjuna.ats.arjuna] (Thread-8 (HornetQ-client-global-threads-411174393)) StateManager::StateManager( 1, 0 )^M
2014-08-20 08:35:08,697 TRACE [com.arjuna.ats.arjuna] (Thread-8 (HornetQ-client-global-threads-411174393)) AbstractRecord::AbstractRecord (0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef9, 1)^M
some log output skipped that shows Hibernate using the database connection,
then within the same tx (0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4) , we reference another transaction scoped pc/em
and other Hibernate session will be created:
2014-08-20 08:35:08,707 TRACE [org.hibernate.internal.SessionFactoryImpl$SessionBuilderImpl] (Thread-8 (HornetQ-client-global-threads-411174393)) Opening Hibernate Session. tenant=null, owner=org.hibernate.jpa.internal.EntityManagerImpl@656282fc^M
2014-08-20 08:35:08,707 TRACE [org.hibernate.internal.SessionImpl] (Thread-8 (HornetQ-client-global-threads-411174393)) Opened session at timestamp: 14085237087^M
2014-08-20 08:35:08,707 DEBUG [org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl] (Thread-8 (HornetQ-client-global-threads-411174393)) Skipping JTA sync registration due to auto join checking^M
2014-08-20 08:35:08,707 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,707 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.getRollbackOnly^M
2014-08-20 08:35:08,707 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,707 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,707 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,708 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.registerInterposedSynchronization^M
2014-08-20 08:35:08,708 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,708 DEBUG [org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl] (Thread-8 (HornetQ-client-global-threads-411174393)) successfully registered Synchronization^M
2014-08-20 08:35:08,708 DEBUG [org.hibernate.jpa.spi.AbstractEntityManagerImpl] (Thread-8 (HornetQ-client-global-threads-411174393)) Looking for a JTA transaction to join^M
2014-08-20 08:35:08,708 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,708 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,708 TRACE [org.hibernate.internal.SessionImpl] (Thread-8 (HornetQ-client-global-threads-411174393)) Setting flush mode to: AUTO^M
2014-08-20 08:35:08,708 TRACE [org.hibernate.internal.SessionImpl] (Thread-8 (HornetQ-client-global-threads-411174393)) Setting cache mode to: NORMAL^M
2014-08-20 08:35:08,708 DEBUG [org.jboss.as.jpa] (Thread-8 (HornetQ-client-global-threads-411174393)) Thread-8 (HornetQ-client-global-threads-411174393):[transaction scoped EntityManager]: created entity manager session TransactionImple < ac, BasicAction: 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 status: ActionStatus.RUNNING >^M
2014-08-20 08:35:08,708 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.registerInterposedSynchronization^M
2014-08-20 08:35:08,708 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,708 TRACE [org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager] (EJB default - 9) popped object: org.jboss.as.connector.deployers.ra.processors.CachedConnectionManagerSetupProcessor$CachedConnectionManagerSetupAction@5f9e72c3^M
2014-08-20 08:35:08,708 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.putResource^M
2014-08-20 08:35:08,708 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,708 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,708 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionSynchronizationRegistryImple.getResource^M
2014-08-20 08:35:08,708 TRACE [com.arjuna.ats.jta] (Thread-8 (HornetQ-client-global-threads-411174393)) TransactionImple.getStatus: javax.transaction.Status.STATUS_ACTIVE^M
2014-08-20 08:35:08,708 DEBUG [org.jboss.as.jpa] (Thread-8 (HornetQ-client-global-threads-411174393)) Thread-8 (HornetQ-client-global-threads-411174393):[transaction scoped EntityManager]: reuse entity manager session already in tx TransactionImple < ac, BasicAction: 0:ffffc0a8022e:-64f4f7ab:53f45bf2:9ef4 status: ActionStatus.RUNNING >^M
2014-08-20 08:35:08,708 TRACE [org.hibernate.internal.SessionImpl] (Thread-8 (HornetQ-client-global-threads-411174393)) Setting cache mode to: NORMAL^M
2014-08-20 08:35:08,708 TRACE [org.hibernate.event.internal.DefaultLoadEventListener] (Thread-8 (HornetQ-client-global-threads-411174393)) Loading entity: [de.mobilexag.mip.sdm.entity.MxTenant#1]^M
2014-08-20 08:35:08,708 TRACE [org.hibernate.event.internal.DefaultLoadEventListener] (Thread-8 (HornetQ-client-global-threads-411174393)) Attempting to resolve: [de.mobilexag.mip.sdm.entity.MxTenant#1]^M
2014-08-20 08:35:08,708 TRACE [org.hibernate.event.internal.DefaultLoadEventListener] (Thread-8 (HornetQ-client-global-threads-411174393)) Object not resolved in any cache: [de.mobilexag.mip.sdm.entity.MxTenant#1]^M
The IJ/JCA Synchronization callback delists the connection from the transaction before Hibernate session-2 has done its work with it. The Hibernate session syncs must run first, before IJ delists the resource from the transaction.
Other solutions or suggestions are welcome.