Problem with ejb-jar.xml generation using xdoclet
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, March 14, 2006 09:39 AM

Hi All, I'm just start to use XDoclet. I am getting problems while generating ejb-jar.xml using xdoclet. It produces ejb-jar.xml ,which is overwriting transactions information( ) in ejb-jar.xml I am using "mergedir" attribute in deployment descriptor. mergedir contains the assembly-descriptor.xml and ejb-security-roles.xml. These file contents are overwriting on transactions information( ) in ejb-jar.xml I work with xdoclet-1.2.3, apache-ant-1.6.1 assembly-descriptor.xml ----------------------- <![CDATA[description not supported ye   More>>


Hi All,

I'm just start to use XDoclet. I am getting problems while generating ejb-jar.xml using xdoclet.



It produces ejb-jar.xml ,which is overwriting transactions
information( ) in ejb-jar.xml



I am using "mergedir" attribute in deployment descriptor.


mergedir contains the assembly-descriptor.xml and ejb-security-roles.xml.


These file contents are overwriting on transactions
information( ) in ejb-jar.xml


I work with xdoclet-1.2.3, apache-ant-1.6.1



			

assembly-descriptor.xml
-----------------------


<![CDATA[description not supported yet byejbdoclet]]>
ABC.ABCdev
ABC.admin
ABC.ABCuser


<![CDATA[description not supported yet byejbdoclet]]>
SampleBean
*





ejb-security-roles.xml
----------------------


<![CDATA[description not supported yet byejbdoclet]]>
ABC.admin



<![CDATA[description not supported yet byejbdoclet]]>
ABC.ABCdev



<![CDATA[description not supported yet byejbdoclet]]>
ABC.ABCuser



The head of my ejb is :
------------------------------------------------
package com.example;

import javax.ejb.SessionBean;

/**
*
* @ejb:bean
* type="Stateless"
* name="SampleBean"
* jndi-name="SampleBean"
* local-jndi-name="com.example.SampleLocal"
* view-type="local"
* transaction-type="Container"
*
* @ejb:interface
* local-class="com.example.SampleLocal"
*
* @ejb:home
* local-class="com.example.SampleHome"
*
* @ejb:transaction
* type="Required"
*
* @ejb.security-role-ref
* role-name="ABC.admin"
* role-link="ABC.admin"
*
* @ejb.security-role-ref
* role-name="ABC.ABCdev"
* role-link="ABC.ABCdev"
*
* @ejb.security-role-ref
* role-name="ABC.ABCuser"
* role-link="ABC.ABCuser"
*/

public class SampleBean implements SessionBean { ..................

-------------------------------

a part of my ant file is :

----------------------------






classpathref="ejbdoclet.classpath"/>


excludedtags="@version,@author"
ejbspec="2.0"
ejbClassNameSuffix="Bean,EJB,ejb">































-->









   <<Less
About | Sitemap | Contact