Atomikos Forum

tm.out logs few rows

Hi, I'm using Atomikos with Spring and Ibatis.

Atomikos log shows few rows, but the log level I configured is DEBUG.

Any suggestions to increase the logged information?
dr46 Send private email
Friday, May 09, 2008
 
 
Ah, for logging, I use Log4j.
dr46 Send private email
Friday, May 09, 2008
 
 
Hi,

Log4j support is only available as from 3.3.0 - to be released soon. For earlier releases, the logs are in a file called tm.out

Guy
Guy Pardon Send private email
Friday, May 09, 2008
 
 
If you think tm.out is too short, please post the contents here.
Guy Pardon Send private email
Friday, May 09, 2008
 
 
Hi, this is my tm.out.

08-05-09 17:00:48,989 [main] XACART1: refreshed XAResource
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.soap_commit_protocols = atomikos,wsat
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.console_file_name = tm.out
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.console_file_count = 1
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.automatic_resource_registration = true
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.client_demarcation = false
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.soap_request_threads = 1
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.threaded_2pc = true
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.soap_host_address = xxx.xxx.xxx.xxx
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.serial_jta_transactions = false
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.log_base_dir = ./atomikos
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.console_log_level = debug
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.max_actives = 50
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.soap_port = 8088
08-05-09 17:00:49,410 [main] USING com.atomikos.icatch.checkpoint_interval = 500
08-05-09 17:00:49,410 [main] USING com.atomikos.icatch.enable_logging = true
08-05-09 17:00:49,410 [main] USING com.atomikos.icatch.output_dir = ./atomikos
08-05-09 17:00:49,410 [main] USING com.atomikos.icatch.log_base_name = tmlog
08-05-09 17:00:49,410 [main] USING com.atomikos.icatch.console_file_limit = -1
08-05-09 17:00:49,410 [main] USING com.atomikos.icatch.max_timeout = 3600000
08-05-09 17:00:49,410 [main] USING java.naming.factory.initial = com.sun.jndi.rmi.registry.RegistryContextFactory
08-05-09 17:00:49,410 [main] USING com.atomikos.icatch.tm_unique_name = SRICDIFF
08-05-09 17:00:49,410 [main] USING java.naming.provider.url = rmi://localhost:1099
08-05-09 17:00:49,410 [main] USING com.atomikos.icatch.service = com.atomikos.icatch.standalone.UserTransactionServiceFactory
08-05-09 17:00:51,140 [main] Coordinator not recoverable: SRICDIFF0000100001
08-05-09 17:00:51,249 [main] XACART: refreshed XAResource
08-05-09 17:00:53,992 [main] XADIFF: refreshed XAResource
08-05-09 17:00:53,992 [main] Coordinator not recoverable: SRICDIFF0000100001
08-05-09 17:01:51,146 [Atomikos:0] Rollback of timedout ACTIVE coordinator !
dr46 Send private email
Friday, May 09, 2008
 
 
Hi,

This is the WARN level, not DEBUG.

In jta.properties, please set com.atomikos.icatch.console_log_level=DEBUG to see more. That should do it.

Guy
Guy Pardon Send private email
Saturday, May 10, 2008
 
 
08-05-09 17:00:49,394 [main] USING com.atomikos.icatch.console_log_level = debug

How you can see, the log level is debug.
dr46 Send private email
Monday, May 12, 2008
 
 
Hi,

There must be some error in your configuration then. If a transaction is started then you see DEBUG entries in the tm.out - otherwise no transaction is started.

Guy
Guy Pardon Send private email
Monday, May 12, 2008
 
 
Hi,

Transactions work well, rollback and commit on my Oracle databases are OK.

I don't understand very well how to configure jta.properties for logging more informations in debug mode.

This is my jta.properties:

com.atomikos.icatch.service=com.atomikos.icatch.standalone.UserTransactionServiceFactory
com.atomikos.icatch.console_file_name = tm.out
com.atomikos.icatch.log_base_name = tmlog
com.atomikos.icatch.output_dir = ./atomikos
com.atomikos.icatch.log_base_dir = ./atomikos
com.atomikos.icatch.tm_unique_name = SRICDIFF
com.atomikos.icatch.console_log_level = debug
com.atomikos.icatch.serial_jta_transactions=false
com.atomikos.icatch.automatic_resource_registration=true
com.atomikos.icatch.max_actives=50
com.atomikos.icatch.max_timeout=3600000
com.atomikos.icatch.enable_logging=true

NB: Spring side the configuration is the same I found in the official wiki.

I have only a trouble: what's the best practice to configure a Datasource to use only for selecting operations? I had configured it declaring a SimpleDataSourceBean and using the OracleXADataSource, but perhaps it is not necessary.
dr46 Send private email
Monday, May 12, 2008
 
 
Hi,

Did you try DEBUG instead of debug?


HTH
Guy
Guy Pardon Send private email
Friday, May 16, 2008
 
 
Thank you for your support, now application logs very well.

Now, I would to log using Log4J.

I'm using 3.3 version of Atomikos and I added the file slf4j-log4j12-1.4.3.jar to my classpath. In my log4j.properties I had the row 'log4j.logger.atomikos=DEBUG,ROOT', but application still logs in the file 'tm.out'.
dr46 Send private email
Monday, May 19, 2008
 
 
Hi,

We also log to tm.out because we use that file for our own diagnostics. Is that a problem?

Guy
Guy Pardon Send private email
Thursday, May 22, 2008
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics