Results 1 to 4 of 4

Thread: Setting EntityResolver

Hybrid View

  1. #1

    Default Setting EntityResolver

    Hello,

    I am trying to use iBATIS in a standalone Spring application. For some reason, I'm not able to connect to the network to validate their DTDs. To get around this (and for performance reasons), I'd like to access the DTDs in the iBATIS jar file.

    I have emulated the technique used by Spring to get its DTDs in the BeanDtdResolver class, however, I don't know how to plug my entity resolver class in.

    Does anyone know how this might be done?

    Thanks,
    Bill

  2. #2
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    Unless I'm missing something you're trying to make iBatis look for the DTD somewhere else, so it probably required knowledge of the internals of iBatis. You may have a better chance of getting a reply on the iBatis suport forums.
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

  3. #3

    Default Resolved the issue...

    Hello,

    Since I posted the question, I'll post the answer.

    Its basically a RTFM situation along with a rookie mistake or two. I was following the Spring samples which are in iBATIS 1.x, but had downloaded the Developer's Guide from iBATIS. Somehow I intermixed 1.x and 2.0 XML mappings and so the DTD resolution got a bit confusing.

    If I could say anything, it would be nice if the Spring samples used iBATIS 2.0. But that's not a very minor point of feedback.

    Bill

  4. #4
    Join Date
    Aug 2004
    Location
    Toronto, Canada
    Posts
    736

    Default

    Hmm, I didn't realize the Spring samples are still for iBatis 1.x. I'll try to get that corrected. It's a straight one-to-one conversion, very straightforward...
    Colin Sampaleanu
    SpringSource - http://www.springsource.com

Similar Threads

  1. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM
  2. JBoss DataSource not found
    By moacsjr in forum Data
    Replies: 10
    Last Post: Aug 25th, 2005, 01:26 PM
  3. Spring/Hibernate Delete/Update Problem
    By Noname in forum Data
    Replies: 4
    Last Post: Jun 15th, 2005, 11:07 PM
  4. Replies: 2
    Last Post: May 13th, 2005, 05:42 AM
  5. Transaction Management
    By caverns in forum Data
    Replies: 3
    Last Post: Mar 8th, 2005, 06:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •