Ik heb hibernate als een MBean geregistreerd binnen JBoss:
Dit betekend echter wel dat ik een lossen .SAR archive krijg. Is dit de normale manier van werken? Welke manieren zijn er nogmeer?
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| <server>
<mbean code="org.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateFactory,name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=jdbc/adressbookservice</depends>
<!-- Make it deploy ONLY after DataSource had been started -->
<attribute name="MapResources">mappings/adress.hbm.xml</attribute>
<attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
<attribute name="Datasource">java:/jdbc/adressbookservice</attribute>
<attribute name="Dialect">org.hibernate.dialect.MySQLDialect</attribute>
<attribute name="TransactionStrategy">org.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">org.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<!-- <attribute name="UseOuterJoin">false</attribute>-->
<!-- <attribute name="ShowSql">false</attribute>-->
<attribute name="UserTransactionName">UserTransaction</attribute>
</mbean>
</server> |
Dit betekend echter wel dat ik een lossen .SAR archive krijg. Is dit de normale manier van werken? Welke manieren zijn er nogmeer?
3015 Wp-z 5360 Wp-nno op 2 x SMA-SB3600 TL-21, Warmtepomp: ERSC-VM2CR2 / PUHZ-SHW140 YHA, WTW Q350, EV Kia Ev6 GT-Line