File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Communication between tomcats" Watch "Communication between tomcats" New topic
Author

Communication between tomcats

Will Peacock
Greenhorn

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.
will
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Have you looked at using java.net.HttpURLConnection ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Communication between tomcats