Title: Ibatis property file issue

We develop our apps in two environments, Eclipse/IntelliJ for business logic and BEA Weblogic Workshop for the portal UI. The problem is in creating a single iBatis property file that will work in both environments.

If I use the classpath for the property file and use

  <sqlMap resource="maps/Office_View.xml"/>

It works in E/I but since Workshop doesn't move non-class files around in its "deployment" procedure to Weblogic server the files don't make it into the classpath (which you basically have no control over).

If I do the URL method and do

<sqlMap url="" href="file:./maps/Active_Agent_Office_View.xml">file:./maps/Active_Agent_Office_View.xml"/>

This doesn't work in E/I unless the url is relative to the working directory and only works in workshop if you stick everything relative to the domain root directory.

The basic problem is that iBatis uses

    URL url = "" URL(urlString);

Which in the case of a relative url doesn't work unless its relative to the current working directory, NOT the ibatis property file.

I would like to see a change to sqlMap xml definition to indicate that the url reference is relative to the iBatis property file. This was if I can load the main property file iBatis can easily load the sqlmap files from the same directory.

In the meantime, any ideas? I can move stuff around with ANT for working in Workshop but it's irritating.

- Andrew


STATEMENT OF CONFIDENTIALITY:     The information contained in this message or 
any attachments to this message are intended only for the person(s) or entity 
to which it is addressed and may contain confidential and/or privileged 
material as well as being protected from disclosure.   Any review, 
retransmission, dissemination or other use of, or taking of any action in 
reliance upon, this information by persons or entities other than the intended 
recipient is strictly prohibited. If you received this in error, please contact 
the sender immediately and delete the material from any computer.

Reply via email to