Tomcat can act as a client to another tomcat. See http://jakarta.apache.org/commons/httpclient/ for a library supporting this.

--David

Johnny Kewl wrote:
No, I dont think so, a web server is not a client, and unless you really have to work on port 80, it would be much easier to just to use JDBC to exchange records. ie open 2 database connections, read from one and write to the other, this way you can also use tranactions and ensure the integrity.

If you talking about a real time replication system, ie the databases must stay aligned, its alot more complex than simply writing a few records.

If its something like updating the status say once a week, then a web server may do. For example you make a cache or disconnected recordset in the servlet, this gets sent to a client, and it updates the dB on the other side. A cache is serializable, so that would work.

If you use PostgreSQL, I may be able to help you, I have a replication system for that, but its not on port 80. Its not enough to just say I got two dB's.... you need to explain the desired system. Using a WEB server to send a cached recorset to a client, that then sticks it in a local embedded dB and uses the data, is one thing.
Replication is another story.

----- Original Message ----- From: "randeelwrw" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Monday, July 09, 2007 6:49 AM
Subject: Re: about tomcat



thank you for the reply.
what i really need to do is transfer records from one database to
another database.so in the middle there would be two web servers.
is this a good idea?



Stephen.Morris wrote:




Yes, it is possible to run two servers as a cluster and exchange
information between them. I have seen an article on the internet recently on doing exactly this. The easiest way of finding out how to do this is to use Googles advanced search and to type 'tomcat clustering' into the exact phrase textbox, which should return about 19,700 hits. It is then a matter of just selecting the article that is most relevant to what you are trying
to do.

regards,
Steve Morris
IT Security Access Management
Technology Risk and Security
Technology Australia
National Australia Bank
Phone: +61-3-8634 1755 (x31755)
Mobile: +0438 537 569
email: [EMAIL PROTECTED]



             randeelwrw
             <[EMAIL PROTECTED]
             .com> To
                                       users@tomcat.apache.org
             09/07/2007 14:05 cc


Subject
             Please respond to         about tomcat
               "Tomcat Users
                   List"
             <[EMAIL PROTECTED]
                 che.org>







hi everyone,

can i use two tomcat webservers to exchange information between them?
how can i do that?

thank you,
rana.
--
View this message in context:
http://www.nabble.com/about-tomcat-tf4047066.html#a11495638
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




National Australia Bank Ltd - ABN 12 004 044 937
This email may contain confidential information. If you are not the
intended recipient, please immediately notify us at [EMAIL PROTECTED] or by replying to the sender, and then destroy all copies of this email. Except where this email indicates otherwise, views expressed in this email are those of the sender and not of National Australia Bank Ltd. Advice in this email does not take account of your objectives, financial situation,
or needs. It is important for you to consider these matters and, if the
e-mail refers to a product(s), you should read the relevant Product
Disclosure Statement(s)/other disclosure document(s) before making any
decisions. If you do not want email marketing from us in future, forward
this email with "unsubscribe" in the subject line to
[EMAIL PROTECTED] in order to stop marketing emails from this
sender. National Australia Bank Ltd does not represent that this email is
free of errors, viruses or interference.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
View this message in context: http://www.nabble.com/about-tomcat-tf4047066.html#a11495951
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to