File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can EJB retrieve client information?
 
Similar Threads
JMS client
Stateless vs Stateful beans...
SCEA 2/1 - Transfer Object Pattern question.
Request Username and Password before any function of webService is called
Can we maintain state with a stateless session bean