jsp - How to share a session in two web applications hosted at two different application servers? -
i trying interact payment gateway, want share session can keep track of whether user payment processed payment gateway 1 whom request made.
i explain below:
1. http://localhost:7080/requesterapp in websphere application server 1 2. http://localhost:8090/paymentapp in websphere application server 2
i redirecting user payment gateway via submitting html form.
so how make sure request made user1 payment http://localhost:7080/requesterapp
http://localhost:8090/paymentapp
processed same user?
should handled via session?
the question not payment oriented, rather architectural one.
server1 needs pass information server2, , communication needs done in backend.
assuming 2 servers host different applications, websphere session replication not solution. need requesterapp call paymentapp in backend , let know user coming way. communication can made via http or rmi or whatever technology pick, long secured (ip whitelisting).
so:
- requesterapp notifies paymentapp user "james dean" hit it's servers. required parameters passed @ point.
- paymentapp stores data @ end , returns uuid token
- requesterapp renders form user, token embedded hidden field
- user submits form , hits paymentapp
- paymentapp retrieves user data using token. if needed, may ensure it's same user ip, cookies, etc.
Comments
Post a Comment