ArchiveOperationHandler mongoArchiveHandler =
new MongoArchiveOperationHandlerConfigurer()
.gigaSpace(gigaSpace)
.config(config)
.db("mydb")
.create();
// To free the resources used by the archive container make sure you close it properly.
// A good life cycle event to place the destroy() call would be within the @PreDestroy or DisposableBean#destroy() method.
archiveContainer.destroy();