[infinispan-dev] JAXB/XML part for ISPN-244

Galder Zamarreño galder at redhat.com
Tue Nov 30 03:45:37 EST 2010


Hi Vladimir,

I'm working on https://jira.jboss.org/browse/ISPN-244 and I'm trying to figure out how to modify GlobalConfiguration class in order to enable XML configuration for this to be something along these lines:

<serialization marshallerClass="org.infinispan.marshall.VersionAwareMarshaller" version="1.0">
  <marshallables>
    <marshallable id="9" typeClass="acme.SomePojo" externalizerClass="acme.SomePojoExternalizer" />
    <marshallable id="10" typeClass="acme.OtherPojo" externalizerClass="acme.OtherPojoExternalizer" />
  </marshallables>
</serialization>

I have an initial implementation of the JIRA in https://github.com/galderz/infinispan/tree/ispn244 and in there you can see what i've done so far, but basically, I've simply added some API to GC get the core of the JIRA working. Now I need to figure out how to transform it to allow XML like shown above, or any other alternative that you might be able to think. Looking around, I hadn't found an example of such XML configuration and how it'd map to our code, but looking again, I think what you did for loaders/loader in Cache configuration might be similar? WDYT?

Cheers,
--
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache




More information about the infinispan-dev mailing list