Can you maybe produce a small junit test so that the problem can be reproduced
and debugged ?
On Thu, Feb 28, 2008 at 1:34 PM, Andrei Ivanov <[EMAIL PROTECTED]> wrote:
> Hmm... I don't know exactly who should rollback the transaction...
> Using the default behaviour, if an exception happens when the consumer
> processes one message, the next messages aren't seen by the
> consumer...
> I'm not very familiar with JMS and how it is supposed to work, so, my
> sollution was to extend org.jencks.XAEndpoint and do something like:
>
> public void onMessage(Message message) {
> try {
> super.onMessage(message);
> } catch (Exception e) {
> try {
> doRollback(e);
> }
> catch (ResourceException re) {
> throw new RuntimeException(re);
> }
> }
> }
>
> It seems to work... although some more exceptions are beeing logged...
> that's why I was hoping that someone more knowledgeable would look at
> the issue...
>
>
>
> On 2/28/08, Guillaume Nodet <[EMAIL PROTECTED]> wrote:
> > I tend to agree with one of the comments posted. I would send it to
> > the ActiveMQ list.
> > Anyway, before reaching the code you mentionned where the exception
> > was discarded,
> > I'd expect someone to commit or rollback the transaction at some
> > point. Isn't it the
> > case ?
> >
> >
> > On Thu, Feb 28, 2008 at 10:30 AM, Andrei Ivanov <[EMAIL PROTECTED]> wrote:
> > > On 11/26/07, Andrei Ivanov <[EMAIL PROTECTED]> wrote:
> > > > Hello,
> > > > I'm having the same problem described at
> > > > http://www.nabble.com/Problems-with-Rollbacks-tf3404998.html
> > > >
> > > > Does anybody know a sollution please?
> > > >
> > >
> > > Since there's been some activity here, I'm asking this again, hoping
> > > for an answer...
> > >
> > >
> > >
> >
> > > ---------------------------------------------------------------------
> > > To unsubscribe from this list, please visit:
> > >
> > > http://xircles.codehaus.org/manage_email
> > >
> > >
> > >
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list, please visit:
> >
> > http://xircles.codehaus.org/manage_email
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email