Dear All, Could you please advise me where should i define global variables( which are also constant) in stateless session bean. Thanks, Smita
posted 14 years ago
If they are really global (used by lots of other things) make a class to hold them. If they are used by users of the session bean (for example as constants passed in method calls) you can make a class to hold them or define them in the Home or Remote interface, if that makes sense. If they are only used internally to the SessionBean impl class, then put them there.