Hi,
Running JBoss 3alpha and XDoclet 1.1.2....
I have the following at the start of my Bean:
* @ejb:ejb-ref
* ejb-name="Department"
* view-type="local"
*
* @jboss:ejb-ref-jndi
* ref-name="Department"
* jndi-name="DepartmentLocalHome"
When I run XDoclet my ejb-jar file is create ok:
<ejb-local-ref >
<ejb-ref-name>ejb/Department</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<local-home>ecb.projectname.DepartmentLocalHome</local-home>
<local>ecb.projectname.DepartmentLocal</local>
<ejb-link>Department</ejb-link>
</ejb-local-ref>
But my jboss.xml file appears as follows:
<ejb-ref>
<ejb-ref-name>ejb/Department</ejb-ref-name>
<jndi-name>DepartmentLocalHome</jndi-name>
</ejb-ref>
This gives me the error
Could not deploy file:/etcetc/project-ejb.jar, Cause:
org.jboss.ejb.DeploymentException: Error in jboss.xml for Bean
EntityCreator: ejb-ref ejb/Department found in jboss.xml but not in
ejb-jar.xml
If I remove the line:
* view-type="local"
then the bean successfully deploys, but my ejb-jar file has <ejb-ref>
instead of <ejb-local-ref> (which is not what I want as it always returns a
Remote and I need it to be Local).
-=-=
In the docs I cannot find an equivalent * @jboss:ejb-local-ref-jndi so
there must be another way to tell JBoss to use a local ref?
Many TIA
Chris
--=-=-
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user