1 Reply Latest reply on Mar 7, 2003 1:21 PM by philc

    Using JBoss CMP Metadata

    sorhed

      How can I access CMP/CMR metadata (such as table mappings) available from jbosscmp-jdbc.xml and ejb-jar.xml at runtime in my application running on JBoss? There are classes in JBoss sources like JDBCxxxMetadata, but they are seem to be extremelly coupled with JBoss internals. Is there any way to access this metadata from runtime context easily?

        • 1. Re: Using JBoss CMP Metadata
          philc

          I'm looking for the exact same thing.
          I can access all the metadata I need from the jboss.ejb.Container object. But how can I lookup the Container for a specific EJB at run-time (inside a session bean method)?

          Philippe