-
1. Re: JMS connection factory transaction mode is xa, however the the MDB transaction type is of NOT_SUPORTED
jbertram Mar 4, 2015 11:35 AM (in response to nthota)1 of 1 people found this helpfulMy question is that the connection factory is configured with xa transaction mode, however the bean is marked as transaction NOT_SUPPORTED.
Is this a valid configuration?
Yes, it is valid.
In fact, the two things don't really have anything to do with each other because a producer doesn't send a message to a consumer (e.g. an MDB); a producer sends a message to a destination. The transaction semantics of a consumer (which consumes a message from a destination) are completely unrelated to the transaction semantics of a producer.
-
2. Re: Re: JMS connection factory transaction mode is xa, however the the MDB transaction type is of NOT_SUPORTED
nthota Mar 5, 2015 8:00 AM (in response to jbertram)Thanks Justin for quick reponse and clear explanation.
I have couple of questions here. Please note that the sender MDB is also marked with Transaction type as NOT_SUPPORTED.
As this connection factory is only used by only these two MDBs, is xa transaction mode required here?.
Does it have any overhead?
@MessageDriven(name = "PreprocessorMDB", activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), @ActivationConfigProperty(propertyName = "destination", propertyValue = "java:/queue/queue1"), @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") }) @TransactionManagement(value = TransactionManagementType.CONTAINER) @TransactionAttribute(value = TransactionAttributeType.NOT_SUPPORTED) public class PreprocessorMDB implements MessageListener { @Resource(mappedName = "java:/JmsXAForDataProcessor") ConnectionFactory connectionFactory; @Resource(mappedName = "java:/queue/queue2") Queue dataProcessorQueue;
-
3. Re: Re: JMS connection factory transaction mode is xa, however the the MDB transaction type is of NOT_SUPORTED
jbertram Mar 5, 2015 10:22 AM (in response to nthota)I have couple of questions here. Please note that the sender MDB is also marked with Transaction type as NOT_SUPPORTED.
As this connection factory is only used by only these two MDBs, is xa transaction mode required here?.
If the connection factory is not being used for XA transactions then it's not necessary to explicitly configure it to support XA transactions.
Does it have any overhead?
No.
-
4. Re: JMS connection factory transaction mode is xa, however the the MDB transaction type is of NOT_SUPORTED
nthota Mar 6, 2015 12:40 PM (in response to jbertram)Thanks Justin, I got the answer