Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

global constant variables  RSS feed

 
peter brews
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
Could you please advise me where should i define
global variables( which are also constant) in stateless session bean.
Thanks,
Smita
 
Dave Landers
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!