users@glassfish.java.net

Re: RE: Re: singleton mdb

From: <glassfish_at_javadesktop.org>
Date: Mon, 16 Aug 2010 11:30:20 PDT

> Is it not possible to get single MDB instance by
> making the no argument constructor in the MDB class
> as private?

I imagine that's not a legal MDB (having not looked at the spec on that detail, but it would surprise me if this was legal). Recall, the MDB is owned and managed by the container, so it provides the semantics and lifecycle of the MDB, and the MDB must be built with the containers restraints and requirements in mind.
[Message sent by forum member 'whartung']

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