Java message service - P2P - Pub Sub
- Point to point - Producer put message on queue and consume by only one receiver
- Pub / sub - Producer put message on topic and brocast to multiple subscriber
#JMS1.0
#JMS2.0 ( Popular & easy )
- Simple API - JMSContext - > Connection + Session
- Create Producer and send message to queue
- Create consumer and receive message from queue
- JSMConsumer and JSMProducer Both implements AutoClosable.
- JmsFundamentals
- P2P
- PubSub
- Text
- Byte
- Object
- Stream
- Map
- Set Message Priority
- Message Filtering
- Message Delay
- Message expiration
- Request - Reply ( Ack ) message
- Message divided in 3 parts ( headers,body, payload )
- For this project used activemq Artemis
- Create broker with below command
xoxo$ cd apache-artemis-2.14.0/bin
xoxo$ ./artemis create /users/xoxo/documents/apache-artemis-2.14.0/custombroker/
- Start broker
xoxo$ cd /Users/xoxo/Documents/apache-artemis-2.14.0/custombroker/bin
xoxo$ ./artemis run
http://localhost:8161/admin/ User:admin Password :admin by default