Static
methods and static variables are basically class methods and class
variables.
Though
the home class acts as a representative of the bean class for the client, there
is no way of defining static methods on the home class since the home class is
actually generated. Thus the client cannot access the class class
methods/variables. You would have to define them on the bean class and use a
session bean to access those class methods/variables
However your other server side classes can access them
directly
I
think EJB spec should require that the bean developer should be able to specify
the bean's static mathods on the home interface andf the home class generated
should delegate the behavior to the bean class. This will allow the clients to
access static methods on the beans.
This
is my understanding of the static method situation on EJBs.
Sachin.
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]On Behalf Of Damon Williams
Sent: Wednesday, April 14, 1999 12:03 PM
To: [EMAIL PROTECTED]
Subject: Static variables in EJBs?Can you define static variables in an EJB?
