Sorry about the wrong forum; Sybase 12.x. I have several dozen hbm.xml files 
for each entity class, and one hibernate-service.xml file (below). I found an 
old document (somewhere that showed (maybe in Hibenate 2.x and pre-JBoss AS 4) 
the various entities linked to a specific connection but trying that generated 
an error).

The Hibernate engine during configuration, seems to read each hbm.xml file N 
times - one for each SessionFactory defined below. Seems to be a bit of a waste 
considering some don't belong on certain ones...?

<?xml version="1.0" encoding="UTF-8"?>

    
        <!-- datasource settings -->
        java:/applicationSecurity 
        org.hibernate.dialect.SybaseDialect 
        <!-- bind the hibernate service to jndi -->
        java:/hibernate/SfApplicationSecurity
        org.hibernate.cache.HashtableCacheProvider
        <!-- logging -->
        true
    
    
        <!-- datasource settings -->
        java:/working 
        org.hibernate.dialect.SybaseDialect 
        <!-- bind the hibernate service to jndi -->
        java:/hibernate/SfWorking
        org.hibernate.cache.HashtableCacheProvider
        <!-- logging -->
        true
    
    
        <!-- datasource settings -->
        java:/common 
        org.hibernate.dialect.SybaseDialect 
        <!-- bind the hibernate service to jndi -->
        java:/hibernate/SfCommon
        org.hibernate.cache.HashtableCacheProvider
        <!-- logging -->
        true
    
    
        <!-- datasource settings -->
        java:/employeeWarehouse 
        org.hibernate.dialect.SybaseDialect 
        <!-- bind the hibernate service to jndi -->
        java:/hibernate/SfEmployeeWarehouse
        org.hibernate.cache.HashtableCacheProvider
        <!-- logging -->
        true
    
 


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

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

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to