-
1. Re: QueueSession commits not automatically synchronized with
adrian.brock Jan 19, 2006 9:37 AM (in response to svinther)"svinther" wrote:
or am I doing something else wrong.
Yes. -
2. Re: QueueSession commits not automatically synchronized with
svinther Jan 19, 2006 9:49 AM (in response to svinther)Well I found out that I needed to lookup java:/JmsXA as the ConnectionFactory. I thought I already did that before and got a ClassCast Exception, but I guess I did something else wrong at that time.
So could you please be a little more specifc about what else im doing wrong.
Also I have read this wiki entry http://wiki.jboss.org/wiki/Wiki.jsp?page=MyJMSReceiverCannotSeeADBUpdateMadeInTheSameTransactionAsASend
and understand that 2 phase commits does not guarantee that when the transaction is done, all datasources has completed their commit operations. The wiki entry states that setting the isolation level of the datasource to TRANSACTION_SERIALIZABLE should prevent the problem. So I tried that, but with no luck, the message still gets to the next MDB before entity bean operations gets committed -
3. Re: QueueSession commits not automatically synchronized with
adrian.brock Jan 19, 2006 10:03 AM (in response to svinther)"svinther" wrote:
So could you please be a little more specifc about what else im doing wrong.
I could but you could also use search and even enable trace logging so we have
a clue what you are talking about.
Your mistakes in the original post.
* Not using pooled transactional jms resource adapter
* Not using said pooled resource as a pool instead allocating resources per ejb instance. -
4. Re: QueueSession commits not automatically synchronized with
adrian.brock Jan 19, 2006 10:03 AM (in response to svinther)http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossHelp
Will help you get better (any) answers. -
5. Re: QueueSession commits not automatically synchronized with
svinther Jan 20, 2006 8:35 AM (in response to svinther)"adrian@jboss.org" wrote:
* Not using pooled transactional jms resource adapter
Is this not fixed this by using java:/JmsXA as connection factory, as configured in my earlier post ?
* Not using said pooled resource as a pool instead allocating resources per ejb instance.
Im confused about where to allocate/free connections, if not to be done in the ejbCreate/ejbRemove methods.
Unless it is ok to allocate them in the business method, and not free them later. Is this allowed/recommended for pooled connections