JQuery Ajax call to servlet in another application in same server

JQuery Ajax call to servlet in another application in same server

Hi,
I have a requirement where i need to make an Jquery ajax call to a servlet inside another application but deployed within the same server. The calling UI and the responding servlet belong to two different web applications. Is it possible to make an ajax call like this. This does not come under the cross domain issue as both the applications reside within the same domain..Kindly give me a sample code