| 1 | # OSGi Example |
| 2 | |
| 3 | A simple example application that demonstrates using the Java Driver in |
| 4 | an OSGi service. |
| 5 | |
| 6 | MailboxService is an activated service that uses Cassandra to |
| 7 | persist a Mailbox by email address. |
| 8 | |
| 9 | ## Usage |
| 10 | |
| 11 | To build the bundle and run tests execute the following maven task:: |
| 12 | |
| 13 | mvn integration-test -P short |
| 14 | |
| 15 | The short profile needs to be activated since the tests run under |
| 16 | this group. |
| 17 | |
| 18 | After which the bundle jar will be present in the target/ directory. |
| 19 | |
| 20 | The project includes an integration test that verifies the service can |
| 21 | be activated and used in an OSGi container. It also verifies that |
| 22 | driver-core can be used in an OSGi container in the following |
| 23 | configurations: |
| 24 | |
| 25 | 1. Default (default classifier with all dependencies) |
| 26 | 2. Netty-Shaded (shaded classifier with all depedencies w/o Netty) |
| 27 | 3. Guava 15 (default classifier with Guava 15.0) |
| 28 | 4. Guava 16 |
| 29 | 5. Guava 17 |
| 30 | 6. Guava 18 |