0 Replies Latest reply on Jul 28, 2005 5:38 AM by bbeloff

    Different behavior of POJO in EJB and Web contexts

    bbeloff

      Hi

      I've got a collection of classes that use Castor to generate some XML, using a Castor-style XML mapping within a J2EE application. I've got a problem here that's got me beat, I hope someone can help.

      When I invoke this arrangement from a Web context (specifically, from the constructor of a servlet listner), then it works fine.

      When I invoke the same arrangement from a stateless session EJB method, the XML is generated, but the mappings aren't applied. No exceptions or debug messages are issued.

      This second arrangement worked fine on JBoss 3.2.6, but doesn't work on JBoss 4.0.2.

      Any ideas?

      Bruno.