X Tutup
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

OSGi Example

A simple example application that demonstrates using the Java Driver in an OSGi service.

MailboxService is an OSGi service that uses Cassandra to store messages that can be retrieved by email address.

Usage

To build the bundle and run tests, execute the following Maven goal:

mvn verify -P short

The "short" profile needs to be activated since the tests run under this group.

Note: tests will try to load the jars of 3 dependent modules: driver-core, driver-mapping and driver-extras. For this to succeed, you need to run mvn package first for these modules and make sure the jars are present in each module's target/ subdirectory.

Once mvn verify completes, the bundle jar will be present in the target/ directory.

The project includes integration tests that verify the service can be activated and used in an OSGi container. It also verifies that driver-core can be used in an OSGi container in the following configurations:

  1. Default (default classifier with all dependencies)
  2. Netty-Shaded (shaded classifier with all depedencies w/o Netty)
  3. Guava 17
  4. Guava 18
  5. Guava 19
X Tutup