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 » Is it possible to store a Arraylist in Global cache.?

Post new topic  Reply to topic
 Is it possible to store a Arraylist in Global cache.? « View previous topic :: View next topic » 
Author Message
DP1234
PostPosted: Wed Jun 25, 2014 3:53 am    Post subject: Is it possible to store a Arraylist in Global cache.? Reply with quote

Apprentice

Joined: 25 May 2014
Posts: 40

I was working in an upgradation of Routing Framework which currently used java HashMap's for the purpose...where i am working on in replacing HashMap's by the global Cache...I jus wanted to know is it possible to store Arraylist in the Global cache..??

And also heard its not possible to use Xpath's in ESQL after reading in couple of other threads...Jus asking is thr any alternate solution to work on Xpath's except calling java

thanks in advance
Back to top
View user's profile Send private message
Esa
PostPosted: Thu Jun 26, 2014 2:49 am    Post subject: Re: Is it possible to store a Arraylist in Global cache.? Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

DP1234 wrote:
I jus wanted to know is it possible to store Arraylist in the Global cache..??


Yes, but how you should do it depends on your Broker/IIB version
Back to top
View user's profile Send private message
DP1234
PostPosted: Thu Jun 26, 2014 3:43 am    Post subject: Re: Is it possible to store a Arraylist in Global cache.? Reply with quote

Apprentice

Joined: 25 May 2014
Posts: 40

Esa wrote:
DP1234 wrote:
I jus wanted to know is it possible to store Arraylist in the Global cache..??


Yes, but how you should do it depends on your Broker/IIB version


Am using IIB 9.0 for doing this
Back to top
View user's profile Send private message
iShakir
PostPosted: Thu Jun 26, 2014 6:33 am    Post subject: Reply with quote

Apprentice

Joined: 07 Mar 2013
Posts: 47

Have you tried it? The cache should accept Java serializable objects.
Back to top
View user's profile Send private message
DP1234
PostPosted: Thu Jun 26, 2014 7:16 am    Post subject: Reply with quote

Apprentice

Joined: 25 May 2014
Posts: 40

Can anybody confirm this...is it possible to store arraylist directly in Globalcache without serializing...Does cache lets this???
Back to top
View user's profile Send private message
iShakir
PostPosted: Thu Jun 26, 2014 7:48 am    Post subject: Reply with quote

Apprentice

Joined: 07 Mar 2013
Posts: 47

Try:

MbGlobalMap map = MbGlobalMap.getGlobalMap("test_map");
map.put("test_key", new ArrayList<String>());

This should work.
Back to top
View user's profile Send private message
Esa
PostPosted: Thu Jun 26, 2014 10:17 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

DP1234 wrote:
Can anybody confirm this...is it possible to store arraylist directly in Globalcache without serializing...Does cache lets this???


Yes, on V 9 you don't need to serialize the object, but the class must support a couple of interfaces for serializing. Check the Infocent.. Knowledge thing.
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 » Is it possible to store a Arraylist in Global cache.?
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.