<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Replace the MultiVMPoolUtil calls in Liferay 7.2</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118941552" />
  <subtitle>Replace the MultiVMPoolUtil calls in Liferay 7.2</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118941552</id>
  <updated>2026-04-04T23:38:56Z</updated>
  <dc:date>2026-04-04T23:38:56Z</dc:date>
  <entry>
    <title>RE: Replace the MultiVMPoolUtil calls in Liferay 7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118947665" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118947665</id>
    <updated>2020-04-15T15:10:07Z</updated>
    <published>2020-04-15T15:10:07Z</published>
    <summary type="html">There is no fetch method. I would do this to get the cache and then a value from it:&lt;br /&gt;PortalCache&amp;lt;String, Map&amp;lt;Long, Library&amp;gt; &amp;gt; portalCache = PortalCache&amp;lt;String, Map&amp;lt;Long, Library&amp;gt;&amp;gt;) multiVMPool.getPortalCache( &amp;#34;UNIQUE CACHE KEY);  //Usually the class name of the current class is used as cache key&lt;br /&gt;return portalCache.get(cacheKey);</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-04-15T15:10:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: Replace the MultiVMPoolUtil calls in Liferay 7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118943989" />
    <author>
      <name>Rajesh Chaurasia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118943989</id>
    <updated>2020-04-15T13:17:54Z</updated>
    <published>2020-04-15T13:17:54Z</published>
    <summary type="html">Is this the way to execute the change to use MultiVMPool : For a 6.1 code statement  &lt;strong&gt;(Map&amp;lt;Long, Library&amp;gt;) MultiVMPoolUtil.get(LIBRARY_BY_ID_CACHE_NAME, cacheKey) &lt;/strong&gt;&lt;br /&gt;Is this correct change for similar code change for  7.2 ?PortalCacheManager&amp;lt;?, ?&amp;gt; portalCacheManager = PortalCacheManagerProvider.getPortalCacheManager(LIBRARY_BY_ID_CACHE_NAME);&lt;br /&gt;return (Map&amp;lt;Long, Library&amp;gt;) portalCacheManager.fetchPortalCache(cacheKey)</summary>
    <dc:creator>Rajesh Chaurasia</dc:creator>
    <dc:date>2020-04-15T13:17:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: Replace the MultiVMPoolUtil calls in Liferay 7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118942972" />
    <author>
      <name>Rajesh Chaurasia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118942972</id>
    <updated>2020-04-15T12:57:30Z</updated>
    <published>2020-04-15T12:57:30Z</published>
    <summary type="html">Thanks for your response , appreciate that</summary>
    <dc:creator>Rajesh Chaurasia</dc:creator>
    <dc:date>2020-04-15T12:57:30Z</dc:date>
  </entry>
  <entry>
    <title>RE: Replace the MultiVMPoolUtil calls in Liferay 7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118942644" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118942644</id>
    <updated>2020-04-15T12:44:42Z</updated>
    <published>2020-04-15T12:44:42Z</published>
    <summary type="html">MultiVMPoolUtil just dispatched all method calls to MultiVMPool, so you should use that one directly. e.g. &lt;br /&gt;@Component&lt;br /&gt;public class YourClass {&lt;br /&gt;@Reference &lt;br /&gt;private MultiVMPool multiVMPool;&lt;br /&gt;...&lt;br /&gt;}</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2020-04-15T12:44:42Z</dc:date>
  </entry>
  <entry>
    <title>Replace the MultiVMPoolUtil calls in Liferay 7.2</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118941551" />
    <author>
      <name>Rajesh Chaurasia</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118941551</id>
    <updated>2020-04-15T10:21:11Z</updated>
    <published>2020-04-15T10:21:11Z</published>
    <summary type="html">Hi All,&lt;br /&gt;We have many calls related to MultiVMPoolUtil in Liferay 6.1 and we are trying to upgrade it to Liferay 7.2.Let me know how i can upgrade the following calls -&lt;br /&gt;(Map&amp;lt;Long, Library&amp;gt;) MultiVMPoolUtil.get(LIBRARY_BY_ID_CACHE_NAME, cacheKey);&lt;br /&gt;MultiVMPoolUtil.put(LIBRARY_BY_ID_CACHE_NAME, cacheKey,  resourceLibraryById);</summary>
    <dc:creator>Rajesh Chaurasia</dc:creator>
    <dc:date>2020-04-15T10:21:11Z</dc:date>
  </entry>
</feed>
