-->
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.  [ 2 posts ] 
Author Message
 Post subject: Shared cache between many applications within JBoss
PostPosted: Mon Feb 20, 2006 7:31 am 
Newbie

Joined: Fri Apr 22, 2005 11:30 am
Posts: 5
Hi,

We are using Hibernate 3.1.2 with JBoss 4.0.3SP1. We deploy many similar applications within the same container, using jboss-app.xml like:

<jboss-app>
<loader-repository>dev:loader=e-Photoshop_dev.ear</loader-repository>
</jboss-app>

Now we are trying to optimize the performance with the use of caching. So far so good with EHCache. The only thing is, that each cache is per app.

Is there a way to use a "global" shared betweeen apps cache? It would greatly improve the usage of the memory.

Thanks,
Bartek


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 20, 2006 3:05 pm 
Regular
Regular

Joined: Wed Feb 08, 2006 3:59 pm
Posts: 75
If you use a single SessionFactory MBean, you will have a single cache, and the SessionFactory will be accessible for all apps through JNDI.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.