I looked it up and it used to send messages between 2 systems.
But why? Why wouldn\'t you just use a Database
?
There must be some feature that ActiveM
From Wikipedia
Apache ActiveMQ is an open source message broker written in Java together with a full Java Message Service (JMS) client. It provides "Enterprise Features" which in this case means fostering the communication from more than one client or server
Regarding your queries:
Why wouldnt you use a database?
You should use database for persistent data and not for temporary data. Assume that you have to send a message from Sender to Receiver. On Receiving the message, Receiver execute one operation ( receive , process and forget). After processing that message, you don't need that message at all. In this case, storing the message in persistent database is not a right solution.
I fully agree with @Hiram Chirino answer regarding inserting & deleting message in database if you use database instead of messaging system.
Benefits from this article and this article
There must be feature ActiveMQ has that databases dont?
There are many. Have a look at documentation page for more details. Have a look at use-cases too.
Have a look at this presentation to understand internals of ActiveMQ.