So the problem you had was that ManagedConnection.getXAResource was called before ManagedConnection.addConnectionEventListener? It is always dangerous to claim things about code, but I am sure that ManagedConnection.addConnectionEventListener is always called before ManagedConnection.getXAResource in the new implementation.
When connectionErrorOccurred is called, the ManagedConnection is destroyed and removed from the pool. IMO with a compliant adapter, this will result in all the connection handles associated with that ManagedConnection becoming unattached to any ManagedConnection. In the new implementation, if you cache connection handles accross method invocations, in the next invocation these handles will be associated with a presumably valid ManagedConnection obtained from the pool or newly created. Again IMO the adapter should throw enough of an exception to roll back the current tx if the physical connection dies. Are there some other issues I should look at? Have I missed something? thanks david jencks On 2002.04.24 11:07:07 -0400 Peter Antman wrote: > On 24 Apr, David Jencks wrote: > > On 2002.04.24 10:14:20 -0400 Peter Antman wrote: > > <big snip>> > >> I thing JBoss is the only appserver where JMS XA sending is not tied > to > >> the server nor to a specific JMS provider, but perhaps at a price: > close > >> your sessions!! Otherwise it works nice, I think and what should be > >> fixed are some problems with the app server side of the JCA > >> implementation. > > > > What are they? Can you be more specific? Any tests? Are the problems > still > > present with the all-new jca implementation in jboss 3? > > As I wrote in an earlier mail: > > The real problem with the RA is that it is not failsafe. In itself that > is pretty easilly fixed by adding an ExceptionListener, but it does not > work with the (old?) jbosspool code: > > First it takes the XAResource before it adds a listener, but does not > handle when it gets an invalid XAResource due to a connection failour > (and by that time it is to late to transmit the error via the listener). > > Then one can allways wonder about this: if we have a number of pooled > JMS session, all will become invallid when the connection has gone down > (the XAResource is connected to a ManagedConnection and must allways be > the same for each mc, but this is not possible if the connection/session > is reestablished, i.e all outsating mc with a broken connection must be > marked as invalid). But there is not way to know if the pool is just > trying pooled mc:s or are actually returning new one, which makes it > impossible to really know from the (XA)ConnectionManager how many times > it should retry. > > At least this is the case in the 2.4 line (I think). > > And I also had to write: I unfortunately do not have the time to test > this out in the near future (next couple of weeks), especially not with > the 3.0 line. > > Sorry. > //Peter > > > > Thanks > > david jencks > >> > >> //Peter > >> > > >> >>I could not come up with a good solution on this problem, except > >> >>documenting how to use it. If someone can find a solution, pleas > >> commit > >> >>it. > >> >> > >> >>//Peter > >> >> > > >> >> > Anyone have some time to check this out and look over what needs > to > >> be > >> >>done? > >> >> > > >> >> > Thanks, > >> >> > > >> >> > --jason > >> >> > > >> >> > > >> >> > _______________________________________________ > >> >> > Jboss-development mailing list > >> >> > [EMAIL PROTECTED] > >> >> > https://lists.sourceforge.net/lists/listinfo/jboss-development > >> >> > >> >>-- > >> >>------------------------------------------------------------ > >> >>Peter Antman Chief Systems Architect, Business Development > >> >>Technology in Media, Box 34105 100 26 Stockholm > >> >>WWW: http://www.tim.se WWW: http://www.backsource.org > >> >>Email: [EMAIL PROTECTED] > >> >>Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 > >> >>------------------------------------------------------------ > >> >> > >> >> > >> >>_______________________________________________ > >> >>Jboss-development mailing list > >> >>[EMAIL PROTECTED] > >> >>https://lists.sourceforge.net/lists/listinfo/jboss-development > >> > > >> > > >> > > >> > > >> > _________________________________________________________________ > >> > Join the world�s largest e-mail service with MSN Hotmail. > >> > http://www.hotmail.com > >> > > >> > > >> > _______________________________________________ > >> > Jboss-development mailing list > >> > [EMAIL PROTECTED] > >> > https://lists.sourceforge.net/lists/listinfo/jboss-development > >> > >> -- > >> ------------------------------------------------------------ > >> Peter Antman Chief Systems Architect, Business Development > >> Technology in Media, Box 34105 100 26 Stockholm > >> WWW: http://www.tim.se WWW: http://www.backsource.org > >> Email: [EMAIL PROTECTED] > >> Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 > >> ------------------------------------------------------------ > >> > >> > >> _______________________________________________ > >> Jboss-development mailing list > >> [EMAIL PROTECTED] > >> https://lists.sourceforge.net/lists/listinfo/jboss-development > >> > >> > > -- > ------------------------------------------------------------ > Peter Antman Chief Systems Architect, Business Development > Technology in Media, Box 34105 100 26 Stockholm > WWW: http://www.tim.se WWW: http://www.backsource.org > Email: [EMAIL PROTECTED] > Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 > ------------------------------------------------------------ > > > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
