• Post Reply Bookmark Topic Watch Topic
  • New Topic

Containers Functions

 
ashok ganesan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i was just going through the functionality of containers and it was listed that container will take care of transaction,security and session management.
i could not get the exact idea of what it means . for an example if a user login in a site then his every action has to be treated in one session. but i suppose here the care of session management ,transaction and security has to be implemented by developer not by the container. i m a newbie and havent worked in any real time ejb coding . so if someone could explain what actually the container role and what it exactly means.

thanks in advance

ashok
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35704
407
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashok,
The container helps you implement these services. Session management refers to stateful session beans and is the least frequently used of the services you listed.

Transaction support is very common. As the developer, you specify that your method should run in a transaction. The container then implements for you.

Security is common as well. You protect your EJBs from unauthorized access through a deployment descriptor or annotations and the container implements it.
 
ashok ganesan
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi jeanne thanks for replying .i m a newbie i could not understand all these functionalities .everything seems to be very abstract i know some basics like home interface and all such things . but how containers are implementing their functionalities . if someone could explain with an example or is there any web resource where i can look for these answers


thanks

ashok
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35704
407
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashok,
I recommend reading either a book or the online J2EE tutorial. Both will go into a lot of depth on these topics.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!