Re: Does ibatis 2.x OSGi ready?

2009-08-06 Thread Clinton Begin
Yes, that would be best. Too bad that OSGi doesn't allow for the generally accepted best practice here... but Larry's suggestion would work well. I look forward to the patch. Clinton On Wed, Aug 5, 2009 at 9:27 PM, Larry Meadorslarry.mead...@gmail.com wrote: You could do this pretty

Re: Does ibatis 2.x OSGi ready?

2009-08-05 Thread Argan
1. find which the jar com.ibatis.common.resources.Resources is in 2. load the resource xxx.dtd from the jar use the ClassLoader which load the com.ibatis.common.resources.Resources class this maybe work, and is inspired by the yui compressor's JarClassLoader Clinton Begin wrote: And how do

Re: Does ibatis 2.x OSGi ready?

2009-08-05 Thread Larry Meadors
You could do this pretty transparently: 1) try Thread.blah.blah.blah to get the resource 2) if the resource is null, use Resources.class.getClassLoader() Make the change, write a test, and attach the source files to a JIRA issue. Larry On Wed, Aug 5, 2009 at 8:34 PM,