How do i redirect the request from my servlet to a program running in another server ?
I am trying to help out my friend who faces this issue in his college project. He is trying to develop a context based search engine. The servlet in his application is fetching the query the user types and does some manipulations + some business logic, forms a optimized query and is trying to send it to google. We tried using the RequestDispatcher to forward/redirect the request and we failed in succeding.
Is it really possible to forward a request to another server ? Am i making sense here?
This is not possiblw with the help of requestdispatcher. Instead you can use JMS. But in that case also if should have access to the Google server. Here the concept of server clustering and caching will come.