Nov 11, 2016 07:12 AM
(This post was last modified: Nov 14, 2016 07:40 AM by Prof. Farnsworth.)
Before we get into the code itself please note the following:
- I just started learning about JMS and Stomp
- I made it to learn more about JMS and Stomp
- I didn't spend much time to make it perfect, look nice or be fast
It requires ActiveMQ to work and it only works from CLI (terminal), but it does not require a database.
That being said, don't hate on me if the code is nasty.
I also commented the code so it's easier for beginners to understand what's going on.
Feel free to let me know what you think and if there is a way to make it better.
Image (underlined is user input):
Spoiler (Click to View)
Code:
Pastebin link: http://pastebin.com/bcQZvC7L
Taking Yani's advice I've decided to try to make it OOP.
This is what came out of that:
http://pastebin.com/8Dmia7nW
- I just started learning about JMS and Stomp
- I made it to learn more about JMS and Stomp
- I didn't spend much time to make it perfect, look nice or be fast
It requires ActiveMQ to work and it only works from CLI (terminal), but it does not require a database.
That being said, don't hate on me if the code is nasty.
I also commented the code so it's easier for beginners to understand what's going on.
Feel free to let me know what you think and if there is a way to make it better.
Image (underlined is user input):
Spoiler (Click to View)
Code:
Pastebin link: http://pastebin.com/bcQZvC7L
Taking Yani's advice I've decided to try to make it OOP.
This is what came out of that:
http://pastebin.com/8Dmia7nW


![[Image: YQ5PlgH.png]](https://i.imgur.com/YQ5PlgH.png)

