[jboss-dev-forums] [JBoss AS 7 Development] - How to configure ehcache provider in jboss 7 datasource?
Prabhakar reddy Komatreddy
do-not-reply at jboss.com
Thu Oct 11 04:54:08 EDT 2012
Prabhakar reddy Komatreddy [https://community.jboss.org/people/prabhakar.komatreddy] created the discussion
"How to configure ehcache provider in jboss 7 datasource?"
To view the discussion, visit: https://community.jboss.org/message/764297#764297
--------------------------------------------------------------
Hello,
In my application, i am using hibernate, mysql, ehcache.
hibernate.cfg.xml
-------------------------
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
" http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver
</property>
<property name="connection.url">jdbc:oracle:thin:@www.java4s.com:1521:XE</property>
<property name="connection.username">system</property>
<property name="connection.password">admin</property>
<property name="cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<property name="show_sql">true</property>
<property name="hbm2ddl.auto">update</property>
<mapping resource="Product.hbm.xml"></mapping>
</session-factory>
</hibernate-configuration>
Is it possible to configure application related stuff in jboss datasource?
I would like to configure ehcache provider details in jboss datasource in standalone.xml file.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/764297#764297]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121011/47ff76ec/attachment.html
More information about the jboss-dev-forums
mailing list