2 Replies Latest reply on Feb 8, 2006 12:34 PM by zoolai

    EJB web service development in JBoss-IDE 1.5 via xdoclet?

    chuck.fowler

      Hi,

      I have been trying to build a EJB-based web service using JBoss-IDE 1.5 that I want to deploy to JBoss 4.03 SP1. Unfortunately, I am having trouble adding the needed XDoclet tags. Specifically, I can't add the ejbdoclet nested element "service-endpoint" via the XDoclet configurations dialog (I think I need this to generation the service-endpoint-class element in the ejb-jar.xml file). I believe JBoss-IDE is using the latest version of XDoclet (1.2.3, I believe). I am trying to adapt the JBoss IDE tutorial where one builds a Fibonacci sequence generation EJB to expose it as an EJB.

      Thanks for your help!

      Chuck Fowler

        • 1. Re: EJB web service development in JBoss-IDE 1.5 via xdoclet
          zoolai

          Have you tried implementing a *merge point* in ant ? Perhaps you can circumvent the problem by forcing ant to insert the correct nested xml nodes for you :

          e.g. in your build.xml file define a merge point :

          :
          :

          :
          :

          then in the merge directory, define a "session-beans.xml" merge file:


          <![CDATA[descriptor for ... ]]>

          <ejb-name>myEJBcomponent</ejb-name>
          <service-endpoint>
          com.xyz.DeviceControllerInterface
          </service-endpoint>
          <ejb-class>
          com.xyz.DeviceControllerJSEBean
          </ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Container</transaction-type>



          Hope this helps.

          • 2. Re: EJB web service development in JBoss-IDE 1.5 via xdoclet
            zoolai

            sorry, the merge point code was left blank in translation. should have read:

            :
            :
            < ejbdoclet destDir="${generate.dir}" ejbspec="2.1" mergedir="mergepnt/ejb">
            :
            :