0 Replies Latest reply on Dec 15, 2008 8:08 AM by Don Camel

    JBoss5 with ListenerInjector -> deprecated dependency

    Don Camel Newbie

      I'm currently migrating a project running on JBoss 4.2 to JBoss 5. I stumbled on a problem with the dependencies for the org.jboss.hibernate.ListenerInjector interface. We are implementing this to inject hibernate listeners at runtime. The "injectListeners" method of the interface is declared to throw a org.jboss.deployment.DeploymentException. Since JBoss 5 this exception is marked as deprecated. There is a new org.jboss.deployers.spi.DeploymentException, but the interface requires the deprecated Exception.
      Will this be fixed in the future or is there a new way to inject listeners into the hibernate configuration?
      Thanks for comments.