File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Communication between tomcats Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Communication between tomcats" Watch "Communication between tomcats" New topic

Communication between tomcats

Will Peacock

Joined: Jul 10, 2002
Posts: 4
I'm trying to make a system for online credit card transactions. Basically i'm running two instances of tomcat on different ports. One acts as a store's webserver, the other is a dummy bank webserver.
When the client clicks on "PAY" i want to forward the request to the bank, so that the bank can collect the user's credit card details, and then confirm payment back to the store. I know this sounds convoluted but i don't want the store to be able to access the customer's CC details.
My question is: how can i communicate from one server to another (sending things like amount owed and payment confirmation)?? Is it a case of opening up another port, and sending some XML down it or is there a better way (somehow doing it over HTTP)?? Could i use soap?? if so, any good sites?
I'd really appreciate any help or suggestions.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Have you looked at using ?
I agree. Here's the link:
subject: Communication between tomcats
It's not a secret anymore!