On Feb 21, 2009, at 3:35 PM, Karan Malhi wrote:

Try to add injection support for struts 2 actions, interceptors and results. One of the things I have to do is read struts config files and discover action classes. Was trying to use JaxbJavaee from the JEE module and it did
not work. I had done something similar with JSF without any issues.

The difference probably is that struts config files are based off of DTD's
instead of Schemas. And thats where I think JaxbJavaee blows up. I am
thinking of bypassing JaxbJavaee to read descriptors , does anybody have any
issues with me using straight JAXB API instead?

That's cool. We essentially have one Jaxb* class for each schema because of the namespace filtering we do -- i.e. coercing the xml we're reading into the right namespace.

Secondly, when I generated java classes from JSF schema, I put them under the JEE module in package org.apache.openejb.jee , where would i put the
generated classes for struts (module and package)?

It's fine to put it in the openejb-jee module but it has to be in another package or Jaxb will get cranky. Maybe in the package org.apache.openejb.jee.struts or something.

-David

Reply via email to