Hi Paul,
See inline responses.
Thanks!
Ke
On Aug 23, 6:19 am, Paul C <
pkci...@gmail.com> wrote:
> I can see your point about configuration and deployment in testing and
> development needing the XML support more than a production environment
> (in theory). However, it happens that the XML and XSL support without
> Java is a requirement for the particular production environment I am
> thinking about. XML configurations are modified dynamically in the
> field/production environment (with a simple text editor). It also
> requires the use of configuration variables in a properties file being
> pulled into the configuration similar to java property files in ANT or
> Spring.
>
1. XML support without Java is already supported by PocoCapsule. You
just need to link (or pre-load) the C++ based XML reader (i.e. the
libpocoxml.so or pocoxml.dll) with the container, then, the container
will not attempt to load/use the java based XML reader. For XSLT
handling, if it is that necessary, you can extend the C++ XML reader
to support XSLT by integrating with the C++ Xalan. By the way, Spring
does not support XSLT at all.
2. XML configuration dynameic modification is also already supported
and documented and used by heavily and transparently used by
PocoCapsule's CORBA support module. Please look for "env-var" in user
guide.
> Its great that pococapsule is out there and I am still learning about
> it. It takes time to find the best suited approach to do things with
> Pococapsule since its new to me. Regarding a tool to build jni
> wrappers to poco's for generic IoC control from Java containers like
> Spring, is there something in particular you find unpractical about
> that approach?
>
There is no advantage with that approach or even more trouble than
worth. For instance, the lifecycle control of C++ objects is
significantly different from Java objects. These control primitives
are missing in Spring's schema. etc.. Besides, as pointed out in the
previous discussion:
http://groups.google.com/group/pococapsule/browse_thread/thread/9986e150bc7e1167?hl=en
Pococapsule allows runtime to work without Java if users want to, even
if XSLT is used in configurations.