--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
|
This email has been checked for viruses by Avast antivirus software.
|
Im using this for tomcat dbcp
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<environments default="development">
<environment id="development">
<transactionManager type="JDBC"/>
<dataSource type="JNDI">
<property name="data_source" value="java:/comp/env/jdbc/test"/>
</dataSource>
</environment>
</environments>
</configuration>
And it runs well. On JBoss should be the same, perhaps the only difference is on jndi name. Also make sure you set your jndi on web.xml and on jboss standalone.xml (or standalone-ha.xml)
---
sent from my mobile device.
Check out the WAS(JBoss) JNDI settings.
For example, JNDI settings must be in the 'data_source' names in the server.xml file.
--