This appears to be done in JBoss here is the tail of the output from setting up the session factory shows that it is using the
Transaction strategy: org.hibernate.transaction.JTATransactionFactory
TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
Code:
14:48:50,613 INFO [NamingHelper] JNDI InitialContext properties:{}
14:48:50,613 INFO [DatasourceConnectionProvider] Using datasource: java:/LawcodesUserDS
14:48:50,613 INFO [SettingsFactory] RDBMS: PostgreSQL, version: 7.4.8
14:48:50,613 INFO [SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 7.4.7 JDBC3 with SSL (build 215)
14:48:50,614 INFO [Dialect] Using dialect: org.hibernate.dialect.PostgreSQLDialect
14:48:50,614 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.transaction.JTATransactionFactory
14:48:50,614 INFO [NamingHelper] JNDI InitialContext properties:{}
14:48:50,614 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
14:48:50,615 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
14:48:50,615 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
14:48:50,615 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
14:48:50,615 INFO [SettingsFactory] Automatic flush during beforeCompletion(): enabled
14:48:50,615 INFO [SettingsFactory] Automatic session close at end of transaction: enabled
14:48:50,615 INFO [SettingsFactory] JDBC batch size: 15
14:48:50,615 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
14:48:50,615 INFO [SettingsFactory] Scrollable result sets: enabled
14:48:50,615 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
14:48:50,615 INFO [SettingsFactory] Connection release mode: after_statement
14:48:50,615 INFO [SettingsFactory] Default batch fetch size: 1
14:48:50,615 INFO [SettingsFactory] Generate SQL with comments: disabled
14:48:50,615 INFO [SettingsFactory] Order SQL updates by primary key: disabled
14:48:50,615 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
14:48:50,615 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
14:48:50,615 INFO [SettingsFactory] Query language substitutions: {}
14:48:50,616 INFO [SettingsFactory] Second-level cache: enabled
14:48:50,616 INFO [SettingsFactory] Query cache: disabled
14:48:50,616 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
14:48:50,616 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
14:48:50,616 INFO [SettingsFactory] Structured second-level cache entries: disabled
14:48:50,616 INFO [SettingsFactory] Echoing all SQL to stdout
14:48:50,616 INFO [SettingsFactory] Statistics: disabled
14:48:50,616 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
14:48:50,616 INFO [SettingsFactory] Default entity-mode: pojo
14:48:50,647 INFO [SessionFactoryImpl] building session factory
14:48:52,322 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
14:48:52,323 INFO [NamingHelper] JNDI InitialContext properties:{}
14:48:52,334 INFO [Hibernate] SessionFactory successfully built and bound into JNDI [java:/hibernate/LawcodesUser]