Hi Tobi,
I am not sure what the problem is you are experiencing, but I believe
there was a fix recently that could be related.
Anyway, it is not needed to put tagged values on the classes. It should
be sufficient to model a <<ServiceRef>> dependency between the beans.
This has always worked for me, and the samples should show how to do it.
The fact you have view-type="${targetType.viewType}" in your xdoclet is
a bug (this one, I believe, has been fixed in CVS .. not sure though)
Anyway, just try the latest nightly build, and only consider the
dependencies with the <<ServiceRef>> stereotype
http://team.andromda.org/maven/andromda/distributions/andromda-bin-3.0M2
-SNAPSHOT.zip
did anyone else experience this ? or does anyone knows how to solve this
problem ?
-- Wouter
> > Hi Wouter,
> >
> > I think I have found the reason for the problem to model a
> <<ServiceRef>>
> > between two EJBs.
> > The <ejb-ref> entry in the ejb-jar.xml do not exist. After the maven
> build I
> > can find the following Xdoclet tag in the EJB-Bean Class:
> > * @ejb.ejb-ref ejb-name="EjbB" view-type="${targetType.viewType}"
> > ref-name="ejb/EjbBBeanRef"
> >
> > When I have a look at the SessionBean.vsl template of the ejb
cartdridge
> > then I can find a andromda.ejb.viewType attribute.
> >
> > I put this attribute as tagged value of the <<Service>> stereotype
in
> the
> > UML model and after the maven build I can find the following Xdoclet
tag
> in
> > the EJB-Bean Class:
> > * @ejb.ejb-ref ejb-name="EjbB" view-type="${targetType.viewType}"
> > ref-name="ejb/EjbBBeanRef"
> > * @andromda.ejb.viewType local
> >
> > But that�s not the solution.
> > On your site
> >
http://team.andromda.org/docs/andromda-hibernate-cartridge/modeling.html
> I
> > can not find the @andromda.ejb.viewType? Why?
> >
> > How can I achieve that in the ejb-jar.xml the necessary <ejb-ref>
> entries
> > are generated?
> >
> >
> > Regards,
> > Tobi
> >
> > p.s. As attachment you can find an example with two EJBs and my own
> > @andromda.ejb.viewType tagged Value for the <<Service>> stereotype.
> >
> >
> >
> > > > The Code in the SessionFacade method
> > > > ...
> > > > EjBean ejb = SessionFacadeImpl.getEjBeanHome().create();
> > > > ejb.methodDoSomething();
> > > > ...
> > > >
> > > > Is it possible to model two classes as <<Service>> which are
> > > associated
> > > > with
> > > > an <<ServiceRef>>?
> > > >
> > >
> > >
> > >
> > > yes that is how it should be,
> > >
> > > and it is recommended to generate the EJB utility classes, so you
can
> do
> > > XXXServiceUtil.getLocalHome().create()
> > >
> > >
> > > -- Wouter
> > >
> >
> > --
> > +++ GMX DSL-Tarife 3 Monate gratis* +++ Nur bis 25.7.2004 +++
> > Bis 24.000 MB oder 300 Freistunden inkl.
http://www.gmx.net/de/go/dsl
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user