• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

timer service questions.

 
peter cooke
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am going over the scbcd5 guide from java.boot.by.

I have worked on many different EE apps. Most of them have done things that Sun(the spec) says we should not(Example: create threads, or create server sockets that listen for incomming traffic on a specific port, or both)

I am trying to reconcile the statement, "timmers cannot be created for stateful session and 3.0 entity beans". I can understand that I should not create a timmer, just as I should not create a listener on a specific port. BUT the word "cannot", Is it truely cannot??? would an entity bean ever need to access a timmer object?

Why was timer service removed from entity beans in the transtion from 2.1 to 3?
 
Adam Tkaczyk
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is not such think as entity bean in new 3.0 specification. Since JEE 5 there are entities that are POJO. Container use PersistenceProvider API to manage them. You can use old fashion entity beans in JEE5 environment if you want. There are still available only for backward compatibility but there are deprecated. I hope I have answered your question.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic