Loading class mapping dynamically

Aloïs Cochard <[email protected]>
Newsgroups gmane.text.xml.xmlbeans.user
Message-ID <[email protected]>
Greetings,

I'm actually doing some investigation using XmlBeans in distributed or
modular environment.

As far as I understand, XmlBeans load the "class <--> schema" mapping using
static initialization that occur in the classes that XmlBeans generate when
compiling a schema.

But how can I register the mapping when the .jar containing the compiled
schema is loaded dynamically (i.e. inside GridGain or using
OSGI/ServiceLoader) ?

I'm using spring-oxm and I haven't lot of control on the marshaller, I can
define some XmlOptions but I don't see which option can be used to define
class <--> schema mapping manually. I took a look at the static
initialization in the generated model, but I don't see what is useful for
registering classes.

Anyone can point me to some resource or have give me tricks for implementing
that ?

Thanks a lot !

Alois Cochard
http://aloiscochard.blogspot.com
http://www.twitter.com/aloiscochard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.