I have a task where I need to set up some sort of a listener on a particular bitcoin addresses for incoming transactions, and once a transaction arrives, I need to call some function in my web service. Is it possible to have some sort of an event be triggered by the incoming bitcoin transaction that calls my web service? What technologies or tools are available that I could use for this task?
Furthermore, after the function in the web service has completed, I need to forward those received bitcoins to another address using that same web service. The web service can, if needed, be provided access to the private key for the address from which these bitcoins would be sent out. What tools/technologies could I use for this purpose?