Anthony Roy wrote: > Hello all, > > I have two J2EE applications, say A and B. A exposes a SessionBean > using both remote and local interfaces – the XDoclet that does this > follows: > > /** @ejb.bean name="NmrDetails" display-name="NmrDetails" > description="Access to > > * NmrDetails" local-jndi-name="common/NmrDetailsLocal" > > * jndi-name="common/NmrDetails" > > * type="Stateless" view-type="both" > > */ > > public abstract class NmrDetailsBean implements SessionBean {…} > > This works fine. I can access the bean from within application A using > either remote or local lookup (I have tested this both ways). > > Now I want to access the ejb from application B. Now I am not really > sure where and what the XDoclet should be to get the JNDI populated > correctly. I have tried the following on one of the session beans in > app B: > > /** @ejb.ejb-external-ref type = "Session" > > * jndi-name = "common/NmrDetails" > > * home="uk.co.hpi.common.nmr.ejb.NmrDetailsHome" > > * business="uk.co.hpi.common.nmr.ejb.NmrDetails" > > * view-type=remote" >
I don't know if you have copy-pasted it or not, but you 're missing a " here. > */ > > But this seems to produce no output (nothing gets added to the > ejb-jar.xml or any of the app server specific config files). Note that > there are other XDoclet annotations on that particular ejb which > **are** processed, so it’s not a simple case of the file not having > xdoclet run on it. The target in my build.xml is as follows: > > <target name="ejb-xdoclet"> > > <ejbdoclet destdir="${ejb.src.dir}" mergedir="${web.dir}/merge" > excludedtags="@version,@author,@todo" ejbspec="2.0" verbose="false"> > > <fileset dir="${src.dir}" defaultexcludes="yes"> > > <patternset refid="ejb.jar.xdoclet.components" /> > > </fileset> > > <utilobject /> > > <session /> > > <remoteinterface /> > > <homeinterface /> > > <localinterface /> > > <localhomeinterface /> > > <deploymentdescriptor destdir="${dd.dir}" validatexml="false" > useIds="true" displayname="${app.display.name}" > description="${app.description} ejb modules" /> > > <jboss version="3.0" destdir="${dd.dir}" > unauthenticatedPrincipal="nobody" xmlencoding="UTF-8" > validatexml="false" datasource="PLEASE_MODIFY_THIS" > datasourcemapping="PLEASE_MODIFY_THIS" > preferredrelationmapping="PLEASE_MODIFY_THIS" /> > > <webSphere destdir="${dd.dir}" useIds="true" /> > > </ejbdoclet> > > </target> > > Am I missing some directive that denotes that ejb-external-ref’s > should be processed? Am I using the wrong xdoclet, or the right > xdoclet in the wrong place (or simply the wrong both!)? Anyway, I’ve > been banging my head against a wall for a couple of days now - does > anyone have any thoughts. > > Cheers, > > Anthony Roy. > > This email and any files transmitted with it are confidential and are > intended solely for the use of the individual or entity to whom they > are addressed. This communication represents the originator's personal > views and opinions, which do not necessarily reflect those of HPI > Limited. If you are not the original recipient or the person > responsible for delivering the email to the intended recipient, be > advised that you have received this email in error, and that any use, > dissemination, forwarding, printing, or copying of this email is > strictly prohibited. If you received this email in error, please > immediately notify [EMAIL PROTECTED] > > This message has been scanned by Anti-Virus. Recipients are advised to > apply their own virus checks to this message on delivery. > >------------------------------------------------------------------------ > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > >------------------------------------------------------------------------ > >_______________________________________________ >xdoclet-user mailing list >xdoclet-user@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > -- Dimitrios Kapanidis, Software Engineer e-mail: [EMAIL PROTECTED] mobile: +34 678 049 780 Scytl Secure Electronic Voting C. Entenca 95 4-1 08015 Barcelona, Spain http://www.scytl.com NOTICE: The information in this e-mail and in any of its attachments is confidential and intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, any disclosure, copying, distribution or retaining of this message or any part of it, without the prior written consent of SCYTL Online World Security, is prohibited and may be unlawful. If you have received this in error, please contact the sender and delete the material from any computer. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user