On Feb 20, 2007, at 6:16 AM, Anita Kulshreshtha wrote:
Thanks Dain and David! I started with JTAStats thinking that the
transaction manager (TM) must be keeping track of all the decision it
makes and it will be a piece of cake to get the stats! Here are the
things I need to understand:
1. What is a JTAResource? If it is the TM then its type should be
JTA_RESOURCE.
I think it's the TM. Maybe the j2eeType got confused when Dain too
out the extra layer of wrapping?
2. IIUC, the JTAstats include only the JTA transactions. The
information about individual resource managers can be gotten from the
resource managers. This information will include all transactions (JTA
and non JTA).
I don't know of any way to track non-jta transactions in general. We
could for an interface we know about such as jdbc, but for a
"generic" j2ca connector we have no way to detect what it regards as
the transaction control mechanism or indeed what it might think a
transaction is.
If I have to only consider the JTA transaction, will it
not be easier for the TM to keep track of the number of transactions
committed/rolledback/active?
As dain suggested, I think that the best way to implement this with
a listener/monitor, and have the tm notify on transaction start, and
the transaction to notify on transaction completion. Someone else
might want to listen for these events and having the statistics
tracking in a separate class will keep the functional transaction
code simpler.
thanks
david jencks
more inline..
--- David Jencks <[EMAIL PROTECTED]> wrote:
On Feb 8, 2007, at 9:37 AM, Dain Sundstrom wrote:
GeronimoTransactionManager is the only one that know that info.
I personally would prefer if you would add a monitor to that class
instead of adding lots of extra logic to that class. The monitor
would be notified of these events, and your implementation would
keep track of the stats.
I agree about the monitor.
I think you need to get the start tx events from the transaction
manager and the end transaction events from the transactions since
it's possible to commit a transaction directly without going through
the tm.
Is this true of JTA transactions? It is possible that I am totally
missing the point!
Thanks
Anita
thanks
david jencks
-dain
On Feb 8, 2007, at 6:11 AM, anita kulshreshtha wrote:
Could someone point me to the code which could be used to
generate
information about number of active transactions, number of
committed
transactions, and number of rolled-back transactions.
Thanks
Anita
_____________________________________________________________________
_______________
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367
______________________________________________________________________
______________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com