This content has been marked as final.
Show 2 replies
-
1. Re: a issue of deploying the Hibernate-based application on
nimrod Sep 27, 2004 3:36 AM (in response to nimrod)The jboss-service.xml looks like:
<server> <mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=myHibernate"> <depends>jboss.jca:service=RARDeployer</depends> <depends>jboss.jca:service=LocalTxCM,name=myHibernateSqlServerDB</depends> <attribute name="MapResources">com/xx/hibernate/po/Book.hbm.xml,com/xx/hibernate/po/Student.hbm.xml,com/xx/hibernate/po/Teacher.hbm.xml</attribute> <attribute name="JndiName">java:/HibernateFactory</attribute> <attribute name="Datasource">java:/myHibernateSqlServerDB</attribute> <attribute name="Dialect">net.sf.hibernate.dialect.SQLServerDialect</attribute> <attribute name="UseOuterJoin">true</attribute> <attribute name="ShowSql">true</attribute> <attribute name="UserTransactionName">UserTransaction</attribute> <attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute> <attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute> </mbean> </server>
-
2. Re: a issue of deploying the Hibernate-based application on
nimrod Sep 27, 2004 3:37 AM (in response to nimrod)the mssql-ds.xml looks like:
<datasources> <local-tx-datasource> <jndi-name>myHibernateSqlServerDB</jndi-name> <connection-url>jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=hibernate;SelectMethod=cursor</connection-url> <driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class> <user-name>sa</user-name> <password></password> <metadata> <type-mapping>MS SQLSERVER2000</type-mapping> </metadata> </local-tx-datasource> </datasources>