Singleton in EJB

SUBSCRIBE EJB-INTEREST anonymous <[email protected]> Tue, 4 Oct 2005 10:51:22 -0600
Newsgroups gmane.comp.java.sun.ejb.general
Message-ID <LISTSERV%[email protected]>
Hi,
I have a Singleton class which has many getter methods.

My question is in my Stateless Session bean can I have like below Objects
from singleton as member variable).

public class UserBean implements javax.ejb.SessionBean{

private MysqlDataAccessObject obj  = Singleton.getInstance
().getMySqlDataAccessObject();

}

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".