Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 66 lines (48 sloc) 2.289 kb
fabd716f »
2011-08-11 README
1 ElasticMQ
2 =========
3
1406f574 »
2011-08-11 Fixing links
4 ElasticMQ is a simple message queue system, written entirely in [Scala](http://scala-lang.org).
fabd716f »
2011-08-11 README
5
a30405fe »
2011-08-11 Mentioning Netty
6 Currently messages are persisted in a database (by default an in-memory H2 instance)
7 using [Squeryl](http://squeryl.org/).
fabd716f »
2011-08-11 README
8
1406f574 »
2011-08-11 Fixing links
9 ElasticMQ implements a subset of the [SQS](http://aws.amazon.com/sqs/) REST interface,
fabd716f »
2011-08-11 README
10 providing an SQS alternative e.g. for testing purposes.
11
a30405fe »
2011-08-11 Mentioning Netty
12 The REST server is implemented using [Netty](http://www.jboss.org/netty), a high-performance,
13 asynchronous, event-driven server Java framework.
14
1406f574 »
2011-08-11 Fixing links
15 The SQS interface has been tested using the [Typica](http://code.google.com/p/typica/) library;
fabd716f »
2011-08-11 README
16 see the `rest-sqs-testing-typica` module for the testsuite.
17
18 In the future... ElasticMQ may provide many more exciting features :).
19
20 Starting an ElasticMQ server
21 ----------------------------
22
23 // First we need to create a Node
9151d69e »
2011-09-04 Updating readme
24 val node = NodeBuilder.withInMemoryStorage().build()
fabd716f »
2011-08-11 README
25 // Then we can expose the native client using the SQS REST interface
26 val server = SQSRestServerFactory.start(node.nativeClient, 8888, "http://localhost:8888")
27 // ... use ...
28 // Finally we need to stop the server and the node
29 server.stop()
30 node.shutdown()
31
9151d69e »
2011-09-04 Updating readme
32 Alternatively, you can use MySQL to store the datea:
33
82d231b1 »
2011-09-04 MySQL, not Mysql
34 val node = NodeBuilder.withMySQLStorage("elasticmq", "root", "").build()
9151d69e »
2011-09-04 Updating readme
35
fabd716f »
2011-08-11 README
36 ElasticMQ dependencies in SBT
37 -----------------------------
38
39 val elasticmqCore = "org.elasticmq" %% "core" % "0.1-SNAPSHOT"
40 val elasticmqSqs = "org.elasticmq" %% "rest-sqs" % "0.1-SNAPSHOT"
41
358e4810 »
2011-08-11 Snapshots repo, not releases
42 val smlResolver = "SotwareMill Public Releases" at "http://tools.softwaremill.pl/nexus/content/repositories/snapshots/"
fabd716f »
2011-08-11 README
43
44 ElasticMQ dependencies in Maven
45 -------------------------------
46
47 Dependencies:
48
49 <dependency>
50 <groupId>org.elasticmq</groupId>
8b156432 »
2011-09-29 Bumping the scala version in the readme
51 <artifactId>core_2.9.1</artifactId>
fabd716f »
2011-08-11 README
52 <version>0.1-SNAPSHOT</version>
53 </dependency>
54 <dependency>
55 <groupId>org.elasticmq</groupId>
8b156432 »
2011-09-29 Bumping the scala version in the readme
56 <artifactId>rest-sqs_2.9.1</artifactId>
fabd716f »
2011-08-11 README
57 <version>0.1-SNAPSHOT</version>
58 </dependency>
59
60 And our repository:
61
62 <repository>
63 <id>SotwareMillPublicReleases</id>
64 <name>SotwareMill Public Releases</name>
358e4810 »
2011-08-11 Snapshots repo, not releases
65 <url>http://tools.softwaremill.pl/nexus/content/repositories/snapshots/</url>
fabd716f »
2011-08-11 README
66 </repository>
Something went wrong with that request. Please try again.