facebook

EJB Doclet Generation [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #197133 Reply

    jcorbin
    Member

    I created a Enterprise Project with a single EJB Module. The ejb module has a single Session EJB that was created from the EJB Wizard.

    I used the xdoclet configuration wizard and specified and configured the following tags:

    ejbdoclet
    deploymentdescriptor
    fileset
    homeinterface
    remoteinterface

    The name if my ejb implementation class generated from the EJB Wizard is PetEJB.java

    The home interface was created successfully with the name PetEJBHome.java

    The remote interface class did not get generated for some reason even though I specified it in the xdoclet configuration.

    Then I looked at the generated ejb-jar.xml and was surprised to see the following:

    <ejb-name>PetEJB</ejb-name>

    <home>com.organizer.ejb.pet.PetEJBHome</home>
    <remote>com.organizer.ejb.pet.PetEJB</remote>
    <ejb-class>com.organizer.ejb.pet.PetEJB</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>

    I don’t understand why the xdoclet wizard set the remote and ejb-class to the same value…..Anybody know what is going on and what I could be missing on the xdoclet configuration????

    I’ve tried this numerous times with no success…

    J.D.

    #197134 Reply

    jcorbin
    Member

    I guess I will answer my own question since nobody else will 🙂

    I changed the name of my implementation class from PetEJB to PetEJBSession and reran the xdoclet configuration wizard and it created the remote and home interfaces correctly.

    I was simply unlucky when I generated the EJB through the wizard, I just happened to name the implementation class the same as the name the wizard generated for the remote interface.

    This is a bug or at the very least an useability issue….

    J.D.

    #197148 Reply

    Scott Anderson
    Participant

    JD,

    I guess I will answer my own question since nobody else will 🙂

    Even our support staff has to get a few hours of sleep every now and then. 😉

    Glad you found the solution to the problem you were experiencing. I’ve entered the usability issue into our internal tracking system for futher research into what we can do to mitigate it.

    Thanks for hanging in there and figuring it out for everyone else.

    –Scott
    MyEclipse Support

    #210994 Reply

    deshkesh
    Member

    I ran into the exact same issue and tried the solution mentioned in the thread. It did not work for me.

    Please advise.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: EJB Doclet Generation [Closed]

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