File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can EJB retrieve client information?

 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which client information can EJB retrieve inside container?
can the EJB get the client IP address?
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic