I have add mysql-connector-java-3.0.11-stable-bin.jar under 
JBOSS_HOME\server\default\lib  and mysql-ds.xml under JBOSS_HOME\server\default\deploy,
the hibernatecfg.xml is

  | <?xml version='1.0' encoding='utf-8'?>
  | <!DOCTYPE hibernate-configuration PUBLIC
  |         "-//Hibernate/Hibernate Configuration DTD 2.0//EN"
  | 
  |  "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd";>
  | 
  | <hibernate-configuration>
  | 
  |     <!-- a SessionFactory instance listed as /jndi/name -->
  |     <session-factory>         
  | 
  |         <!-- properties -->                
  |         <property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
  |         <property 
name="connection.driver_class">org.gjt.mm.mysql.Driver</property> 
  |             <property 
name="connection.provider_class">net.sf.hibernate.connection.DatasourceConnectionProvider</property>
  |             <property name="connection.datasource">java:/MySqlDS</property>
  |             <property 
name="transaction.factory_class">net.sf.hibernate.transaction.JTATransactionFactory</property>
  |             <property name="cache.use_query_cache">true</property>          
  |             <property 
name="cache.provider_class">net.sf.hibernate.cache.HashtableCacheProvider</property>
  |     
  |         <!-- mapping files -->
  |         <mapping resource="******.hbm.xml"/>
  |             ......
  |     </session-factory>
  | 
  | </hibernate-configuration>
  | 

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to