[ http://issues.apache.org/jira/browse/IBATIS-13?page=comments#action_12313008 ]
Brandon Goodin commented on IBATIS-13: -------------------------------------- Has then been fixed yet? > Doc error JNDI DataSource configuration > --------------------------------------- > > Key: IBATIS-13 > URL: http://issues.apache.org/jira/browse/IBATIS-13 > Project: iBatis for Java > Type: Bug > Components: Documentation > Reporter: Clinton Begin > Priority: Minor > > >> of the gate attempting to configure a JNDI > DataSource. > >> > >> The examples in the documentation are incorrect. > >> > >> What's documented: > >> > >> iBATIS-DAO-2.pdf (page 6): > >> > >> <!-- Example JNDI DataSource JDBC > Transaction Manager > >> --> > >> <transactionManager type="JDBC"> > >> <property name="DataSource" > value="JNDI"/> > >> <property name="DBJndiContext" > >> value="java:comp/env/jdbc/MyDataSource"/> > >> </transactionManager> > >> > >> iBATIS-SqlMaps-2.pdf (page 10): > >> > >> JndiDataSourceFactory > >> ... > >> <transactionManager type="JDBC" > > >> <dataSource type="JNDI"> > >> <property name="DataSource" > >> value="java:comp/env/jdbc/jpetstore"/> > >> </dataSource> > >> </transactionManager> > >> > >> What actually works ("DBJndiContext" > not "DataSource"): > >> > >> <transactionManager type="JDBC"> > >> <dataSource type="JNDI"> > >> <property name="DBJndiContext" > >> value="java:comp/env/jdbc/MyDataSource"/> > >> </dataSource> > >> </transactionManager> > >> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira