I have a very difficult problem to figure out. Wondering if you can be
of help. At the very least, it will make you really think :).
I have a platform which is using osgi as the container. All services
are divided in different classloaders by osgi. I want to make a router
that marshal's outgoing xml and unmarshal's incoming xml using
JaxME......would like to use JAXB but that won't work after studying
JAXBContext.java.
Every service will have JaxME objects in the api. Every service is in a
different classloader from JaxME. JaxME is visible to these
objects(osgi can import other class's into the service classloader), but
these objects are not visible to JaxME except if somehow I register
these objects with JaxME which I would like to do.
Ideally, I want this router to have a JaxME context and when services
are deployed, they are registered with this instance. When xml comes
in, I call unmarshal and get an object of which I look up the type in a
hashtable and route it to the correct service.
Is this going to be possible with JaxME. My plan is to try to make it
happen by modifying JaxME(while keeping JaxME JAXB compliant of course)
and to stay as close to JAXB as possible which I already know some parts
will not be compliant. Castor seemed to support this before as you just
registered the handlers with Castor and those handlers could come from
any classloader.
thanks for any opinions and direction on this,
thanks,
dean
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]