facebook

XDoclet can’t generate Local interfaces for EJB [Closed]

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

    smutatkar
    Member

    I choose Standard EJB template for my EJB Project and choose to generate home, remote, local and local home interfaces. When I run MyEclipse->Run Xdoclet, only remote and home interfaces are generated for the EJB. The local and local home classes are not generated at all. Am I missing something?
    -suhas

    #200066 Reply

    support-michael
    Keymaster

    Make sure that on your bean you have ‘view-type=”both”‘ instead of “remote” – I think “remote” is the default value of the EJB creation wizard. Following is an example from a test project that I use that generates both remote and local interfaces and homes.

    
     * @ejb.bean name = "Trader"
     *           type = "Stateless"
     *           display-name = "Trader"
     *           description = "Trader EJB"
     *           view-type = "both"

    Let us know if this works.

    Michael
    MyEclipse Support

    #200172 Reply

    smutatkar
    Member

    Thanks Michael. That worked. But will I have to manually make this change everytime I generate an EJB using the wizard? I looked at MyEclipse preferences Xdoclet template and the only choices available for “view-type” are “remote” and “local” but not “both”. Can I modify the template somehow so that I get a third choice as well?

    #200177 Reply

    Scott Anderson
    Participant

    There is no way to modify the template from within MyEclipse. However you may modify the template file externally with a text editor. It’s located under the MyEclipse installation in the ‘wizards’ plugin.

    –Scott
    MyEclipse Support

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: XDoclet can’t generate Local interfaces for EJB [Closed]

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