Andrew, I'm using XDoclet 1.2b3; I specified view-type="local" for entity
beans and view-type="remote" type="stateful" for session beans, but still I
get generated Local Interfaces for session beans.

Here follows the heading of the session bean:

/**

* Session Bean which represent a DB Manager for People table

* @author mtedone

* @ejb.bean

* name="PeopleDbManager"

* jndi-name="ejb/jemos/core/PeopleDbManager"

* view-type="remote"

* type="Stateful"

*

*

*/

----- Original Message ----- 
From: "Andrew Stevens" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 11:09 PM
Subject: Re: [Xdoclet-user] [NEWBIE] Generating only local interfaces in
asingle <ejbdoclet> task


> On Sun, 2003-06-15 at 16:29, Marco Tedone wrote:
> > Hi, I would like all my entity beans having only local interfaces, while
> > having local and remote interfaces for session beans, which should act
as a
> > facade.
> >
> > I solved the problem by creating two ejbdoclet elements, one for entity
> > (where I specify localinterface and localhomeinterface) and one for
session
> > (where I specify remoteinterface and homeinterface). The problem here is
> > that I cannot obtain a unique ejb-jar.xml file, even if I created a
> > session-beans.xml  file in the mergeDir and specified mergeDir in the
> > ejbdoclet element.
> >
> > Anyone of you incurred in the same problem? Does XDoclet offer a way to
> > solve it?
>
> What version of XDoclet?
>
> I believe that for some time now the default view-type has been local
> for entity beans and remote for session beans.  If you want both for the
> session beans, just add a view-type="both" parameter to their @ejb.bean
> class-level tag.  And if you then have any methods which you want
> exposed in only one of the interfaces, add the appropriate view-type
> parameter to the methods' @ejb.interface-method tag (or
> @ejb.home-method, or @ejb.create-method, as appropriate).
>
> That ought to let you do it with only a single ejbdoclet pass.
>
>
> Andrew.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user





-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to