• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get remote host address from axis2 handler's invoke function?

 
Ping Li
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am writing an authentication module which needs remote host address to do the job. the class which extends AbstractHandler, I tried to get remote host address in the function "invoke" by using MessageContext.getProperty(MessageContext.REMOTE_ADDR) function, but it returns null.

(I am using axis2 framework)

Any ideas? Your help is highly appreciated.

Thanks,
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"liping",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with display names get deleted, often without warning

thanks,
Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic