Thanks a lot for your reply. We tried using your solution and it worked.
We used the URL class of JDK to connect to machine -2.
Let me know one more thing.
The servlet running on machine -1 has made a connection on machine -2(using
the URL class).
In your application how do the 2 servlets communicate. Do they use the
ObjectOutputStream class?
With Warm Regards
Anshu.
-----Original Message-----
From: Jan Hendrickx [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 10, 2000 2:42 AM
To: [EMAIL PROTECTED]
Subject:
Anshu
Requestdispatcher is of no use to you. It can only dispatch in the same
virtual machine ( = the same server)
In our application, we have a servlet on machine 1, which queries machine 2
using http (URL)
For security reasons , machine 2 only accepts requests from machine 1 (IP
address)
Jan
-----Original Message-----
From: Garg, Anshu (CAP, RAIL) [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 07, 2000 19:33
To: [EMAIL PROTECTED]
Subject:
Hi All,
Firstly, let me brief you about our architecture before detailing
the problem we are facing.
We have the Web Server (NES) installed on one machine (machine - 1).
This machine is owned by the Internet Service
Provider. The Application Server (servlet engine) has been installed on
another machine (maand it is located in our premises.
This machine also hosts the application (servlets and business logic).
The end user will be accessing the application through the web
server. He will not have direct access to machine -2.
Suppose our home page is on machine -1. Whenever the user connects
to the web server, he goes to the home page. In
the home page, we specified the URL of the servlet (in the action tag),
which is running on machine -2. We could not transfer
control from the home page to the servlet running on machine -2, since the
user cannot connect to machine -2.
My question is :
"Is it possible that we have a servlet running on machine - 1 and
somehow this servlet invokes our servlet running on
machine -2?"
We tried using RequestDispatcher interface but it can forward the
requests to servlets running on the same machine.
Regards
Anshu.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html