1 Reply Latest reply on Jan 27, 2002 7:05 PM by Eric Jain

    1:n CMR

    Eric Jain Newbie

      I am trying to get a simple 1:n container-managed relationship to work (JBoss 3.0.0alpha). It seems that it is not sufficient to define the relationships in ejb-jar.xml. Though everything deploys without any error messages, no foreign keys fields appear in the generated database tables, and trying to access any of the relationships fields fails.

      If I create a jbosscmp-jdbc.xml file and define the relationships there, I get an error while deploying. Note that I double-checked that the names used were the same in both files.

      [...] org.jboss.ejb.DeploymentException: Configuration found in jbosscmp-jdbc.xml for relation ProviderBean-ServiceBean but relation is not a jbosscmp-jdbc-managed relation in ejb-jar.xml [...]