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.
I have a scenario where I have a servlet running in app servers context and another servlet running in web servers context. I am using iPlanet 6.5 app server and iPLanet 4.1 web server. The problem comes when the servlet in app server invokes the servlet in web server. It works fine but there is no way for user authentication . Any user can directly acces the servlet on web server whith out loggin in which is done through the servlet in app server. Dose any body have idea how to make two serlets communicate if they are running on diif JVMs ? Regards, Javed. I am using two servlets as I have to call CSP(Crystal Server pages and )and these are accessible through web server only.
You have described a situation with two separate ServletContexts - Sun explicitly prevents sharing of information between "web applications' - its a security thing. The two JVMs can talk to each other with sockets, Java Message Service, URLConnections, whatever, but you will have to go outside the Servlet API to do it. If the web server servlet only talks to the app server, you could simply have it reject all connections that don't come from the right source. Bill