W
Willian Irving Zumwalt
Hey all,
Does anyone see anything wrong w/ this session bean. I'm pretty new to
XDoclet and having various problems in compiling or loading. So now
I'm just trying a very basic example. I get the following compile
errors below it.
/**
*
* @ejb.bean
* name="comp/History"
* type="Stateless"
* view-type="remote"
* jndi-name="ejb/comp/History"
*
* @ejb.home
* extends="javax.ejb.EJBHome"
* remote-class="com.place.management.ejb.session.HistoryHome"
*
* @ejb.interface
* extends="javax.ejb.EJBObject"
* remote-class="com.place.management.ejb.session.History"
*/
public class HistoryBean implements SessionBean
{
private transient SessionContext context = null;
public void setSessionContext(SessionContext ctx) {
context = ctx;
}
public void unsetSessionContext() throws EJBException {
context = null;
}
/**
* @ejb.create-method
*/
public void ejbCreate() throws CreateException { }
/**
* @ejb.home-method
*/
public void ejbRemove() throws EJBException { }
/**
* @ejb.home-method
*/
public void ejbPassivate() { }
/**
* @ejb.home-method
*/
public void ejbActivate() { }
/**
* @ejb.home-method
*/
public void ejbRemove() { }
}
--- jboss server output ---
[javac] Compiling 42 source files to /home/myProject/build/classes
[javac] /home/myProject/src/com/place/management/ejb/session/HistoryBean.java:74:
ejbRemove() is already defined in
com.place.management.ejb.session.HistoryBean
[javac] public void ejbRemove() { }
[javac] ^
[javac] /home/myProject/build/gen/com/place/management/ejb/session/HistoryHome.java:29:
remove() is already defined in
com.place.management.ejb.session.HistoryHome
[javac] public void remove()
[javac] ^
[javac] 2 errors
Does anyone see anything wrong w/ this session bean. I'm pretty new to
XDoclet and having various problems in compiling or loading. So now
I'm just trying a very basic example. I get the following compile
errors below it.
/**
*
* @ejb.bean
* name="comp/History"
* type="Stateless"
* view-type="remote"
* jndi-name="ejb/comp/History"
*
* @ejb.home
* extends="javax.ejb.EJBHome"
* remote-class="com.place.management.ejb.session.HistoryHome"
*
* @ejb.interface
* extends="javax.ejb.EJBObject"
* remote-class="com.place.management.ejb.session.History"
*/
public class HistoryBean implements SessionBean
{
private transient SessionContext context = null;
public void setSessionContext(SessionContext ctx) {
context = ctx;
}
public void unsetSessionContext() throws EJBException {
context = null;
}
/**
* @ejb.create-method
*/
public void ejbCreate() throws CreateException { }
/**
* @ejb.home-method
*/
public void ejbRemove() throws EJBException { }
/**
* @ejb.home-method
*/
public void ejbPassivate() { }
/**
* @ejb.home-method
*/
public void ejbActivate() { }
/**
* @ejb.home-method
*/
public void ejbRemove() { }
}
--- jboss server output ---
[javac] Compiling 42 source files to /home/myProject/build/classes
[javac] /home/myProject/src/com/place/management/ejb/session/HistoryBean.java:74:
ejbRemove() is already defined in
com.place.management.ejb.session.HistoryBean
[javac] public void ejbRemove() { }
[javac] ^
[javac] /home/myProject/build/gen/com/place/management/ejb/session/HistoryHome.java:29:
remove() is already defined in
com.place.management.ejb.session.HistoryHome
[javac] public void remove()
[javac] ^
[javac] 2 errors