facebook

XDoclet refresh question

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

    fragBait
    Member

    Hi,

    I recently followed the instructions to update XDoclet to version 1.2.1 by “refresh”ing per the XDoclet help pages. My aim in doing so was to pick up the new ‘openejb’ nested element of the <ejbdoclet> ant task in order to generate OpenEJB deployment descriptor files. After (presumably) performing a successful refresh, ‘openejb’ was still not showing as an option when right-clicking and selecting Add from the ‘ejbdoclet’ Standard EJB XDoclet configuration.

    Am I misunderstanding how the XDoclet refresh is supposed to work? Or is there something I can do to get MyEclipse to recognize this new available option in release 1.2.1 of XDoclet?

    Thanks,
    Erik Dreyer

    #207514

    Riyad Kalla
    Member

    Erik,
    I tried the same thing here and the only way I got it to update from the new JARs was if I erased the older ver ones, but even then I still didn’t have an OpenEJB subtask.

    Then I opened up the xdoclet-ejb jar itself, in the META-INF dir and in the xtags.xml file, and there is no mention of OpenEJB or “open” anywhere in that file. Did you see somewhere that 1.2.1 had this in it?

    NOTE: I’m using the 1.2.1-bin.zip download from the SF > Project > Files page.

    #207517

    fragBait
    Member

    Hey Riyad,

    Thx for the quick response. That’s very interesting because the docs included with that file (I downloaded the same file that you did) indicate that there should be an ‘openejb’ task.

    see <your install dir>/xdoclet-1.2.1/docs/ant/xdoclet/modules/openejb/ejb/OpenEJBSubTask.html OR
    1) http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/ejb/EjbDocletTask.html
    which, if you scroll down, has a link to:
    2) http://xdoclet.sourceforge.net/xdoclet/ant/xdoclet/modules/openejb/ejb/OpenEJBSubTask.html

    Ok, I dug in a bit. In the XDoclet lib directory, there is a jar called ‘xdoclet-openejb-module-1.2.1.jar’, which it is reasonable to assume contains the files needed to produce the open EJB deployment descriptor. I’m not sure if this appears in the 1.2 release of XDoclet, it may be new for 1.2.1. Hopefully, this will help get us going in the right direction. Let me know what you find.

    Thanks,
    Erik

    #207518

    Riyad Kalla
    Member

    there is a jar called ‘xdoclet-openejb-module-1.2.1.jar’, which it is reasonable to assume contains the files needed to produce the open EJB deployment descriptor.

    I don’t suppose I could persuade you that there is no OpenEJB support in XDoclet 1.2.1 NOW 🙂

    Let me look into this a little more, and then pass it off to our XDoclet guy if I don’t find anything.

    #207544

    Greg
    Member

    Erik,

    Unfortunatly there is currently no way to update the MyEclipse-XDoclet configuration menus automatically. The process that you followed does update the underlying XDoclet support for “openEJB” but it doesn’t update the UI as well.

    In order update the UI, take a look at this file:

    $MYECLIPSE_INSTALL_DIR/eclipse/plugins/com.genuitec.jboss.ide.eclipse.xdoclet.run_$MEVERSION/resources/references.xml

    You’ll notice that the very first task that is defined is the “ejbdoclet” task. There are <elements> under this task that correspond to items in under the “Add” subdoclet menu in the Myeclipse Xdoclet UI for ejbdoclet. You’ll notice that there is no “openejb” <element> entry in the “ejbdoclet” task. So you’ll need to add one :).

    Look at an element like <element name=”apachesoap” displayName=”apachesoap” … and a guide and create a new <element name=”openejb”… . You should consult the openejb documentation for how this element should be filled in. You can look at how other elements match up to their documentation to build the correct attributes for openejb. After this is finished, refresh the xdoclet data as you did before and you might have to restart MyEclipse as well.

    We have a PR request for upgrading the xdoclet support to 1.2.1 in MyEclipse. We are going to have to go through the same steps you are to get openejb support. If you would like to contribute your changes back here, we will include your changes to MyEclipse and give you proper acknowledgement and credit for your contributions.

    #207605

    Riyad Kalla
    Member

    Erik,
    Did this answer your question?

    #207623

    fragBait
    Member

    Hey Riyad,

    Yup, that anwers my question. I will attempt to do as he suggests. I’ll try that over the weekend. If I can get it working, I’ll submit it. What’s the best way to do that, by the way?

    Thanks,
    Erik

    #207633

    Riyad Kalla
    Member

    If I can get it working, I’ll submit it.

    Awesome.

    What’s the best way to do that, by the way?

    Ahh, just send your changes to support@genuitec.com with a description of what you did and a reference to this thread so the devs aren’t left scratching their head.

    Thanks again!

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: XDoclet refresh question

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