Thanx for the advice.
Will this work with local interfaces? - it doesn't seem so judging from the 
manual

br. Christian Surlykke

On Friday 18 October 2002 10:51, Konstantin Priblouda wrote:
> --- Christian Surlykke <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > I'm running latest release of XDoclet, and I'm
> > having trouble with
> > ejb-local-ref's between ejb-modules.
> >
> > Short version:
> >
> > The ejb 2.0 specification allows the something like
> > this in an deployment
> > descriptor:
> >
> >     <ejb-local-ref>
> >       ...
> >       <ejb-link>path/to/ejb.jar#ejbname</ejb-link>
> >     </ejb-local-ref>
> >
> > - as long as the reference is within one .ear file.
> > How can one produce the
> > above using XDoclet?
> >
> > ---------------------
> >
> > Long version:
> > Lets say we're making an application containing two
> > ejb modules, mod1 and
> > mod2. Mod1 contains a session bean, S1 and mod2
> > contains a session bean S2.
> >
> > - so the .ear file looks like this:
> >
> > app.ear:
> >   mod1.jar
> >   mod2.jar
> >   META-INF/
> >      MANIFEST.MF
> >      application.xml
> >
> > mod1.jar looks like:
> >
> > mod1.jar
> >   META-INF/
> >      ejb-jar.xml
> >   S1Home.class
> >   S1Remote.class
> >   S1LocalHome.class
> >   S1Local.class
> >
> > and mod2.jar looks like:
> >
> > mod2.jar
> >   META-INF/
> >      ejb-jar.xml
> >   S2Home.class
> >   S2Remote.class
> >   S2LocalHome.class
> >   S2Local.class
> >
> > Now, according to the ejb 2.0 spec (as I understand
> > it) it should be possible
> > for S1 to access S2, provided the ejb-jar.xml of
> > mod1.jar contains something
> > like:
> >
> > <session >
> >   <ejb-name>S1</ejb-name>
> >   ...
> >
> >   <ejb-local-ref >
> >     <ejb-ref-name>ejb/S2</ejb-ref-name>
> >     <ejb-ref-type>Session</ejb-ref-type>
> >     <local-home>S2LocalHome</local-home>
> >     <local>S2Local</local>
> >     <ejb-link>mod2.jar#Operator</ejb-link>
> >   </ejb-local-ref>
> >   ...
> > </session>
> >
> > How is that done with Xdoclet?
> >
> >  If one tries (naively) to put this in S1.java:
> > /**
> > *
> > ...
> > * @ejb:ejb-ref  ejb-name="mod2.jar#S2"
> > view-type="local"  ref-name="ejb/S2"
> > ...
> > */ ,
> >
> > XDoclet will complain that it does not know the ejb
> > 'mod2.jar#S2'. (XDoclet
> > can only write one deployment descriptor at the
> > time, and while generating
> > module 1 it  knows nothing about module 2)
>
> Ever tried to use ejb.external-ref?
> This is more appropriate tag for such tasks...
>
>  * @ejb.ejb-external-ref   view-type="remote"
> link="Sequence"
>  *      ref-name="ejb/Sequence" type="Entity"
>  *
> home="com.ukw.sequence.interfaces.SequenceHome"
>  *
> business="com.ukw.sequence.interfaces.Sequence"
>
>
> regards,
>
> =====
> Konstantin Priblouda ( ko5tik )    Freelance Software developer
> < http://www.pribluda.de > < play java games -> http://www.yook.de >
> < render charts online -> http://www.pribluda.de/povray/ >
>
> __________________________________________________
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to