File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes EJBContext/SessionContext vs InitialContext Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "EJBContext/SessionContext vs InitialContext" Watch "EJBContext/SessionContext vs InitialContext" New topic

EJBContext/SessionContext vs InitialContext

Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 808

Are there any significant differences between them? Maybe I can use shorter bean names when I use EJBContext/SessionContext to lookup?

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
The EJBContext is the interface specifying the container-provided runtime context available to all types of enterprise Java beans.
The sub-interfaces, EntityContext, MessageDrivenContext and SessionContext, specify additional runtime context available only to particular EJB types.
Best wishes!

My free books and tutorials:
I agree. Here's the link:
subject: EJBContext/SessionContext vs InitialContext
It's not a secret anymore!