I simply want a single instance of an object which can be found via JNDI and
used globally throughout the application. 
For example, a logging class that can be used to write to a log on a
particular file system. Only one instance should ever exist to maintain the
integrity of the data written to the log (would have one instance variable
of type OutputStream or PrintStream that is used to write to the file
system). 
Another example would be a simple class that contains one instance variable,
uniqueId, of type int and the sole purpose of this class is to increment and
return a unique id or value when requested. 
I think these classes are required since I cannot make things static in a
distributed computing environment, which EJB is intended to facilitate. Is
this right, or is it that I just cannot use static in classes that are
intended to be beans (I think it is the former, but hearing it is the latter
would make things easier)? 
Any help or suggestions would be greatly appreciated.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Michael L�pine - Staff Developer
Trisect (www.trisect.com)
2030 Powers Ferry Rd., Suite 121
Atlanta, GA 30339

w: 770.850.9858 ext. 1510
c: 404.915.2756

[EMAIL PROTECTED]




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to