[OJB-developers] RE: Loading the repository in Tomcat
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2002-03-11 12:08:38
|
Hi Bill, > -------- Original Message -------- > Subject: RE: Loading the repository > Date: Sat, 9 Mar 2002 21:23:58 -0500 > From: "Bill Robertson" <bi...@te...> > To: "Thomas Mahler" <tho...@ho...> > > Hello Thomas, > > Now that you've had a few days to look at my previous mail, > do you have any thoughts about what's going on? > In the last weeks there have been several complaints (or questions) about using OJB within Tomcat. I started to setup a Tomcat environment over the weekend to write a little demo Servlet using OJB. I will publish my findings and propose some hints how the mentioned problems can be solved. I hope to get things finished this week ! thanks for your patience > Thanks, > Bill > > -----Original Message----- > From: Thomas Mahler [mailto:tho...@ho...] > Sent: Monday, March 04, 2002 5:17 AM > To: Bill Robertson > Subject: Re: Loading the repository > > > Hi Bill, > > > Bill Robertson wrote: > > > Hello, > > > > I made a change to ojb to allow it to load a repository > > file from the classpath (i.e. getClass().getResource()) as > > an alternative. I will sheepishly admit that I didn't > > understand what the existing method does. > > > > > The current solution is supposed to also load stuff from the > classpath. > It does look that strange as this is the J2EE compliant way > of obtaining > a classloader! > > Why did you think it was necessary to implement your change? > Did loading > OJB.properties and repositories from the classpath not > work for you? > > > > I added methods in the PersistenceBrokerFactory and > > DescriptorFactory that take a boolean. If the boolean is > > true it loads the resource URL in the method described > > above. If it's false it loads it the other way. I then > > changed the exisiting methods to call the new method with a > > default parameter of "false" so as not to change existing > > behavior. > > > > If you are interested in this simple change, please let me > > know. I would be happy to send you the files. > > > Yes, you may send me your file, maybe I understand the > difference when I > see the code. > > thanks, > > Thomas > > > > > Thanks, > > Bill Robertson > > > > > > > > > > > > > > > > |