anonymous wrote : 
  | If you are running inside JBoss, use a JBossCache MBean (and deploy it as a MBean 
service).
  | 

One issue with using JBossCache MBean in the EJB environment is, you have to keep your 
CacheLoader outside of the EAR file and place your CacheLoader jar in the server lib 
directory.

Also, if the backend store is RDBMS, and if you would like to get access to the JDBC 
DataSource through ENC ( Enterprise Naming Context java:/comp) inside the CacheLoader, 
then you may have a problem (I did not try this, but since the CacheLoader is invoked 
within the MBean ClassLoader, I am assuming that the ENC is not available).

Here is how I am using the Cache in my EJB enviroment.

Create TreeCache through a startup servlet (That way I do not have to keep my 
CacheLoader class outside of the EAR file and I will not get Class Loading errors) and 
access the JDBC DataSource inside my CacheLoader using through ENC.

Your comments and feedback is welcome.

Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854112#3854112

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854112


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to