facebook

xdoclet Session EJB project not merging assembly descriptor

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #225093 Reply

    Hi,

    I am using MyEclipseIDE 3.8.4 and Eclipse 3.0.1 on Windows XP.. I created a basic EJB and EAR project using MyEclipse and was able to deploy and run on weblogic 8.1.3 just fine… I had manually added the assembly descriptor info to the ejb-jar.xml file.. Later i decided to use a merge directory.. So a created a merge folder of project root and placed an assembly-descriptor.xml file there. I went tothe xdoclet ejbdoclet->deployment descriptor tag and set the mergeDir property to point to my “merge” dir… Running xdoclet has no effect on the ejb-jar.xml and my assembly-descriptor snippet is not merged….. Is this a bug.. or have a missed something.

    =====assembly-descriptor.xml contents ===============
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>Hello</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>NotSupported</trans-attribute>
    </container-transaction>
    </assembly-descriptor>

    ===========================
    Thanks for you help.

    Ken

    #225095 Reply

    Greg
    Member

    Just by setting the merge attribute, I don’t believe the ejb-jar.xml file will be recreated. Try deleting all of your deployment descriptors and re-running xdoclet to see if they will be generated.

    #225108 Reply

    Thank you sooooo much.. deleting the descriptors caused a proper regen with my includes.

    BTW.. the util class that gets generated uses [COMP_NAME=”java:comp/env/ejb/Hello”] as for the JNDI lookup. For weblogic, its seems that I need to use the other declared JNDI var [JNDI_NAME=”ejb/Hello”]. How do I control the generation so it uses this variable by default. Otherwise, I keep having to change it when I regen with xdoclet.. Or is there a better approach to this?

    Thank you for you kind support.

    return (com.ns.interfaces.HelloHome) lookupHome(environment, com.ns.interfaces.HelloHome.COMP_NAME, com.ns.interfaces.HelloHome.class);

    #225291 Reply

    Greg
    Member

    The COMP_NAME is generated by the xdoclet ejb module and isn’t configurable that I know of. There is an open PR over at the xdoclet project about the COMP_NAME issue.
    http://opensource.atlassian.com/projects/xdoclet/browse/XDT-627
    Once it gets resolved you can update your bundled xdoclet modules that come with MyEclipse or you can want for the next release that will incoporate the new modules.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: xdoclet Session EJB project not merging assembly descriptor

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