*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can EJB retrieve client information?
 
Similar Threads
Request Username and Password before any function of webService is called
JMS client
Can we maintain state with a stateless session bean
Stateless vs Stateful beans...
SCEA 2/1 - Transfer Object Pattern question.