Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the managed class anb What is the helper class?

 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


this is from Manning in EJB 3 book.

1)What is the managed class?

2)What is the helper class?
 
Christian Dillinger
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Managed classes are managed (hence the name!) by the application server. Session Beans are managed objects, as they are created, pooled and destoyed on demand by the app server. The app server can use DI to inject other managed objects, e.g. another session bean. If you have a property which is not a managed object, the app server does not know about anything and cannot use DI.
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helper class is my own class that we've created..
sometimes, people use it to ease any works.. example, for open/close database connection, run query, etc..

There're many kinds of managed class, such as :
- EJB (Stateless/Statefull/Message Driven)
- Servlet
- JTA
- DataSource
- etc..

please correct me if i'm wrong..

Thanks..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic