Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS or Thread pool or What

 
Agur Dunit
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I'm working on online payment system and I'm looking for a performant method to implement in order to send payment transactions to the Bank server

- Put transactions in JMS QUEUE and let an MDB Bean sends these transactions to the Bank server OR
- Create a thread pool for that purpose OR
- What to do in other cases ?

Please let me know what to do in order to achieve speed end performance

Thank you
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I feel more than performance you must be more interested in reliability as this is a payment processing and a loss of data will be totally undesirable.

JMS will provide you reliability whereas threadpool will be an in memory solution (provided you do not persist your queue. If you do, you are trying to implement JMS )
So, definitely i will go for JMS.
 
Lucas Lech
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would go with JMS and a pool of readers ;)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic