I am setting up a test bed with iBatis on my local machine. Here is my sqlmapconfig.xml.

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-config-2.dtd";>

<sqlMapConfig>
 <transactionManager type="JDBC" commitRequired="false">
   <dataSource type="SIMPLE">
     <property name="JDBC.Driver" value="org.postgresql.Driver"/>
     <property name="JDBC.ConnectionURL" value="jdbc:postgresql:billing"/>
     <property name="JDBC.Username" value="postgres"/>
     <property name="JDBC.Password" value="postgres"/>
   </dataSource>
 </transactionManager>
 <sqlMap resource="com/test/res/Playground.xml" />
</sqlMapConfig>

It fails to load the sqlMap resource because it cannot find it. I've also tried moving the xml file outside of the Jar file and using "file:///c:/directory/Playground.xml" and that resulted in the same error. Im using this inside of a system that has its own method of resolving resources inside of jar files. Is it possible that I can just pass an InputStream or other related to my SqlMapClient to obtain the same result?

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to