Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Communication with external Bank

 
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

 
author & internet detective
Posts: 40213
816
Eclipse IDE VI Editor Java
  • 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
 
Ranch Hand
Posts: 489
2
Spring Java 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic