Help with using UserEJB
thepriz Mar 13, 2004 2:02 PMOk, I am trying to add a user to their rating of a download. I use the following for the interface method.
/** * @ejb.interface-method * @ejb.relation * name="DownloadRatings[-]User" * role-name="DownloadRatings-]User" * target-ejb="UserEJB" * target-role-name="User-]DownloadRatings" * target-multiple="yes" * @jboss.relation * fk-column="userId" * related-pk-field="id" * @jboss.method-attributes * read-only="true" */
It builds ok but when it is deployed I am getting the following exception.
org.jboss.deployment.DeploymentException: Entity: UserEJB not found for relation: DownloadRatings[-]User at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.<init>(JDBCRelationshipRoleMetaData.java:106) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.<init>(JDBCRelationMetaData.java:133) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init>(JDBCApplicationMetaData.java:174) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:52) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:706) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:409) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:357) at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:152) at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:342) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) ...
I have tried to follow how bb module does it but then the DownloadsRatingsEJB module is not built. Sorry for the EJB question but I am very new at all this EJB stuff and I hope you don't mind helping a novice EJB programmer out.
Thanks,