• Post Reply Bookmark Topic Watch Topic
  • New Topic

how many times my stateless session bean get called  RSS feed

 
jhon Reader
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi want to determine how many time my stateless session bean get called
how should i do that
bye
 
Murthy Cherukumilli
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can declare an integer member variable and then keep incrementing it whenever there is a call made to the bean. This will allow you to keep a track of total number of calls made to the bean but if you are looking for the no of calls per client then you are talking about having a stateful bean and not stateless.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jhon Reader and Murthy,

Welcome to Javaranch, a friendly place for Java greenhorns

Please change your displayed name to conform to JavaRanch's Naming Policy.

In your case please use a first name (or initial) followed by a family name which are not obviously fictional.

You may change your displayed name here.

Thank you
 
Murthy Cherukumilli
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that is my name. whats wrong with the name?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!