[jboss-user] [Remoting] - Re: Capturing Client IP Address

ron.sigal@jboss.com do-not-reply at jboss.com
Mon Nov 12 22:06:32 EST 2007


Actually, the JRMPInvoker is not part of the Remoting project - it's "legacy" code in the Application Server.  Are you sure that's what you want?  The current versions of the Application Server, 4.2.x, no longer use the JRPMInvoker by default.  Instead, they use the Remoting based UnifiedInvoker.  Moreover, the EJB3 implementation uses the UnifiedInvoker, even in the older versions of the AS.

So, if you're using an older AS and EJB 2.x beans and your question really is about the JRPMInvoker, I would suggest the EJB forum (http://www.jboss.com/index.html?module=bb&op=viewforum&f=47). 

On the other hand, if you're using a current release, then you probably want to ask about the UnifiedInvoker.  In that case I can tell you that there is currently no facility for doing what you ask, though one is scheduled for the 2.4.0 release of Remoting.  See JIRA issue JBREM-758 "Associate remote socket address with the invocation" (http://jira.jboss.com/jira/browse/JBREM-758).

If you wanted to roll your own, then the changes are transport dependent.  The default transport used by EJB 2.x (in current releases of the AS) and EJB3 is the socket transport, and in that case you would want to look at org.jboss.remoting.transport.socket.ServerThread.processInvocation().  That's the code that reads from the socket and passes the invocation to the invocation handler. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103927#4103927

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103927



More information about the jboss-user mailing list