I have not been able to get the sunone support of the ejbdoclet task to work correctly.
It generates a sun-ejb-jar.xml, but the only thing in it is the ejb-name.
It is missing the jndi-name and a bunch of bean-pool elements that I have
specified in the .java file. I have come to the conclusion that I am either
missing something very basic or the sunone stuff doesn't work very well.
I would really appreciate it if someone could help me out. Below is
The class file and applicable section of the build file.
<target name="genBeans">
<taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask">
<classpath >
<fileset dir="${xdoclet.lib.dir}" includes="*.jar"/>
<fileset dir="${lib.dir}" includes="*.jar"/>
</classpath>
</taskdef>
<ejbdoclet destdir="${src.dir}" ejbspec="2.0">
<fileset dir="${src.dir}">
<include name="**/*Bean.java"/>
</fileset>
<localinterface/>
<localhomeinterface/>
<remoteinterface/>
<homeinterface/>
<deploymentdescriptor destdir="${bin.dir}/META-INF" />
<sunone version="7.0" destdir="${bin.dir}/META-INF" />
</ejbdoclet>
</target>
import javax.ejb.*;
import java.rmi.RemoteException;
/**
* Test Session Bean
*
* @ejb.bean type="Stateless"
* jndi-name="Hello"
* transaction-type="Container"
*
* @sunone.bean iiop="true"
*
* @sunone.bean-pool steady-pool-size="1"
* resize-quantity="1"
* max-pool-size="20"
* pool-idle-timeout="600"
*/
public class HelloBean
implements SessionBean {
private SessionContext _ctx = null;
/**
* Says Hello
*
* @ejb.interface-method
* @ejb.transaction type="Supports"
*
* @return a hello message
*/
public String hello() {
return "Hello, World!";
}
public void ejbCreate() {}
public void ejbActivate() throws EJBException, RemoteException {}
public void ejbPassivate() throws EJBException, RemoteException {}
public void ejbRemove() throws EJBException, RemoteException {}
public void setSessionContext(SessionContext ctx)
throws EJBException, RemoteException {
_ctx = ctx;
}
}
Curry, Jim.vcf
Description: Binary data
