jQuery in Action, 2nd edition*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Can EJB retrieve client information? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Can EJB retrieve client information?" Watch "Can EJB retrieve client information?" New topic
Author

Can EJB retrieve client information?

Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
which client information can EJB retrieve inside container?
can the EJB get the client IP address?
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
which client information can EJB retrieve inside container?
An EJB can retrieve everything that is provided through the EJBContext interface and its subinterfaces (EntityContext, SessionContext, MessageDrivenContext). The client identity can be retrieved by invoking getCallerPrincipal() given that a meaningful client security context exists.
can the EJB get the client IP address?
Not through the conventional ways offered by the EJB package


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can EJB retrieve client information?