----- Original Message -----
Sent: Thursday, August 28, 2003 10:30
AM
Subject: Re: [Xdoclet-user] JBoss
ejb-external-ref view-type="local"
Hello,
I think that the only thing you need in
this case
(external local reference) is the
information
in "ejb-jar.xml".
The local reference doesn't need to be
specified
in the JBoss-specific descriptor
"jboss.xml"
(if you use the "link"
attribute).
The "@jboss.ejb-ref-jndi" tag is
necessary for remote
references only. There does not seem to
be
similar tag for local
references.
Hope this helps.
Michal Palicka, Cleverlance
----- Original Message -----
Sent: Wednesday, August 27, 2003 11:04
PM
Subject: [Xdoclet-user] JBoss
ejb-external-ref view-type="local"
I am having great difficulty getting XDoclet to
work with JBoss accessing a local ejb in one jar from another jar (both in
the same deployment ear). I had all this working in JBuilder but have
migrated to allow auto-building, testing etc. The difficulty is that
with the following ejb.ejb-external-ref:
* @ejb.ejb-external-ref
* view-type="local"
* link="PKHolder"
* ref-name="ejb/pkgen"
* type="Session"
* home="webforms.pkgenerator.ejb.PkHolderLocalHome"
* business="webforms.pkgenerator.ejb.PkHolderLocal"
the only matching jboss element is jboss.ejb-ref-jndi
eg:
* @jboss.ejb-ref-jndi
* jndi-name="PKHolderLocal"
* ref-name="pkgen"
This generates (in jboss.xml)
<ejb-ref>
<ejb-ref-name>ejb/pkgen</ejb-ref-name>
<jndi-name>PKHolderLocal</jndi-name>
</ejb-ref>
The trouble is I need <ejb-local-ref>, I know that
works as I used it with the JBuilder set up. Leaving it as above JBoss
complains that it has an ejb-ref element without a matching element in the
ejb-jar.xml file.
Is there a solution to this that doesn't involve me
manually changing the deployment descriptor since that was the whole point
of using xdoclet and ant.
Thanks