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?
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