Is it not possible to get single MDB instance by making the no argument constructor in the MDB class as private?
Regards,
Deepu Janardhananachary
-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Tuesday, August 10, 2010 2:12 AM
To: users_at_glassfish.dev.java.net
Subject: Re: singleton mdb
Why fight it and not simply have the MDB shim for a real singleton that you do have control over? There's nothing in the spec guaranteeing an MDB having an infinite lifespan, so you can't rely on it anyway.
Have the MDB call methods of a @Singleton Session Bean. Then you get all of the promises of the container.
[Message sent by forum member 'whartung']
http://forums.java.net/jive/thread.jspa?messageID=479728
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net