facebook

converting session bean jboss web service [Enhancement]

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

    harshi2003
    Member

    hello

    i want to deploy a session bean as jboss web setvice.
    i am new to j2ee.
    i have gone through the demo u have provied to generate web service in web logic. i dont knw the contents of build xml in jboss.
    please help me.
    in my application i have created all ejb’s using xdoclet.
    i get to knw a session bean can be convert to jboss web service using jbossnet tag.
    but in standard ejb doc let i cannot add that doclet since it is not available.
    then i downloaded xdoclet-module-jboss-net and copied to
    C:\Program Files\MyEclipse\eclipse\plugins\com.genuitec.jboss.ide.eclipse.xdoclet.core_2.7.0.

    then i refresh xdoclet modules. but still i couldn’t find that jbossnet.

    how can i configure these doclet tags to xsisting xdoclet.

    so i include following entry to <jbossnet webDeploymentName=”pmonitorService” prefix=”pmonitor” destdir=”src/META-INF” targetNameSpace=”http://localhost/pmonitorService&#8221; /> xdoclet bulid xml file.
    web service xml is generated.

    how shall i generate a wsr file with web service xml in META-INF
    using myeclips.

    although it deployes without errors the web service is not working.

    have i done an error.

    please help me.

    thanks in advance

    #208456 Reply

    Riyad Kalla
    Member

    Harshi,
    I will ask our XDoclet guru to look at this.

    #208514 Reply

    harshi2003
    Member

    Thank you very much. Plesae do that as soon as possible.

    #208568 Reply

    Greg
    Member

    Harshi,

    Adding the jboss-net module and refreshing both the xdoclet modules and xdoclet data will get the codeassist to work in MyEclipse. However, to get support for it in the XDoclet configuration menus, you will have to manually add support for it.

    If you open up the xdoclet-module-jboss-net jar file you will see a file called xdoclet.xml

    
    <?xml version="1.0" encoding="UTF-8"?>
    
    <!--
    <!DOCTYPE xdoclet-module PUBLIC "-//XDoclet Team//DTD XDoclet Module 1.0//EN" "http://xdoclet.sourceforge.net/dtd/xdoclet-module_1_0.dtd">
    -->
    
    <xdoclet-module>
    
        <!--
        xdoclet.modules.jboss.net.JBossNetEJBSubTask
        -->
    
        <subtask
            name="jbossnet"
            implementation-class="xdoclet.modules.jboss.net.JBossNetEJBSubTask"
            parent-task-class="xdoclet.modules.ejb.EjbDocletTask"
        />
        
        <!--
        xdoclet.modules.jboss.net.JBossNetJMXSubTask
        -->
    
        <subtask
            name="jbossnet"
            implementation-class="xdoclet.modules.jboss.net.JBossNetJMXSubTask"
            parent-task-class="xdoclet.modules.jmx.JMXDocletTask"
        />
    
    </xdoclet-module>
    

    To plugin support for these two new subdoclet tasks you must modify the following file:

    
    <MYECLIPSE_INSTALL_DIR>/eclipse/plugins/com.genuitec.jboss.ide.eclipse.xdoclet.run_X.X.X/resources/reference.xml
    

    If you look at the xdoclet.xml file you will see it is defining a new subdoclet “jbossnet” twice. Once for the ejbdoclet and one for the jmxdoclet. Since you are working with session beans you can just add support for the ejbdoclet.

    In the reference.xml file you will see the “ejbdoclet” defined at the very top of the file. Under this task you will see tags defining <element name=”apachesoap”… and so on. Your job will be to create a new <element name=”jbossnet”… that has all of the options and attributes that are valid for the jboss-net module. Once you have this in place, refresh all xdoclet modules and data and restart eclipse. Then if you right-click on a “ejbdoclet” and click “add” you should see a jbossnet subdoclet task. If you get the attributes correct you should be good to go.

    As far as getting the webservices working correctly under jboss, you would have better luck getting assistance directly from the jboss folks on their forums at jboss.org.

    #208595 Reply

    harshi2003
    Member

    Greg,

    Thank you so much for your reply. I will try that and let you know the results.

    Thanks again.

    Harshi 😀

    #208610 Reply

    Greg
    Member

    If you get this to work and would like to contribute your work back to MyEclipse, we will add it in our next release and give you appropriate credit in the ME release notes. Thanks for your feedback.

    #208895 Reply

    harshi2003
    Member

    hello,

    as you said i have included
    <element name=”jbossnet ” displayName=”jboss-net” used=”true”>
    <attribute name=”webDeploymentName” used=”false”/>
    <attribute name=”prefix” used=”false”/>
    <attribute name=”destdir” used=”false”/>
    <attribute name=”targetNameSpace” used=”false”/>
    </element>
    in the reference file.
    then i refresh xdoclet modules and restart eclipse.

    after that i can include jbossnet as a ejbdoclet.
    that works ok.
    then i check in the xdocletbuild.xml it appears there also.
    but the problem is when i run the xdoclet nothing happens.
    the xdoclet build doesn’t happen. blank console appears.

    when remove jbossnet doclet from satndard ejbdoclet the xdoclet build works.

    could you pleae tell me why is that.

    how can create a spearte wsr file in myeclipse. because if i include <jbossnet webDeploymentName=”pmonitorService” prefix=”pmonitor” destdir=”src/META-INF” targetNameSpace=”http://localhost/pmonitorService&#8221; />
    in xdoclet build manually then webservice xml is generated src/META-INF .
    where other deployment descriptors exists.
    therefore the application doesnot deploy/

    but what want is i want to create a seperate wsr file with src/META-INF contains the webserrvice.xml.
    how can i do that.

    in myeclipse how can i add separte module to ear file.
    only if permits to add ejb module and web module to jar file. i need to add wsr file with above META-INF to the same ear file.
    is that possible in myecipse.

    because if do that manualy and change the application.xml file manually to include wsr file, then the web service works.

    please help me

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: converting session bean jboss web service [Enhancement]

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