Yoav,

If you are looking for something interesting to do, then I have a
short and relatively instructive assignment.

A user recently asked to perform substitution of variables from
JNDI. This is really quite easy to do.

1) Create a JNDISubstitutionPropertyAction which looks up a jndi
variable specified in the config file.

2) Have the action add the found key and value into the joran
execution context properties. Use
o.a.joran.ExecutionContext.addProperty(java.lang.String key,
java.lang.String value) method.  The execution context is passed as
parameter to each an every action.

3) Add a new parsing rule in JoranConfigurator.
   rs.addRule(
      new Pattern("log4j:configuration/jndiSubstitutionProperty"),
      new JNDISubstitutionPropertyAction());

If you are interested please drop me a note.


At 09:54 PM 11/22/2004, you wrote:

Hi,
I spent about the same amount of time, and when I went to commit I saw all these conflicts. Looked at them, saw that you and Ceki had already covered all my work -- so that was a wasted 20 minutes on part ;) I suppose I should have replied to Ceki's assignment request earlier instead of just going ahead. But hey, it's better to have everyone doing work than no one ;)


Yoav Shapira http://www.yoavshapira.com


>-----Original Message----- >From: Paul Smith [mailto:[EMAIL PROTECTED] >Sent: Monday, November 22, 2004 3:52 PM >To: Log4J Developers List >Subject: Re: LogLog Conversion: duplicate effort > >No problems at all, I only spent 20 minutes or so to be honest. I had >some changes done on Friday (not committed) but thought I'd wait till I >read your response about one of my other postings before finalising it. > >I will go ahead and just take a fresh copy of the files from CVS, and >see what else is left to do. > >cheers, > >Paul > >Ceki Gülcü wrote: > >> >> Hi Paul, >> >> Given that the changes are quite mechanical, I just went through them, >> especially because of the pressing need to verify that the unit tests >> continued to run successfully. At this time, I suggest that you >> override your local changes as they should be more as identical to mine. >> >> BTW, did you make your changes on Friday? My changes in .net date to >> Saturday. >> >> >> At 10:21 PM 11/21/2004, Paul Smith wrote: >> >>> Ceki I appear to have a bunch of cvs conflicts from your recent >>> commits. It appears that you have been working through the same >>> areas I have! (.net package in particular). >>> >>> Are you happy with the state of affairs in those areas, and should I >>> just override my locally modified versions with your changes? >>> >>> cheers, >>> >>> Paul >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

-- Ceki Gülcü

The complete log4j manual: http://qos.ch/eclm
Professional log4j support: http://qos.ch/log4jSupport




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to