You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by sL07 <lu...@asteriski.com> on 2009/07/07 07:02:17 UTC

sql logging help

hi all,

i am unable to get the SQL trace generated while using openEJB in Junit.
i have read all the posts regarding logging but it aint working for me.

i am using
           p.put(Context.INITIAL_CONTEXT_FACTORY, 
	          "org.apache.openejb.client.LocalInitialContextFactory");
			
			
			p.put("log4j.category.org.hibernate.SQL", "debug");
			p.put("log4j.category.org.hibernate", "debug");
			p.put("log4j.category.OpenEJB.options", "debug");
                      ctx = new InitialContext( p );


am i using the wrong category for the SQL trace?

any help appreciated.

-lp
-- 
View this message in context: http://www.nabble.com/sql-logging-help-tp24367165p24367165.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: sql logging help

Posted by sL07 <lu...@asteriski.com>.
answering my own question.

add the hibernate.show_sql to the persistence.xml

		<persistence-unit name="..">
			...
			<properties>
				...
===>				<property name="hibernate.show_sql" value="true"></property>
			</properties>

-lp
-- 
View this message in context: http://www.nabble.com/sql-logging-help-tp24367165p24371192.html
Sent from the OpenEJB User mailing list archive at Nabble.com.