Quantcast
Channel: VMware Communities : All Content - vFabric GemFire [ARCHIVED]
Viewing all articles
Browse latest Browse all 990

How to get GFSH to query Gemfire 7 PDXSerialized Objects?

$
0
0

Hello,

In Gemfire 6 gfsh was able to query pdx serialized objects.

 

Basically trick the ~/.gemfire/etc/gfsh.properties to have an entry like

cache-xml-file=gfsh-cache.xml

 

and creating a file gfsh-cache.xml

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE cache PUBLIC "-//GemStone Systems, Inc.//GemFire Declarative Cache 6.6//EN" "http://www.gemstone.com/dtd/cache6_6.dtd">

<cache lock-lease="120" lock-timeout="60" search-timeout="300" is-server="false" copy-on-read="false">

    <pdx read-serialized="false">

        <pdx-serializer>

           <class-name>com.gemstone.gemfire.pdx.ReflectionBasedAutoSerializer</class-name>

           <parameter name="classes">

                <string>*</string>

           </parameter>

        </pdx-serializer>

    </pdx>

</cache>

 

However in Gemfire 7 am unable to query any pdx objects

 

the message am getting on client is "Could not create an instance of a class foo.bar"


Viewing all articles
Browse latest Browse all 990

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>