Hi
I have an issue where I am using a Singleton class to manage my properties for a custom application. However if I create two instances of my app, the static value for second instance overwrite that of first instance..... (as expected I suppose..)
Is there any way I can use two instances together?
Has anyone solved a similar problem before?
If possible, I don't want to rewrite code to pass a non-static Properties object throughout all classes.
Doesn't anyone know if I use different class loaders for each instance would it work?
I have written a simple application to write message to a MQ Message Server. I initialise application with a Properties object.. some psuedo code.... Similarily to receive a message I have simple code:
In case a above, instance work fine together however .....
.. breaks because sender properties have been over written.....
Please advise.....
Any suggestions really appreciated
I have an issue where I am using a Singleton class to manage my properties for a custom application. However if I create two instances of my app, the static value for second instance overwrite that of first instance..... (as expected I suppose..)
Is there any way I can use two instances together?
Has anyone solved a similar problem before?
If possible, I don't want to rewrite code to pass a non-static Properties object throughout all classes.
Doesn't anyone know if I use different class loaders for each instance would it work?
I have written a simple application to write message to a MQ Message Server. I initialise application with a Properties object.. some psuedo code.... Similarily to receive a message I have simple code:
In case a above, instance work fine together however .....
.. breaks because sender properties have been over written.....
Please advise.....
Any suggestions really appreciated