In EJB Quickstart section 8.2 of “Creating a Session EJB – Part-2”, the statement
Next rerun XDoclet on the firstejb project to resynchronize the Trader and TraderHome classes and the deployment descriptors (see Section 7.2 for details).
is puzzling me. I ran XDoclet and noticed that the Trader.java (remote interface) was updated accordingly with the xDoclet annotated methods. However, I fail to see what was “synchronized” in the Home Interface –> TradeHome.java.
My TraderHome.java (home interface) contains
public interface TraderHome
extends javax.ejb.EJBHome
{
public static final String COMP_NAME=”java:comp/env/ejb/Trader”;
public static final String JNDI_NAME=”ejb/com/genuitec/trader/ejb/TraderHome”;
public com.genuitec.trader.interfaces.Trader create()
throws javax.ejb.CreateException,java.rmi.RemoteException;
}
both before and after adding the buy and sell methods to the Bean and running xDoclet.
Also, I don’t understand why the Home Interface would need synchronization after the addition of new methods to the Bean class. The Home Interface has to do only with life-cycle concerns, isn’t that correct?
Excuse my ignorance. I am complete novice when it comes to EJBs.
[/quote]