This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Is it possible to pass an object in a request from one app server to another? I want a user to be able to click a link in a portal page, the portal app stores user info inside a HttpServletRequest object, and forward the request to another application running on a separate application server. Is this possible? Thanks! Roger
A query string as Tony mentioned is probably the only way to accomplish this across multiple servers. Unfortunately if security is a concern (username, passwords etc) this is completely out of the question & is a VERY dangerous situation. Even a cookie (Yuck) would be refused due to server & browser security implementations. Also you mentioned sending an object which plain & simple will not work. Remember the response - request object only grab / write standarized data from the headers so in fact the response object re-writes the data from the object into a form that is standarized for internet transfer (basically Strings). The request then grabs this data, parses it & puts it into what we know as the request object. This is a tough proposal no matter how you shake it & I think unitl the "next generation" of internet protocols are created we are stuck with this.