[jboss-dev-forums] [JBoss AS 7 Development] - How to get the client IP in a EJB when a method is called?

jingjing jiang do-not-reply at jboss.com
Mon Jul 29 22:39:00 EDT 2013


jingjing jiang [https://community.jboss.org/people/jingjingjiang1986] created the discussion

"How to get the client IP in a EJB when a method is called?"

To view the discussion, visit: https://community.jboss.org/message/830376#830376

--------------------------------------------------------------
Recently, i meet with a problem, that I don't know how to get the client ip on server side when a EJB's method is called by remote client. 
We use JBoss 7.1.1 as the appliction server. 
The client application GUI is based on NetBeans platform, so we are having used the C/S architecture.

@Stateless
public class MyEJB implements MyInterface {

        @Override
        public void doSomething() {
               // when the method is called by a remote client, I need know the client's IP
               // get the client ip, and then ...
        }
}

Anybody can help me? :|
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/830376#830376]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130729/f23ec47e/attachment.html 


More information about the jboss-dev-forums mailing list