Elffuss BraidHub

kikocis/java-driver public

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