Software AG Products 10.5 | Administering Integration Server | Configuring Ehcache on Integration Server | Making a Cache Searchable | Defining Attributes | Extracting Attributes by Class
 
Extracting Attributes by Class
 
Example Extractor
To extract attributes using an attribute extractor class, follow the general steps below.
Note:
If you want to search a document (IData) in a cache, you must first create an attribute extractor class that can be used byEhcache to extract the search attributes. Ehcache uses the extractor class and the provided search attribute information to search the cache when the pub.cahce:search service executes.
Step
Description
1
Create an attribute extractor class that is an implementation of net.sf.ehcache.search.attribute.AttributeExtractor. For more information about attribute extractors, see the Terracotta Ehcache product documentation.
2
Place the extractor in a jar file and place the jar file in one of the following directories:
* Integration Server_directory \instances\instance_name \lib\jars\custom
* Integration Server_directory \instances\instance_name \packages\packageName \code\jars\static
3
Configure the search attributes for the cache to identify:
*The name of attributes extracted by the class
*The extractor class
*The properties for the extractor class as key/value pairs, separated by commas (,)