Martin <mgencur(a)redhat.com> (unregistered) wrote, in response to Doug:
Hi, the quickstart stores custom objects (Team) and the server knows nothing about this
type. The quickstart (through HotRod client) performs marshalling of a Team object and
stores the marshalled object (array of bytes) into the cache, not the actual Team object.
As a result, the CLI does not understand the marshalled value and returns null.
You can, however, call "get --codec=hotrod teams" and this will return you
{"java.util.ArrayList":["Barcelona"]}. The CLI is able to return it
because it's a known type - ArrayList, which is stored under a specific key
"teams"
Hope that helps
IP address: 209.132.186.34
Link to comment:
http://redirect.disqus.com/url?url=http%3A%2F%2Fjboss.org%2Fjdf%2Fquickst...
Doug (unregistered) wrote:
I'm running boss-datagrid-server-6.1.0 and trying out the hotrod-endpoint quickstart.
The quickstart is working but I can't seem to get anything from the "teams"
cache using the cli. Should I be able to do the following and see the contents?
cache "teams"
get "teams"
When I do that all I get back is "null".
-----
Options: You can moderate through email. Respond in the body with "Delete".
Reply with "Like" to like this comment, or respond with anything else to approve
this comment and post your message as a reply comment.
Or use the moderate panel:
http://jdf.disqus.com/admin/moderate/#/pending
Stop receiving notifications when new comments are posted:
http://disqus.com/account/#notifications