Accesing an external cache from a Map Reduce method
Environment
- RedHat Jboss Data Grid (JDG) 6.x
Issue
Is it possible to use an external cache from a map reduce method?
Will injecting a cache using @Remote work?
Resolution
Accessing the cache for which the Map Reduce function is running can be done by using @Inject and @Input, but there is no way to access another cache using this method, and Inject @remote will not work.
Root Cause
A Map Reduce function is by design intended to only access one cache.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
