Hi,

Is there any way I can merge xml snippets on an existing EJB deployment 
descriptor using
Xdoclet? For example, if I have something like the following already generated:

<session id="Session_AddressBookEJB">
         <description></description>
         <ejb-name>AddressBookEJB</ejb-name>
         <home>testejb.AddressBookEJBHome</home>
         <remote>estejb.AddressBookEJB</remote>
         <ejb-class>testejb.AddressBookEJB</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>
</session>

I want to add the service-ref element to this session bean. e.g.
<service-ref>
        <description>WSDL Service orbeonService</description>
        <service-ref-name>service/Service</service-ref-name>
        <service-interface>javax.xml.rpc.Service</service-interface>
        <wsdl-file>META-INF/wsdl/xml2url.wsdl</wsdl-file>
        <jaxrpc-mapping-file>META-INF/xml2url_mapping.xml</jaxrpc-mapping-file>
        <service-qname xmlns:pfx="http://sss/";>pfx:orbeonService</service-qname>
        <port-component-ref>            
<service-endpoint-interface>com.orbeon.www.OrbeonPortType</service-endpoint-interface>
        </port-component-ref>
</service-ref>

I need to add  this because of current bugs in XDoclet 1.2.3 that does not 
allow adding
elements such as handler or port-component-ref. So, I am generating this 
separately using
the appserver platform tools and want to add this.

The merge feature seems to be geared towards adding self-contained complete
session/entity beans but not snippets that can be merged with pre-existing bean
descriptors.

Any ideas how this can be done using XDoclet? Or do I need to programmatically 
open the
ejb-jar.xml and merge the reqauired content?

Thanks for any help.

Shantanu Sen


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to