patricetouner (1) [Avatar] Offline
#1
Hi, I'm just start to use XDoclet. And I don't arrive to produce a ejb-jar file with my data. It produce always a ejb-jar file with default value (for example Stateless, Container) ?
I work with XDoclet 1.2.2, Ant 1.6.2 and Eclipse 3.0

The head of my ejb is :
------------------------------------------------
package com.example;

/**
* @ejb.bean
* name="Sample"
* local-jndi-name="SampleHome"
* view-type="local"
* type="Statefull"
* transaction-type="Bean"
*
* @ejb.transaction
* type="Required"
*
* @weblogic.transaction-descriptor
* trans-timeout-seconds="300"
*
*/

import javax.ejb.SessionBean;

public class SampleBean implements SessionBean {
...
--------------------------------------------------

a part of my ant file is :
--------------------------------------------------

<taskdef name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="project.xdoclet.path" />

<ejbdoclet
destDir="${project.dir.home}"
excludedTags="@version,@author"
addedTags="@xdoclet-generated at ${TODAY}"
verbose="no"
ejbSpec="2.0">

<fileset dir="${project.dir.src}">
<include name="com/example/SampleBean.java"/>

</fileset>

<localinterface pattern="{0}Local"/>
<localhomeinterface pattern="{0}Home"/>
<remoteinterface pattern="{0}Remote"/>
<homeinterface />

<deploymentdescriptor
xmlencoding="ISO-8859-1"
destdir="${project.dir.home}"/>

<weblogic
xmlencoding="ISO-8859-1"
destdir="${project.dir.home}" />
</ejbdoclet>



--------------------------------------------------