Rahul Vedpathak
Rahul Vedpathak

Reputation: 1436

what's the use of EjbContext and how it can be useful in Ejb applications?

what's the use of EjbContext and how it can be useful in Ejb applications?

In which scenarios we will need to have the EjbContext? I am creating an application using Ejb. So just want to know if EjbContext can be useful.

Upvotes: 1

Views: 73

Answers (1)

ruediste
ruediste

Reputation: 2949

A quick look at the JavaDoc answers this question:

  • obtain Caller pricipal, used for security checks
  • role checks
  • obtain UserTransation for transaction demarcation
  • resource lookup
  • register timer callbacks

Upvotes: 1

Related Questions