void function ( ) { String loc0 = UUID . randomUUID ( ) . toString ( ) ; try ( JMSContext loc1 = factory . createContext ( ) ) { loc1 . createProducer ( ) . setDeliveryMode ( NON_PERSISTENT ) . send ( queueForTransactionScope , loc0 ) ; assertTrue ( transactedConsumer . receive ( queueForTransactionScope , loc0 ) ) ; } }
test that a transaction-scoped jmscontext is properly cleaned up after the transaction completion . concode_field_sep String QUEUE_NAME_FOR_TRANSACTION_SCOPE concode_elem_sep ConnectionFactory factory concode_elem_sep BeanManagedMessageConsumer transactedConsumer concode_elem_sep Queue queueForTransactionScope concode_elem_sep Queue queueForRequestScope concode_elem_sep String QUEUE_NAME_FOR_REQUEST_SCOPE concode_field_sep JavaArchive createTestArchive concode_elem_sep void requestScoped