Elffuss BraidHub

kikocis/java-driver public

6d192516fada · 1.1 KiBRenderedRawPermalink
1# OSGi Example
2
3A simple example application that demonstrates using the Java Driver in
4an OSGi service.
5
6`MailboxService` is an OSGi service that uses Cassandra to
7store messages that can be retrieved by email address.
8
9## Usage
10
11To build the bundle and run tests, execute the following Maven goal:
12
13 mvn verify -P short
14
15The "short" profile needs to be activated since the tests run under
16this group.
17
18Note: tests will try to load the jars of 3 dependent modules:
19`driver-core`, `driver-mapping` and `driver-extras`.
20For this to succeed, you need to run `mvn package`
21first for these modules and make sure the jars are present
22in each module's `target/` subdirectory.
23
24Once `mvn verify` completes, the bundle jar will be present in the `target/` directory.
25
26The project includes integration tests that verify the service can
27be activated and used in an OSGi container. It also verifies that
28driver-core can be used in an OSGi container in the following
29configurations:
30
311. Default (default classifier with all dependencies)
322. Netty-Shaded (shaded classifier with all depedencies w/o Netty)
335. Guava 17
346. Guava 18
357. Guava 19