Hi!
It's seems that that the parameter view-type is not taken in account 
for generating the home methods for the home remote interface and home
local interface.
home methods are always generated in both interfaces

In the home-local.j we have:
  <XDtMethod:forAllMethods superclasses="false">
   <XDtEjbHome:ifIsHomeMethod>
<XDtMethod:methodComment indent="3"/>
   public <XDtMethod:methodType/>
<XDtEjbIntf:interfaceMethodName/>(<XDtParameter:parameterList/>)
<XDtMethod:exceptionList/>;
   </XDtEjbHome:ifIsHomeMethod>
  </XDtMethod:forAllMethods>

don't you think we must have:
  <XDtMethod:forAllMethods superclasses="false">
   <XDtMethod:ifMethodTagValueEquals tagName="ejb:home-method"
paramName="view-type"  value="local">
<XDtMethod:methodComment indent="3"/>
   public <XDtMethod:methodType/>
<XDtEjbIntf:interfaceMethodName/>(<XDtParameter:parameterList/>)
<XDtMethod:exceptionList/>;
  </XDtMethod:ifMethodTagValueEquals>
  </XDtMethod:forAllMethods>

and in home.j:
  <XDtMethod:forAllMethods superclasses="false">
   <XDtMethod:ifMethodTagValueEquals tagName="ejb:home-method"
paramName="view-type"  value="remote">
<XDtMethod:methodComment indent="3"/>
   public <XDtMethod:methodType/>
<XDtEjbIntf:interfaceMethodName/>(<XDtParameter:parameterList/>)
<XDtMethod:exceptionList append="java.rmi.RemoteException"/>;
  </XDtMethod:ifMethodTagValueEquals>
  </XDtMethod:forAllMethods>

your documentation says that the only possible values for this parameter
is local|remote.

Furthermore it seems that you accept home-method for session bean:
"Define this method as a home method (e.g. its name is "ejbHomefoo", and
the corresponding home method should be defined in the home
interface)Applicable to session and entity beans - valid for EJB2.0
only."

The EJB specification 2.0 speaks about home methods only for entity
beans.

Now I have a generation problem:
I want to generate  the prototype of the ejbFind<METHOD> method for a
CMP bean from
the @ejb:finder signature="......" tag.

can anybody tells me the easier way to do this.
thank you
Regards,

-- 
        Philippe

Philippe Coq  Evidian   Phone: (33) 04 76 29 78 49
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer at http://www.objectweb.org

_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to