• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Communication with external Bank

 
Sergio Aragon
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have this requirement:

There is a signed agreement with X bank to handle the transfer of funds from a CustomerĀ“s bank to their account with this company. Transfer of funds are held for three business days.

A brief description in the use case:
Company system sends a request to X bank
X bank responds with confirmation
System deposits cash in customer account.

In my explanation I decide to use JAX-WS for the Communication between both systems.
1.- Company system sends a request to X bank
2.- X bank responds with a ticket (Transaction number)
3.- X bank sends a request to Customer bank
4.- X bank completes transaction with customer bank
5.- X bank sends a confirmation to Company system
6.- Company system deposits cash in customer account

any idea, suggestion or comment, please write it!.

kind regards

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35270
383
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sounds like a good plan. You now have the steps for the happy path. Next think about other scenarios. What happens if the external bank's system is down. How does your system deal with this?
 
Sergio Aragon
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne!.

Well, I will use a request with timeout of 2 or 3 seconds, if an exception occurs I will notify to the customer this situation, "service is unavailable, please try again later". Like a bank message when I try to transfer money to another bank account.

1.- Company system sends a request to X bank
2.- X bank is unavailable
3.- Company system notifies to the customer "service is unavailable, please try again later".

I will not put this transaction in a que or ArrayList and try to send all requests later,
because with this situation, maybe The customer goes to one Company office to deposit cash in his account

How to know:

when X bank is available?
If the customer still wants the transfer?

what do you think?

kind regards
 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my opinion is a bad option ... REST has no failure and recovery mechanism. In this case the best would be JMS. Think about it ....
Regards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic