| I have a thought but am not sure whether this will work...since
| log4j says that u get the same reference of the Category object
| when u call the getCategory() method from anywhere in the code,
| can we safely put the Category object as a non-static object
| inside the class?

Of course you can. Bear in mind, though, that all references refer to the
same object and will consume a lot of unnecessary space if many objects with
instance references are created. This is why the recommendation is to use a
static reference, since this reference obviously is shared between all the
instances of that particular class.

--

Thomas












*************************************************************************
Copyright ERA Technology Ltd. 2001. (www.era.co.uk). All rights reserved. 
Confidential. No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.

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

Reply via email to