Hi Tom,
Thanks for your valuable response.
Yes,The same code I have written and was getting null as result.
Later we found that SUN AppServer is not setting the "REMOTE_ADDR" property in MessageContext.We raised to SUN and got fixed also.
Thank you once again for the reply.
[Message sent by forum member 'karanvpraba' (karanvpraba)]
http://forums.java.net/jive/thread.jspa?messageID=240087