Results 1 to 5 of 5

Thread: How to get the callers ip address in HttpInvoker

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Posts
    23

    Default How to get the callers ip address in HttpInvoker

    Hi

    I've exposed a service using HttpInvoker and sucessfully invoked the a method remotely. Now, is there a way to get the callers IP address when a method is invoked ?

    Code:
    @Service("myService")
    public class MyServiceImpl implements MyService {
    
      @Override
      public String myMethod(int param) {
    
        // GET IP ADDRESS HERE FROM SOMEWHERE
    
        return "Hello";
    
      }
    }
    Regards ABQ

  2. #2
    Join Date
    Mar 2011
    Posts
    3

    Default

    see this post, I thing you help you

    http://www.blogvital.com/blog/progra...Controller)/13

    have a nice day!

  3. #3
    Join Date
    Apr 2011
    Posts
    5

    Default

    Quote Originally Posted by sistematico View Post
    see this post, I thing you help you

    http://www.blogvital.com/blog/progra...Controller)/13

    have a nice day!
    Thank you but is there anything in English?

    Paul

    Music & Directory
    Last edited by Paulel; Mar 11th, 2012 at 01:22 PM.

  4. #4
    Join Date
    May 2011
    Posts
    5

    Default

    thanks a lot.

    gar

  5. #5
    Join Date
    Feb 2011
    Location
    Hong Kong
    Posts
    1

    Default

    good,
    thanks sistematico

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •