I have two applications which are hosted in two different domains.
I have to pass the control from 1 application of 1 domain to another application in different domain.
I cant use requestDispatcher because they are in different domains.
As of now i am using sendRedirect(url): url which is a String is having differt domain application url.
The control is passed but the attributes i had set in session and request objects are not available.
Please let me know how can i retain session and request objects after giving control to different application.
What you are asking for cannot be done. You cannot pass sessions that exist in say gmail.com and send them over to yahoo.com.
Raimon what you are pointing to is an interface that acts as a call back when objects are migrated across JVMs. This usually happens with fail over scenarios or to maintain hot backups and load balance. Session objects as such cannot make a migration
You can pass your parameters over as request parameters