See my other mail: You usually have: static Category cat=xxx But you should add:
static Category getCat() { if(cat==null) cat = xxx return cat } And in the code: cat.yyy gets replaced by getCat().yyy The getCat method will create the Category is it is null... Let me know if this is not clear. Alan. -----Original Message----- From: Ed Soniat [mailto:[EMAIL PROTECTED]] Sent: 12 November 2001 18:48 To: Log4J Users List Subject: RE: Advise on wrapping log4j Category for serialization. This is all quite new to me but if it is transient and is not serialized how does the Category instance get reinitialized. > -----Original Message----- > From: Alan Pearlman Spencer > [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 12, 2001 11:38 AM > To: Log4J Users List > Subject: RE: Advise on wrapping log4j Category for serialization. > > > Try using a transient field. Won't be Serialised... > Alan. > > -----Original Message----- > From: Ed Soniat [mailto:[EMAIL PROTECTED]] > Sent: 12 November 2001 16:14 > To: [EMAIL PROTECTED] > Subject: Advise on wrapping log4j Category for serialization. > > > I have been asked to wrap our log4jCategory so that classes > using it can > be switched to the wrapper to facilitate serialization. > > Does anybody have any pointers hints tips or implementation they can > recommend? > > Thanks > Ed > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>