Hi,

SCENARIO :- Session Bean 'A' calling Local interface of Session Bean B

XDoclet Problem :- 

The deployment descriptor for Bean - 'A' not generating "<ejb-local-ref>"
tag in "ejb-jar.xml".

Expected output in the generated ejb-jar.xml :-

    <session >
         <description><![CDATA[Test]]></description>
         <ejb-name>ParcelNumber</ejb-name>
         <home>com.acme.dms.warehouse.ParcelNumberHome</home>
         <remote>com.acme.dms.warehouse.ParcelNumberInterface</remote>
         <ejb-class>com.acme.dms.warehouse.ParcelNumberBean</ejb-class>
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>
        <ejb-local-ref>
                <description><![CDATA[Parcel Number bean accessing
AllocateCarrierCommon bean]]></description>
        
<ejb-ref-name>dms24/AllocateCarrierCommonLocal</ejb-ref-name>
                <ejb-ref-type>Session</ejb-ref-type>
        
<local-home>com.acme.dms.warehouse.common.beans.AllocateCarrierCommonLocalHo
me</local-home>
        
<local>com.acme.dms.warehouse.common.beans.AllocateCarrierCommonLocal</local
>
                <ejb-link>AllocateCarrierCommon</ejb-link>
        </ejb-local-ref>
      </session>

Question -

Why <ejb-local-ref> is not getting generated ?

Which xdoclet/EJB tag can be used 
        or
What is the right mechanism to generate these tag in deployment descriptor?

Rakesh


Bean A
======


/**
 * @ejb.bean
 *     name="ParcelNumber"
 *     type="Stateless"
 *     jndi-name="ParcelNumber"
 *     view-type="remote"
 *     description="Test"
 *
 * @ejb.transaction
 *            type="Required"
 *
 * @ejb.transaction-type
 *     type="Container"
 *
 */
public class ParcelNumberBean implements SessionBean {
 
        /**
         * Do the allocate carrier operation when user clicks on the A106A -
Update Parcel Count screen
         * @return status boolean
         * @param ConsignmentValueObject valueobject
         * 
         * @ejb.interface-method view-type="remote"
         * 
         * Business logic :-
         *      
         *   
         **/
        public boolean allocateCarrierForConsignment(ConsignmentValueObject
cons)
                                        throws ApplicationException,
SystemLevelException {
        

        try {

                AllocateCarrierCommonLocalHome
allocateCarrierCommonLocalHome = (AllocateCarrierCommonLocalHome)
        
JNDIUtils.getInitialContext().lookup(AllocateCarrierCommonLocalHome.COMP_NAM
E);
                AllocateCarrierCommonLocal ACLocal =
allocateCarrierCommonLocalHome.create();
                //need to call the methods here!!
        }catch(Exception e){
                e.printStackTrace();            
        }
        return false;                                                   
        }
}




Bean B,
======
/**
 * TODO 23-Jun-2003, AllocateCarrierCommonBean created as new
 *
 * @ejb.bean
 *    view-type="both"
 *    local-jndi-name="AllocateCarrierServiceLocal"
 *    name="AllocateCarrierCommon"
 *    type="Stateless"
 *    description="DMS 2.4 Warehouse Allocate Carrier Common Bean"
 * @ejb.transaction
 *    type="Required"
 */
public class AllocateCarrierCommonBean extends CommonBaseBean implements
IAllocateCarrier,
    SessionBean {
        
    
        /** (Javadoc)
         *
         * @ejb.interface-method view-type="both"
         */
    public void allocateCarrierForConsignment(ConsignmentValueObject cons)
                                                throws ApplicationException,
SystemLevelException {
                                                
                //some code !!                                         
        }
}












-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to