users@glassfish.java.net

Re: GF v3: Singleton pass by reference problem

From: <glassfish_at_javadesktop.org>
Date: Mon, 12 Apr 2010 08:13:49 PDT

The pass-by-ref shouldn't make any difference here. pass-by-ref only allows pass-by-reference semantics for code running within the same application. That means the hash table will still be deep copied when returned from the Singleton, which is not the behavior you want.

What exact object is registered with the Singleton? Please post the code that makes that call.
[Message sent by forum member 'ksak']

http://forums.java.net/jive/thread.jspa?messageID=396515