ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB GLOBAL CACHE DUPLICATE MAP NAME

Post new topic  Reply to topic
 IIB GLOBAL CACHE DUPLICATE MAP NAME « View previous topic :: View next topic » 
Author Message
HSJ
PostPosted: Wed Apr 20, 2022 11:05 am    Post subject: IIB GLOBAL CACHE DUPLICATE MAP NAME Reply with quote

Newbie

Joined: 20 Apr 2022
Posts: 2

Please help:
I am asking you this help after going through many links for the past 1 week.

The Case:

FLOW1:

Receive incoming request with correlation ID say "K1" having length more than 24 which is not expectable to MQGET node. we generated the unique number with length less or equal to 24 and cached as value say "V1" for key "k1" and send request to backend system and waiting for response with MQGET node against key "K1"

FLOW2:

Receive response from MQ output node with the key "K1", got value "V1" against key "K1" from cache and put to the queue from where flow1 gets response and after every 3minutes entry gets removed from cache.

What I am looking for:

The application has number of transaction and for every request cache put and get mechanism used. I found duplicate global map name while performing following command:
Quote:
Is this ok with duplicate map name or something wrong ?


mqsicacheadmin MyTest -c showMapSizes

Code:

GlobalCacheMap              0         3           1 KB       Primary    MyTest_172.24.80.99_2820_C-1
GlobalCacheMap              1         1           536 B      Primary    MyTest_172.24.80.99_2820_C-1
GlobalCacheMap              2         2           1 KB       Primary    MyTest_172.24.80.99_2820_C-1
GlobalCacheMap              3         0           0          Primary    MyTest_172.24.80.99_2820_C-1
GlobalCacheMap              4         0           0          Primary    MyTest_172.24.80.99_2820_C-1
GlobalCacheMap              5         0           0          Primary    MyTest_172.24.80.99_2820_C-1
GlobalCacheMap              6         2           1 KB       Primary    MyTest_172.24.80.99_2820_C-1
GlobalCacheMap              7         1           536 B      Primary    MyTest_172.24.80.99_2820_C-1
GlobalCacheMap              8         0           0          Primary    MyTest_172.24.80.99_2820_C-1
GlobalCacheMap              9         1           536 B      Primary    MyTest_172.24.80.99_2820_C-1
GlobalCacheMap              10        1           536 B      Primary    MyTest_172.24.80.99_2820_C-1
GlobalCacheMap              11        1           536 B      Primary    MyTest_172.24.80.99_2820_C-1
GlobalCacheMap              12        3           1 KB       Primary    MyTest_172.24.80.99_2820_C-1


Java Code:

Code:

 public static Boolean addUpdateKey(String strKey, String strValue) {
         
          MbGlobalMap globalMap = null;
         
          try
          {
          globalMap = MbGlobalMap.getGlobalMap("GlobalCacheMap", new MbGlobalMapSessionPolicy(180));
           
            if(globalMap.containsKey(strKey)) {
              globalMap.update(strKey,strValue);
            } else {
              globalMap.put(strKey, strValue);
            }
          }
          catch(MbException mbe) {
            System.out.println(mbe.getMessage());
            mbe.printStackTrace();
            return Boolean.FALSE;
          }

          return Boolean.TRUE;
        }

public static String getValue(String strKey) {
         
          String strValue = null;
          MbGlobalMap globalMap = null;
         
          try
          {
         
                globalMap = MbGlobalMap.getGlobalMap("GlobalCacheMap");
                strValue = (String) globalMap.get(strKey);
                
          }
          catch(MbException mbe)
          {
            System.out.println(mbe.getMessage());
            mbe.printStackTrace();
          }
         
          return strValue;
        }
Back to top
View user's profile Send private message
HSJ
PostPosted: Sat Apr 23, 2022 10:38 am    Post subject: IIB GLOBAL CACHE DUPLICATE MAP NAME Reply with quote

Newbie

Joined: 20 Apr 2022
Posts: 2

Can you please suggest by using default policy, one can use multiple global map objects for putting and retrieving values from cache where have only one broker and one server.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » IIB GLOBAL CACHE DUPLICATE MAP NAME
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.