<div> </div>
<div>I think I worked it out.</div>
<div> </div>
<div>It's just a matter of making the jndi name global.</div>
<div> </div>
<div>It seems that JBoss does not allow me to use the mysql</div>
<div>repository name as a local "java:" name.</div>
<div> </div>
<div>I made it global and everything went smoothly!</div>
<div> </div>
<div>Now I am just wondering whether there is a chance</div>
<div>to make it local in someway....</div>
<div> </div>
<div>Is it possible? Is it a JBoss 4.2.2 BUG?</div>
<div> </div>
<div>I post the old .xml files again:</div>
<div> </div>
<div>(In the current version I just disabled the local namespace setting: <use-java-context>false</use-java-context>)</div>
<div> </div>
<div>
<div><datasources><br> <local-tx-datasource><br><br> <jndi-name>jdbc/MySQLDB</jndi-name><br> <connection-url>jdbc:mysql:///brms-db</connection-url><br> <driver-class>com.mysql.jdbc.Driver
</driver-class><br> <user-name>drools</user-name><br> <password>drools</password><br> <min-pool-size>5</min-pool-size><br> <br> <max-pool-size>20</max-pool-size>
<br> <br> <idle-timeout-minutes>5</idle-timeout-minutes><br><br> <exception-sorter-class-name><br> com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter<br> </exception-sorter-class-name>
<br> <br> <valid-connection-checker-class-name><br> com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker<br> </valid-connection-checker-class-name><br> <br> </local-tx-datasource><br></datasources>
</div>
<div> </div>
<div>I've got the following persistence manager set-up in <jboss_home>\bin\repository.xml:</div>
<div> </div>
<div> <PersistenceManager class="org.apache.jackrabbit.core.persistence.db.JNDIDatabasePersistenceManager"><br> <param name="dataSourceLocation" value="java:jdbc/MySQLDB"/><br> <param name="schema" value="mysql"/>
<br> <param name="schemaObjectPrefix" value="${<a href="http://wsp.name/"><strong><font color="#002390">wsp.name</font></strong></a>}_"/><br> <param name="externalBLOBs" value="false" />
<br> </PersistenceManager></div>
<div> </div>
<div>Hope u can help with this.....</div>
<div> </div>
<div>Massi</div></div>