• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Communication between tomcats

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you looked at using java.net.HttpURLConnection ?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic