It's no different than any other classpath resource..... This isn't really an iBATIS question, it's a general Java question, and is quite a big topic. :-/ Clinton
On Tue, Jun 9, 2009 at 6:45 AM, Bhanwar <bhanwa...@jamochatech.com> wrote: > > Thanks Clinton..this is what we are looking for > > We are working on the java project, and would like to encode the XML files > into a JAR files, so as IBatis will load the queries from the jar file > instead of XML's. > > If you can help on how to go about it or any document , will be highly > appreciated. > > Thanks, > > Bhanwar Gupta > > > > > Clinton Begin wrote: > > > > Of course. But are you asking this for a .NET or Java project? > > > > The other thing you can do is write an encoded/encrypted serializer that > > converts an XML file into some encoded form, then your app can decode it > > upon reading it in (tie it to a signed license key perhaps, to make it > > difficult for your customers to share the XML file contents). > > > > But remember, this won't protect against anyone who knows what they're > > doing. It will only protect against casual browsing and accidental > > editing. > > > > If you're QA department would like to see a demonstration of extracting > > the > > SQL from a JAR or DLL, even if it's embedded in a class file, I'm sure > > anyone on this list would be happy to show them. > > > > Clinton > > > > On Tue, Jun 9, 2009 at 3:54 AM, Bhanwar <bhanwa...@jamochatech.com> > wrote: > > > >> > >> Dear Vince, > >> > >> Just wondering if we can embed in the DLL, Is there a way to embed the > >> same > >> in a JAR file??? > >> > >> Thanks, > >> > >> Bhanwar > >> > >> > >> > >> Bhanwar wrote: > >> > > >> > i, > >> > > >> > We have extensively used IBatis in our project , but it is getting > >> > difficult for us to pass through the QA test as > >> > > >> > 1. Queries (Schema) is exposed to the client in the form of XML's ( > >> client > >> > can access the queries by navigating through directory and going > >> through > >> > the XML files) > >> > 2.Same is the case with ibatis.properties > >> > > >> > Please help us on how do we encode or protect our IBatis XML files > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/How-to-Encode-or-Protect-IBatis-XML-files-tp23938730p23939770.html > >> Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/How-to-Encode-or-Protect-IBatis-XML-files-tp23938730p23942145.html > Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. > >