Developing Apama Applications > Developing Apama Applications in EPL > Using Correlator Plug-ins in EPL > Using the MemoryStore > Adding the MemoryStore bundle to your project
Adding the MemoryStore bundle to your project
To use the MemoryStore, you need only add the MemoryStore bundle to your project as follows. (Note, to use the distributed MemoryStore, you add the Distributed MemoryStore adapter instead. The procedure for this is different and is described in Adding distributed MemoryStore support to a project.)
1. In Apama Studio, to add a bundle to your project, open the project in the Apama Developer perspective.
2. In the Project Explorer, right-click the project name and select Apama > Add Bundle from the pop-up context menu. The Add Bundle dialog is displayed.
3. In the Add Bundle dialog, select The MemoryStore bundle and click OK.
Adding the MemoryStore bundle to your project makes the MemoryStore.mon file available to the monitors in your project. When you run your project, Apama Studio automatically injects MemoryStore.mon. If you want to examine this file, it is in the monitors/data_storage directory of your Apama installation directory. MemoryStore.mon is the interface between the monitors in your application and the MemoryStore plug-in. Your application creates events of the types defined in that file and calls actions on those events to use the MemoryStore's facilities. There is never any need to import or call the plug-in directly.
Note: If you use the engine_inject utility to manually inject your EPL, instead of using Apama Studio, and you want to expose MemoryStore tables to dashboards, you need to inject the MemoryStoreScenarioImpl.mon monitor, which is in the same directory as the MemoryStore.mon file.
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.