I had the same thing happen to me.  You can search the archives for "multiple instances of singleton constructed" for the full thread.  I don't understand why, but as James responded, the problem is a result of using the direct class proxying.  I found that if I made a simple interface and referenced the class via the interface, everything worked out correctly, and I no longer received multiple startup/shutdown events.

Spencer

On 2/1/06, John Coleman <[EMAIL PROTECTED]> wrote:
Well I seem to have got my application going. But what I have found is that my Connection class gets instantiated twice. The first instance is really a proxy class, the second a direct instantiation of the underlying class.
 
As the Connection class is a registry shutdown listener, it also gets 2 shutdown events. This doesn't happen for the other services.
 
Any ideas what this is?
 
John

Reply via email to