• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Timer Service registration

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why Stateful session beans cannot be registered with the Timer Service?
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently timers cannot be used with stateful session beans. Only stateless, message-driven and entity beans.

I do not know why stateful cannot but I know the EJB specification group has indicated that this may be rectified.
 
Mirko Bonasorte
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
consider that a stateful session bean keeps a conversational state with the client, but for a timer the concept of client does not exist.
 
krishna bulusu
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Celinio Fernandes,

I think Entity Beans of 2.1 version can create the Timers not the 3.0 Entity Beans.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mirko Bonasorte:
Hi,
consider that a stateful session bean keeps a conversational state with the client, but for a timer the concept of client does not exist.


Can you elaborate a bit on this explanation? I fail to understand this.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but for a timer the concept of client does not exist.

Neither for MDBs But they can use timers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic