• Post Reply Bookmark Topic Watch Topic
  • New Topic

freeing up resources when application gets killed

 
amit sanghai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a banking application which continuously logs the details of user transactions. Suppose my application gets killed in between a transaction, what happens to the logging part? Can I stop the logging of this current transaction or will the transaction be logged till the application gets killed (half of the transaction gets logged)
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by "killed"?
 
Howard Kushner
author
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Amit,
I see that you want the details of the transaction in the log, but it would also apear that you want to discard the details of failed transactions. If that is the case then you might consider buffering the details, and then logging it all after successful completion. It kinda boils down to what you want logged for successful transactions, and what you want logged for failed transactions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!