You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by "Howard W. Smith, Jr." <sm...@gmail.com> on 2013/05/07 07:48:13 UTC

Re: Question on MDB processing

Revisiting this topic...

On Sun, Mar 24, 2013 at 10:21 AM, Romain Manni-Bucau
<rm...@gmail.com>wrote:

> I'd use 1 + SUPPORTS but 2 works fine too
>


> Le 24 mars 2013 15:01, "almos" <al...@ukr.net> a écrit :
>
> >
> > 1) TransactionManagement=CMT + TransactionAttribute=NOT_SUPPORTED
> > 2) TransactionManagement=BMT
>

So, I marked my MDBs with the following:

TransactionManagement=CMT + TransactionAttribute=NOT_SUPPORTED
TransactionManagement=CMT + TransactionAttribute=SUPPORTS
TransactionManagement=CMT + TransactionAttribute=REQUIRED

and i still get the following in the log:

May 07, 2013 1:27:00 AM org.apache.geronimo.connector.work.WorkerContext run
INFO: Removing non-required WorkContextHandler with no context:
org.apache.geronimo.connector.work.TransactionContextHandler@34a72c6
May 07, 2013 1:27:00 AM org.apache.geronimo.connector.work.WorkerContext run
INFO: Removing non-required WorkContextHandler with no context:
org.apache.openejb.core.security.SecurityContextHandler@cb526da
May 07, 2013 1:27:00 AM org.apache.geronimo.connector.work.WorkerContext run
INFO: Removing non-required WorkContextHandler with no context:
org.apache.geronimo.connector.work.HintsContextHandler@1d3ee0cc

It would be nice to know how to prevent these lines showing up in the log
(every time a message is sent)..without using @Asynchronous methods. :)

Re: Question on MDB processing

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
On Tue, May 7, 2013 at 7:40 AM, Romain Manni-Bucau <rm...@gmail.com>wrote:

>
> these logs are important (maybe they should be in debug level) but that's a
> geronimo issue if so. Personally if it bothers me i just set the associated
> log level to warn (well in prod all logs should be either in war or err).
>
>
Excellent point. thanks.


> Did you  let the app get enough jms messages to see if it was just a log
> you get for each init of the pool or  not?
>

Hmmm, via experience, I learned that the MDBs are pooled, because the
Constructor is not executed...always, and with that said, I get these
messages every time message is 'sent'. onMessage(), I get these logs.

I can and have tolerate(d) these msgs, but I finally improved some
task-driven code, and wanted to minimize log a bit, so these lines in the
log were on my to-do list. :)

I like seeing INFO: ... in my log files, especially, when I'm trying to
debug newly-developed code or code that I am monitoring via log files, so
I'll tolerate these for now, and may try your recommendation at some point.

Thanks Romain!

Re: Question on MDB processing

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

these logs are important (maybe they should be in debug level) but that's a
geronimo issue if so. Personally if it bothers me i just set the associated
log level to warn (well in prod all logs should be either in war or err).

Did you  let the app get enough jms messages to see if it was just a log
you get for each init of the pool or  not?

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/5/7 Howard W. Smith, Jr. <sm...@gmail.com>

> I am using tomee simple MDB. Can you make a change in tomee, that will
> eliminate those lines from log?
>
> Honestly, I don't know the answer to your question, sorry.
>  On May 7, 2013 2:51 AM, "Romain Manni-Bucau" <rm...@gmail.com>
> wrote:
>
> > Hi,
> >
> > there is no link to transactions, that's JCA (not JTA). You can configure
> > logs to hide them. That said i wonder if it is not simply a start logging
> > (for each session of the AMQ pool). Then it is removed and it should be
> > better, no?
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > *Blog: **http://rmannibucau.wordpress.com/*<
> > http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
> >
> >
> > 2013/5/7 Howard W. Smith, Jr. <sm...@gmail.com>
> >
> > > Revisiting this topic...
> > >
> > > On Sun, Mar 24, 2013 at 10:21 AM, Romain Manni-Bucau
> > > <rm...@gmail.com>wrote:
> > >
> > > > I'd use 1 + SUPPORTS but 2 works fine too
> > > >
> > >
> > >
> > > > Le 24 mars 2013 15:01, "almos" <al...@ukr.net> a écrit :
> > > >
> > > > >
> > > > > 1) TransactionManagement=CMT + TransactionAttribute=NOT_SUPPORTED
> > > > > 2) TransactionManagement=BMT
> > > >
> > >
> > > So, I marked my MDBs with the following:
> > >
> > > TransactionManagement=CMT + TransactionAttribute=NOT_SUPPORTED
> > > TransactionManagement=CMT + TransactionAttribute=SUPPORTS
> > > TransactionManagement=CMT + TransactionAttribute=REQUIRED
> > >
> > > and i still get the following in the log:
> > >
> > > May 07, 2013 1:27:00 AM
> org.apache.geronimo.connector.work.WorkerContext
> > > run
> > > INFO: Removing non-required WorkContextHandler with no context:
> > > org.apache.geronimo.connector.work.TransactionContextHandler@34a72c6
> > > May 07, 2013 1:27:00 AM
> org.apache.geronimo.connector.work.WorkerContext
> > > run
> > > INFO: Removing non-required WorkContextHandler with no context:
> > > org.apache.openejb.core.security.SecurityContextHandler@cb526da
> > > May 07, 2013 1:27:00 AM
> org.apache.geronimo.connector.work.WorkerContext
> > > run
> > > INFO: Removing non-required WorkContextHandler with no context:
> > > org.apache.geronimo.connector.work.HintsContextHandler@1d3ee0cc
> > >
> > > It would be nice to know how to prevent these lines showing up in the
> log
> > > (every time a message is sent)..without using @Asynchronous methods. :)
> > >
> >
>

Re: Question on MDB processing

Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
I am using tomee simple MDB. Can you make a change in tomee, that will
eliminate those lines from log?

Honestly, I don't know the answer to your question, sorry.
 On May 7, 2013 2:51 AM, "Romain Manni-Bucau" <rm...@gmail.com> wrote:

> Hi,
>
> there is no link to transactions, that's JCA (not JTA). You can configure
> logs to hide them. That said i wonder if it is not simply a start logging
> (for each session of the AMQ pool). Then it is removed and it should be
> better, no?
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/5/7 Howard W. Smith, Jr. <sm...@gmail.com>
>
> > Revisiting this topic...
> >
> > On Sun, Mar 24, 2013 at 10:21 AM, Romain Manni-Bucau
> > <rm...@gmail.com>wrote:
> >
> > > I'd use 1 + SUPPORTS but 2 works fine too
> > >
> >
> >
> > > Le 24 mars 2013 15:01, "almos" <al...@ukr.net> a écrit :
> > >
> > > >
> > > > 1) TransactionManagement=CMT + TransactionAttribute=NOT_SUPPORTED
> > > > 2) TransactionManagement=BMT
> > >
> >
> > So, I marked my MDBs with the following:
> >
> > TransactionManagement=CMT + TransactionAttribute=NOT_SUPPORTED
> > TransactionManagement=CMT + TransactionAttribute=SUPPORTS
> > TransactionManagement=CMT + TransactionAttribute=REQUIRED
> >
> > and i still get the following in the log:
> >
> > May 07, 2013 1:27:00 AM org.apache.geronimo.connector.work.WorkerContext
> > run
> > INFO: Removing non-required WorkContextHandler with no context:
> > org.apache.geronimo.connector.work.TransactionContextHandler@34a72c6
> > May 07, 2013 1:27:00 AM org.apache.geronimo.connector.work.WorkerContext
> > run
> > INFO: Removing non-required WorkContextHandler with no context:
> > org.apache.openejb.core.security.SecurityContextHandler@cb526da
> > May 07, 2013 1:27:00 AM org.apache.geronimo.connector.work.WorkerContext
> > run
> > INFO: Removing non-required WorkContextHandler with no context:
> > org.apache.geronimo.connector.work.HintsContextHandler@1d3ee0cc
> >
> > It would be nice to know how to prevent these lines showing up in the log
> > (every time a message is sent)..without using @Asynchronous methods. :)
> >
>

Re: Question on MDB processing

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

there is no link to transactions, that's JCA (not JTA). You can configure
logs to hide them. That said i wonder if it is not simply a start logging
(for each session of the AMQ pool). Then it is removed and it should be
better, no?

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*



2013/5/7 Howard W. Smith, Jr. <sm...@gmail.com>

> Revisiting this topic...
>
> On Sun, Mar 24, 2013 at 10:21 AM, Romain Manni-Bucau
> <rm...@gmail.com>wrote:
>
> > I'd use 1 + SUPPORTS but 2 works fine too
> >
>
>
> > Le 24 mars 2013 15:01, "almos" <al...@ukr.net> a écrit :
> >
> > >
> > > 1) TransactionManagement=CMT + TransactionAttribute=NOT_SUPPORTED
> > > 2) TransactionManagement=BMT
> >
>
> So, I marked my MDBs with the following:
>
> TransactionManagement=CMT + TransactionAttribute=NOT_SUPPORTED
> TransactionManagement=CMT + TransactionAttribute=SUPPORTS
> TransactionManagement=CMT + TransactionAttribute=REQUIRED
>
> and i still get the following in the log:
>
> May 07, 2013 1:27:00 AM org.apache.geronimo.connector.work.WorkerContext
> run
> INFO: Removing non-required WorkContextHandler with no context:
> org.apache.geronimo.connector.work.TransactionContextHandler@34a72c6
> May 07, 2013 1:27:00 AM org.apache.geronimo.connector.work.WorkerContext
> run
> INFO: Removing non-required WorkContextHandler with no context:
> org.apache.openejb.core.security.SecurityContextHandler@cb526da
> May 07, 2013 1:27:00 AM org.apache.geronimo.connector.work.WorkerContext
> run
> INFO: Removing non-required WorkContextHandler with no context:
> org.apache.geronimo.connector.work.HintsContextHandler@1d3ee0cc
>
> It would be nice to know how to prevent these lines showing up in the log
> (every time a message is sent)..without using @Asynchronous methods. :)
>