Hi Richard, a few minutes ago, I checked in all my changes to the EJB cartridge. See the andromda-cvs mailing list for details.
To sum up: * I moved script processing from ant task to cartridges. * I added the possibility for Velocity macro libraries inside a cartridge. * I removed copy-paste macros from the EJB templates. * I added "null" parameters to the create()-calls in car-rental-system to make it compile. I enabled the macro stuff because I think there are several things that should not be done in the Java helper class. However, I agree with you that some of them should. So, feel free to move some of the macros into Java if you think this is feasible. Cheers... Matthias > -----Original Message----- > From: Richard Kunze [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 12, 2003 10:26 AM > To: Matthias Bohlen > Subject: Re: [Andromda-devel] Work on new EJB cartridge > > > On Monday 11 August 2003 23:14, Matthias Bohlen wrote: > > Hi, Richard and the others, > > > > at the moment, I am polishing the new EJB cartridge a > little. Richard > > used Velocimacros to factor out some common functionality from the > > templates. I have tried to move those macros from the > templates into > > EJB.vm. Velocity did not like this and complained that macros were > > redefined. > > Yep, tried that myself at first and when it didn't work out I > resorted > copy-and-paste instead. > > > Therefore, I have now instantiated more than one instance of the > > engine, exactly one per cartridge instance. This already > helps a lot > > but does not solve the problem completely. The Velocity > docs say that > > #parse on macros does not work "as expected". They recommend to > > replace the #parse statement with a macro library > definition property. > > Hmmm. I'm not sure anymore that this is really the right > thing to do. I'd > rather push the stuff from the macro into the template helper > (or better, > template helpers - the single template helper combines a bit > too much of > different functionality in a single class). > > Bye, > > Richard > -- > Richard Kunze > > [ t]ivano Software, Bahnhofstr. 18, 63263 Neu-Isenburg > Tel.: +49 6102 80 99 07 - 0, Fax.: +49 6102 80 99 07 - 1 http://www.tivano.de, [EMAIL PROTECTED] ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Andromda-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-devel