-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: What is the Impact of Disabling the Second-level of Caching?
PostPosted: Tue Apr 18, 2006 10:10 am 
Beginner
Beginner

Joined: Tue Aug 09, 2005 1:34 am
Posts: 26
Location: Bangalore
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.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 18, 2006 10:19 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Read Hibernate docs on 2nd level cache.

For better cache handling inside JBossAS use JBoss Cache - is configurable through JMX.

_________________
--------------------------------
Ales Justin
JBoss, a division of Red Hat


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 18, 2006 11:43 am 
Beginner
Beginner

Joined: Tue Aug 09, 2005 1:34 am
Posts: 26
Location: Bangalore
Hi,

Thanks for the solution.
But can you please let me know how does the second level of cache configured in the treecache-service.xml for caching application objects.

Thanks
Manjith A.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 18, 2006 12:52 pm 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Read JBoss Cache docs.
You also have a very short version of docs - since I see you are not a reading person - and they are sufficient to start with JC.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.