[infinispan-issues] [JBoss JIRA] (HRJS-41) String-only JBoss Marshaller for interop
Galder Zamarreño (JIRA)
issues at jboss.org
Thu Jun 1 11:35:00 EDT 2017
[ https://issues.jboss.org/browse/HRJS-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415108#comment-13415108 ]
Galder Zamarreño commented on HRJS-41:
--------------------------------------
There's a workaround available actually:
You can configure the Java Hot Rod client to use a marshaller that produces UTF-8 String representations, in which case, the Node.js client would be able to read data fine.
E.g.
{code}
import org.infinispan.commons.marshall.StringMarshaller;
import org.infinispan.client.hotrod.configuration.ConfigurationBuilder;
...
ConfigurationBuilder clientBuilder = ...
clientBuilder.marshaller(new StringMarshaller(Charset.forName("UTF-8")));
{code}
> String-only JBoss Marshaller for interop
> ----------------------------------------
>
> Key: HRJS-41
> URL: https://issues.jboss.org/browse/HRJS-41
> Project: Infinispan Javascript client
> Issue Type: Feature Request
> Reporter: Galder Zamarreño
>
> {code}
> <ttarrant> galderz, I think a very basic string-only marshaller for
> the node.js client would have been a good idea
> <ttarrant> galderz, rigazilla has done that for C++
> <ttarrant> galderz, it basically produces a JBoss
> Marshaller-compatible string
> > ttarrant: yeah, maybe... gustavo's work around the corner though
> <ttarrant> galderz, you're just lazy :)
> > lol
> > ttarrant: more than lazy, i was able to get all my demos working wo/
> needing that, and no one till today has asked it really?
> > ttarrant: i guess you refer to
> https://developer.jboss.org/message/972736#972736 ?
> <jbossbot> Title: Access jdg remote cache on nodejs | JBoss Developer
> <ttarrant> galderz, yes :)
> <ttarrant> galderz, because you didn't need interop
> > ttarrant: yeah... think we agreed to leave it aside, but if
> rigazilla has already done one that'd make things easier
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the infinispan-issues
mailing list