Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mateusfreira/activemq-scala-util
A simple way to use ActiveMQ queues in scala projects
https://github.com/mateusfreira/activemq-scala-util
Last synced: 27 days ago
JSON representation
A simple way to use ActiveMQ queues in scala projects
- Host: GitHub
- URL: https://github.com/mateusfreira/activemq-scala-util
- Owner: mateusfreira
- License: mit
- Created: 2015-07-27T02:13:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-27T15:58:53.000Z (over 9 years ago)
- Last Synced: 2024-05-01T23:56:54.699Z (6 months ago)
- Language: Scala
- Size: 129 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/mateusfreira/activemq-scala-util.svg?branch=master)](https://travis-ci.org/mateusfreira/activemq-scala-util)
A simple way to use ActiveMQ queues in scala projects
# How to use!
Create a manager sample
```scala
val manager = QueueManager("tcp://localhost:61616")//you need to change tcp://localhost:61616 by you activeMQ server url.
```
Create a object to be enqueue and dequeue objects```scala
object StrQueue extends Queue[String/** here you put some Serializable class(can be a case class)*/]{
override val queueName = "srtint_queue"//Provice you queue name
def dequeeue(n:String){
...// here you do something
}
}
//start the queue
StrQueue.start(manager)//Now you are ready to use your queue
//to queue call the method queue...
StrQueue.queue(obj)
```## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D##Helpful links
[ActiveMQ instalation guide](http://activemq.apache.org/installation.html)