Hi,
Hibernate version:3.1
I have integrated Hibernate with JBoss Clustering and working on the Transparency Application Failover (TAF).
My Code is which handles TAF is: -
Code:
InitialContext initialContext = new InitialContext();
DataSource dataSource = (javax.sql.DataSource)initialContext.lookup("XAOracleDS");
Connection connection = dataSource.getConnection();
Configuration configuration = new Configuration();
configuration.configure("hibernate-cfg.xml");
SessionFactory factory = configuration.buildSessionFactory();
Session session = factory().openSession(connection);
Now, when I create the session object by passing the connection object,
it disables the second level of caching as specified in the Hibernate API.
Can anybody let me know the impact of disabling the Second-level of Caching?
And also can anybody suggest me is there any other mechanism with which I can configure and enable the second level of caching in JBoss 4.0.2?
Thanks in Advance for the solution.
Thanks
Manjith A.