The following comment has been added to this issue:

     Author: Ken Ballard
    Created: Thu, 21 Jul 2005 7:50 AM
       Body:
Sorry. It is NOT a bug. I finally got it to work. I did this:

/**
 * XDoclet-based session bean. The class must be declared public according to
 * the EJB specification. To generate the EJB related files to this EJB: - Add
 * Standard EJB module to XDoclet project properties - Customize XDoclet
 * configuration for your appserver - Run XDoclet Below are the xdoclet-related
 * tags needed for this EJB.
 * 
 * @ejb.bean name="TestService" display-name="Test Service"
 *           description="Session facade for the Test Service"
 *           jndi-name="ejb/LicensingService" type="Stateless" view-type="both"
 *           local-business-interface="com.test.TestService"
 * @ejb.env-entry name="ejb/BeanFactoryPath" type="java.lang.String"
 *                value="applicationContext.xml"
 * @ejb.home local-extends="javax.ejb.EJBLocalHome"
 *           extends="javax.ejb.EJBHome"
 * @ejb.interface local-extends="javax.ejb.EJBLocalObject"
 *                extends="javax.ejb.EJBObject"
 *
 * @author kballard
 */

For some reason, you need to explicitly set more attributes than when doing it 
with ANT. As long as it works...

Thanks,
Ken

---------------------------------------------------------------------
View this comment:
  
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1475?page=comments#action_17026

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1475

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1475
    Summary: Maven XDoclet plugin not working with Spring EJB Suport
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             Maven Plugin
   Versions:
             1.2.3

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Ken Ballard

    Created: Wed, 20 Jul 2005 10:37 AM
    Updated: Thu, 21 Jul 2005 7:50 AM
Environment: Maven 1.0.2 XDoclet 1.2.3
Windows XP Pro

Description:
Is this a bug in the Maven plugin for XDoclet (I'm using version 1.2.3)? When 
using EJBDoclet with ANT, you can write a Stateless Session Bean that extends 
Spring's EJB support class 
org.springframework.ejb.support.AbstractStatelessSessionBean and XDoclet will 
generate the appropriate interfaces and descriptors. With the XDoclet plugin 
for Maven you can only write a Stateless Session Bean that implements 
javax.ejb.SessionBean and get the correct results. Otherwise EJBDoclet 
generates interfaces that extend fictitious classes. For example, if you have a 
Stateless Session Bean that extends AbstractStatelessSessionBean, instead of 
generating a RemoteInterface that extends javax.ejb.EJBObject, ejbdoclet 
creates a RemoteInterface that extends a fictitious class. It takes the word 
AbstractStatelessSessionBean, and either adds Remote to the end of it if you 
specified "maven.xdoclet.ejbdoclet.remoteinterface.0.pattern={0}Remote" in your 
project.properties or just strips off "Bean" leaving you with 
org.springframework.ejb.support.AbstractStatelessSession which also does not 
exist. I've scoured the earth looking for any documentation, blog, or anything 
that will tell me how to get around this. I haven't found anything. Is this a 
bug?

Thanks,
Ken


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to