facebook

EJB Quickstart xDocLet action/documentation

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #246437 Reply

    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]

    #246497 Reply

    Greg
    Member

    Glad you asked the question. You are right that the TraderHome is not updated. But if you would have changed anything in the source EJB class, say the JNDI_NAME, then yes, that file would be updated by running xdoclet.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: EJB Quickstart xDocLet action/documentation

You must be logged in to post in the forum log in