[ http://issues.apache.org/jira/browse/IBATIS-13?page=all ]
Clinton Begin closed IBATIS-13:
-------------------------------
Fix Version: 2.1.5
Resolution: Fixed
Assign To: Clinton Begin
corrected as described
> 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
> Assignee: Clinton Begin
> Priority: Minor
> Fix For: 2.1.5
>
> >> 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