Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Communication between tomcats

 
Will Peacock
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at using java.net.HttpURLConnection ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic