• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can EJB retrieve client information?

 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • 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
  • 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