Bugs item #491382, was opened at 2001-12-10 17:18
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=491382&group_id=31602
Category: xdoclet
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Toby Hede (ubik42)
Assigned to: Nobody/Anonymous (nobody)
Summary: Bug in Interface generation patterns
Initial Comment:
When I define this as my ejbdoclet Task in an Ant
build:
<remoteinterface pattern="I{0}Remote"/>
<homeinterface pattern="I{0}Home"/>
<localinterface pattern="I{0}Local"/>
<localhomeinterface pattern="I{0}LocalHome"/>
I have the following tags defined in my Bean class:
* @ejb:home generate="local,remote"
* package="ubik.ejb.thing.interface"
*
* @ejb:interface generate="local,remote"
* package="ubik.ejb.thing.interface"
The following classes are generated:
IThingLocal.java
IThingLocalHome.java
ThingLocal.java
ThingLocalHome.java
And an examination of the classes reveals that the
classes are being defined correctly, as per the EJB2.0
spec, but the names are incorrect:
public interface IThingLocal
extends javax.ejb.EJBObject
public interface IThingLocalHome
extends javax.ejb.EJBHome
public interface ThingLocal
extends javax.ejb.EJBLocalObject
public interface ThingLocalHome
extends javax.ejb.EJBLocalHome
----------------------------------------------------------------------
>Comment By: Toby Hede (ubik42)
Date: 2001-12-10 17:25
Message:
Logged In: YES
user_id=280497
I have managed a workaround to this. Explicitly defining
the class names in the base Bean java source results in the
correct interfaces being generated.
* @ejb:home generate="remote, local"
* package="ejb.thing.interface"
* remote-class="ejb.thing.interface.IThingRemoteHome"
* local-class="ejb.thing.interface.IThingLocalHome"
*
* @ejb:interface generate="remote, local"
* package="ejb.thing.interface"
* remote-class="ejb.thing.interface.IThingRemote"
* local-class="ejb.thing.interface.IThingLocal"
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=402704&aid=491382&group_id=31602
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel