How to get all values of a MbGlobalMap inside the IIB Global Cache?
<p>I'm storing some information inside a <code>MbGlobalMap</code> (embedded Global Cache) of the IBM Integration Bus. If the map is called <code>EXAMPLE.MAP</code> I can access the values as follows:</p>

<pre><code>MbGlobalMap map = MbGlobalMap.getGlobalMap("EXAMPLE.MAP");
Object value = map.get(key);
</code></pre>

<p>But I want to get all values of the <code>EXAMPLE.MAP</code>, even if I don't know all keys of the map. I can't iterate over the <code>MbGlobalMap</code> and a cast to <code>java.util.Map</code> won't work at all.</p>

<p>This is the documentation of the Class: <a href="https://www.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.plugin.doc/com/ibm/broker/plugin/MbGlobalMap.html" rel="noreferrer">https://www.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.plugin.doc/com/ibm/broker/plugin/MbGlobalMap.html</a>. There is no method provided, to return all elements inside the Map.</p>

<p>A workaround could be a list with all current keys in it, so that you can get this list and with it you can get all values inside the map. But this is not a clean solution I think.</p>