RE: [OJB-developers] weekly status update
Brought to you by:
thma
From: Colin S. <col...@ex...> - 2001-10-09 01:42:00
|
> -----Original Message----- > From: obj...@li... > [mailto:obj...@li...]On Behalf Of > Thomas Mahler > Sent: Tuesday, December 31, 1996 6:20 PM > To: objectbridge > Subject: [OJB-developers] weekly status update > ... > In the last week I used the JDK 1.3 dynamic Proxy concept to build an > improvement of the OJB virtual proxy concept. Now you don't have to > implement the proxy classes yourself, but can declare the usage of > dynamic proxies in the the XML repository. > > This works great and avoids a lot of non-productive work from for > app-developers using OJB. > > There is only one problem: this feature requires JDK 1.3 or later. > > I see 2 option to deal with this situation: > 1. just say OJB needs JDK 1.3 or later. Period. > 2. try to support a JDK 1.2 compliant version without this feature. > > Of course 1.) will save me a lot of work. But maybe some of you still > rely on JDK 1.2 in certain production environments ? Please tell me if > you need OJB running under JDK 1.2. > > The easiest way to provide a JDK 1.2 compliant version would be to use > compiler switches in the code. Unfortunately Java does not have a > preprocessor. > What is the best solution in Java to provide this kind of preprocessing? > Can we use ANT for this work? Any hints are most welcome. Needing JDK/JRE 1.3 or higher is not that big a deal to me, but maybe you could use this code for 1.2; it should be almost no extra work: http://staff.develop.com/halloway/code/jcfe.html The license does not appear to be an issue... Regards, |