geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Selvaraj, Saraswathi \(Cognizant\)" <Saraswathi.Selva...@cognizant.com>
Subject RE: Java Adventure Builder Reference 1.0.1 webapp deployed
Date Fri, 18 Nov 2005 05:29:32 GMT



Hi Jacek,

     I and Mr.Arun Venugopal have deployed "adventure builder" on
Geronimo.

The plans that we have included here are :

(1)     activitysupplier-plan

(2)     airlinesupplier-plan

(3)     bank-plan

(4)     lodgingsupplier-plan

(5)     opc-plan

(6)     processmanager-plan



The following are the changes that we made to the EJB's :

(1) Changed the ActivityDetailsBean in the activitysupplier module to
include the getter & setter methods for the auotmatic key generation of
unknown primary key field,

     because the concept of unknown primay key requires a CMP field
mapping in Geronimo.

(2) Similarly changes were also made to the AddressBean,
ContactInfoBean, LodgingBean, CreditcardBean, TransportationBean,
ActivityBean in the opc module due to above      mentioned reason.





EAR Plans:



(1)   activitysupplier-plan.xml

<?xml version="1.0" encoding="UTF-8"?>



<openejb-jar  configId=""

  xmlns="http://www.openejb.org/xml/ns/openejb-jar"

  xmlns:naming="http://geronimo.apache.org/xml/ns/naming"

  xmlns:sys="http://geronimo.apache.org/xml/ns/deployment">

 

            <cmp-connection-factory>

                        <name>MysqlDataSource</name>

            </cmp-connection-factory>



  <enterprise-beans>

    <entity>

      <ejb-name>ActivityPurchaseOrderBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.activitysupplier.purchaseorder.ejb.Ac
tivityPurchaseOrderLocalHome</jndi-name>

      <table-name>ActivityPurchaseOrder</table-name>

      <cmp-field-mapping>

        <cmp-field-name>poId</cmp-field-name>

        <table-column>poId</table-column>

      </cmp-field-mapping>

       <ejb-local-ref>

        <ref-name>ejb/local/activitysupplier/ActivityDetails</ref-name>


        <name>ActivityDetailsBean</name>

      </ejb-local-ref>                 

             <resource-ref>


<ref-name>jdbc/adventure/AdventureDB</ref-name>

                          <resource-link>MysqlDataSource</resource-link>


             </resource-ref>

    </entity>



    <entity>

      <ejb-name>ActivityDetailsBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.activitysupplier.purchaseorder.ejb.Ac
tivityDetailsLocalHome</jndi-name>

      <table-name>ActivityDetails</table-name>

      <cmp-field-mapping>

        <cmp-field-name>activityId</cmp-field-name>

        <table-column>activityId</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>startDate</cmp-field-name>

        <table-column>startDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>endDate</cmp-field-name>

        <table-column>endDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>headCount</cmp-field-name>

        <table-column>headCount</table-column>

      </cmp-field-mapping>                   

           

            <cmp-field-mapping>


<cmp-field-name>activityDetailsBean_upk</cmp-field-name>


<cmp-field-class>java.lang.Integer</cmp-field-class>


<table-column>ActivityDetailsBean_upk</table-column>

                        <sql-type>VARCHAR</sql-type>

            </cmp-field-mapping>



        <primkey-field>activityDetailsBean_upk</primkey-field> 



            <key-generator>

                        <auto-increment-table>

                                <sql>INSERT INTO
ActivityDetails(activityId,startDate,price,endDate,headCount,ActivityPur
chaseOrderBean_activities) VALUES(null,null,null,null,null,null)</sql>

                        <return-type>java.lang.Integer</return-type>

                        </auto-increment-table>

            </key-generator>        



             <resource-ref>


<ref-name>jdbc/adventure/AdventureDB</ref-name>

                          <resource-link>MysqlDataSource</resource-link>


             </resource-ref>

    </entity>



    <session>

      <ejb-name>ActivityPOEndpointBean</ejb-name>

      <jndi-name>ActivityPOEndpointBean</jndi-name>

      <resource-ref>      

        <ref-name>jms/activity/QueueConnectionFactory</ref-name>

        <name>JmsXA</name>  

      </resource-ref>

    </session>



    <message-driven>

      <ejb-name>ActivityMessageEJB</ejb-name>

            <resource-adapter>

            <resource-link>ActiveMQ Activity</resource-link>

        </resource-adapter>            

    </message-driven>  

           

  </enterprise-beans>





</openejb-jar>



(2)   airlinesupplier-plan.xml

<?xml version="1.0" encoding="UTF-8"?>

<openejb-jar configId=""

  xmlns="http://www.openejb.org/xml/ns/openejb-jar"

  xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment">

 

<cmp-connection-factory>

            <name>MysqlDataSource</name>

</cmp-connection-factory>

  <enterprise-beans>

    <entity>

      <ejb-name>AirlineOrderBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.airlinesupplier.purchaseorder.ejb.Air
lineOrderLocalHome</jndi-name>

      <table-name>AirlineOrder</table-name>

      <cmp-field-mapping>

        <cmp-field-name>orderId</cmp-field-name>

        <table-column>orderId</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>depFlightId</cmp-field-name>

        <table-column>depFlightId</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>depFlightDate</cmp-field-name>

        <table-column>depFlightDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>retFlightId</cmp-field-name>

        <table-column>retFlightId</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>retFlightDate</cmp-field-name>

        <table-column>retFlightDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>headCount</cmp-field-name>

        <table-column>headCount</table-column>

      </cmp-field-mapping>



             <resource-ref>


<ref-name>jdbc/adventure/AdventureDB</ref-name>

                          <resource-link>MysqlDataSource</resource-link>


             </resource-ref>

    </entity>

    <session>

      <ejb-name>AirlinePOEndpointBean</ejb-name>

      <jndi-name>AirlinePOEndpointBean</jndi-name>

      <resource-ref>

        <ref-name>jms/airline/QueueConnectionFactory</ref-name>

        <name>JmsXA</name>

      </resource-ref>

    </session>

    <message-driven>

      <ejb-name>AirlineMessageEJB</ejb-name>

            <resource-adapter>

                        <resource-link>ActiveMQ Airline</resource-link>

            </resource-adapter>

    </message-driven>

  </enterprise-beans>

</openejb-jar>



(3)   bank-plan.xml

<?xml version="1.0" encoding="UTF-8"?>

<openejb-jar configId=""

  xmlns="http://www.openejb.org/xml/ns/openejb-jar"

  xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment">



 <enterprise-beans>

    <session>

      <ejb-name>CreditCardEndpointBean</ejb-name>

      <jndi-name>CreditCardEndpointBean</jndi-name>

    </session>

  </enterprise-beans>



</openejb-jar>



(4)   lodingsupplier-plan.xml

<?xml version="1.0" encoding="UTF-8"?>

<openejb-jar configId=""

  xmlns="http://www.openejb.org/xml/ns/openejb-jar"

  xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment">

 

<cmp-connection-factory>

            <name>MysqlDataSource</name>

</cmp-connection-factory>



  <enterprise-beans>

    <entity>

      <ejb-name>LodgingOrderBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.lodgingsupplier.purchaseorder.ejb.Lod
gingOrderLocalHome</jndi-name>

      <table-name>LodgingOrder</table-name>

      <cmp-field-mapping>

        <cmp-field-name>orderId</cmp-field-name>

        <table-column>orderId</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>lodgingId</cmp-field-name>

        <table-column>lodgingId</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>startDate</cmp-field-name>

        <table-column>startDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>endDate</cmp-field-name>

        <table-column>endDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>headCount</cmp-field-name>

        <table-column>headCount</table-column>

      </cmp-field-mapping>

    </entity>

    <session>

      <ejb-name>LodgingPOEndpointBean</ejb-name>

      <jndi-name>LodgingPOEndpointBean</jndi-name>

      <resource-ref>

        <ref-name>jms/lodging/QueueConnectionFactory</ref-name>

        <name>JmsXA</name>

      </resource-ref>

    </session>

    <message-driven>

      <ejb-name>LodgingMessageEJB</ejb-name>

            <resource-adapter>

            <resource-link>ActiveMQ Lodging</resource-link>

        </resource-adapter>  

    </message-driven>

  </enterprise-beans>

</openejb-jar>



(5)   opc-plan.xml

<?xml version="1.0" encoding="UTF-8"?>

<openejb-jar configId=""

  xmlns="http://www.openejb.org/xml/ns/openejb-jar"

  xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment">

 

<cmp-connection-factory>

            <name>MysqlDataSource</name>

</cmp-connection-factory>

  <enterprise-beans>

    <entity>

      <ejb-name>PurchaseOrderBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.opc.purchaseorder.ejb.PurchaseOrderLo
calHome</jndi-name>

      <table-name>PurchaseOrder</table-name>

      <cmp-field-mapping>

        <cmp-field-name>locale</cmp-field-name>

        <table-column>locale</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>totalPrice</cmp-field-name>

        <table-column>totalPrice</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>startDate</cmp-field-name>

        <table-column>startDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>userId</cmp-field-name>

        <table-column>userId</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>departureCity</cmp-field-name>

        <table-column>departureCity</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>endDate</cmp-field-name>

        <table-column>endDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>orderDate</cmp-field-name>

        <table-column>orderDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>headCount</cmp-field-name>

        <table-column>headCount</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>poId</cmp-field-name>

        <table-column>poId</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>emailId</cmp-field-name>

        <table-column>emailId</table-column>

      </cmp-field-mapping>

      <ejb-local-ref>

        <ref-name>ejb/local/CreditCard</ref-name>

        <name>CreditCardBean</name>

      </ejb-local-ref>

      <ejb-local-ref>

        <ref-name>ejb/local/ContactInfo</ref-name>

        <name>ContactInfoBean</name>

      </ejb-local-ref>

      <ejb-local-ref>

        <ref-name>ejb/local/Activity</ref-name>

        <name>ActivityBean</name>

      </ejb-local-ref>

      <ejb-local-ref>

        <ref-name>ejb/local/Lodging</ref-name>

        <name>LodgingBean</name>

      </ejb-local-ref>

      <ejb-local-ref>

        <ref-name>ejb/local/Transportation</ref-name>

        <name>TransportationBean</name>

      </ejb-local-ref>



             <resource-ref>


<ref-name>jdbc/adventure/AdventureDB</ref-name>

                          <resource-link>MysqlDataSource</resource-link>


             </resource-ref>

    </entity>

    <entity>

      <ejb-name>CreditCardBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.opc.purchaseorder.ejb.CreditCardLocal
Home</jndi-name>

      <table-name>CreditCard</table-name>

      <cmp-field-mapping>

        <cmp-field-name>cardNumber</cmp-field-name>

        <table-column>cardNumber</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>cardType</cmp-field-name>

        <table-column>cardType</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>cardExpiryDate</cmp-field-name>

        <table-column>cardExpiryDate</table-column>

      </cmp-field-mapping>



            <cmp-field-mapping>


<cmp-field-name>creditCardBean_upk</cmp-field-name>


<cmp-field-class>java.lang.Integer</cmp-field-class>

                        <table-column>CreditCardBean_upk</table-column>

                        <sql-type>VARCHAR</sql-type>

            </cmp-field-mapping>



        <primkey-field>creditCardBean_upk</primkey-field>     



            <key-generator>

                        <auto-increment-table>

                                <sql>INSERT INTO
CreditCard(cardNumber,cardType,cardExpiryDate)
VALUES(null,null,null)</sql>

                        <return-type>java.lang.Integer</return-type>

                        </auto-increment-table>

            </key-generator>



             <resource-ref>


<ref-name>jdbc/adventure/AdventureDB</ref-name>

                          <resource-link>MysqlDataSource</resource-link>


             </resource-ref>

    </entity>

    <entity>

      <ejb-name>ActivityBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.opc.purchaseorder.ejb.ActivityLocalHo
me</jndi-name>

      <table-name>Activity_Bean</table-name>

      <cmp-field-mapping>

        <cmp-field-name>activityId</cmp-field-name>

        <table-column>activityId</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>startDate</cmp-field-name>

        <table-column>startDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>price</cmp-field-name>

        <table-column>price</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>endDate</cmp-field-name>

        <table-column>endDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>headCount</cmp-field-name>

        <table-column>headCount</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>location</cmp-field-name>

        <table-column>location</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>name</cmp-field-name>

        <table-column>name</table-column>

      </cmp-field-mapping>



            <cmp-field-mapping>


<cmp-field-name>activityBean_upk</cmp-field-name>


<cmp-field-class>java.lang.Integer</cmp-field-class>

                        <table-column>ActivityBean_upk</table-column>

                        <sql-type>VARCHAR</sql-type>

            </cmp-field-mapping>



        <primkey-field>activityBean_upk</primkey-field>           



            <key-generator>

                        <auto-increment-table>

                                <sql>INSERT INTO
Activity_Bean(activityId,startDate,price,endDate,headCount,location,name
,PurchaseOrderBean_activities)
VALUES(null,null,null,null,null,null)</sql>

                        <return-type>java.lang.Integer</return-type>

                        </auto-increment-table>

            </key-generator>



             <resource-ref>


<ref-name>jdbc/adventure/AdventureDB</ref-name>

                          <resource-link>MysqlDataSource</resource-link>


             </resource-ref>

    </entity>

    <entity>

      <ejb-name>TransportationBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.opc.purchaseorder.ejb.TransportationL
ocalHome</jndi-name>

      <table-name>Transportation_Bean</table-name>

      <cmp-field-mapping>

        <cmp-field-name>transportationId</cmp-field-name>

        <table-column>transportationId</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>departureDate</cmp-field-name>

        <table-column>departureDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>destination</cmp-field-name>

        <table-column>destination</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>travelClass</cmp-field-name>

        <table-column>travelClass</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>price</cmp-field-name>

        <table-column>price</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>carrier</cmp-field-name>

        <table-column>carrier</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>origin</cmp-field-name>

        <table-column>origin</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>departureTime</cmp-field-name>

        <table-column>departureTime</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>headCount</cmp-field-name>

        <table-column>headCount</table-column>

      </cmp-field-mapping>





            <cmp-field-mapping>


<cmp-field-name>transportationBean_upk</cmp-field-name>


<cmp-field-class>java.lang.Integer</cmp-field-class>


<table-column>TransportationBean_upk</table-column>

                        <sql-type>VARCHAR</sql-type>

            </cmp-field-mapping>



        <primkey-field>transportationBean_upk</primkey-field> 



            <key-generator>

                        <auto-increment-table>

                                <sql>INSERT INTO
Transportation_Bean(transportationId,departureDate,destination,travelCla
ss,price,carrier,origin,departureTime,headCount)
VALUES(null,null,null,null,null,null,null,null,null)</sql>

                        <return-type>java.lang.Integer</return-type>

                        </auto-increment-table>

            </key-generator>



             <resource-ref>


<ref-name>jdbc/adventure/AdventureDB</ref-name>

                          <resource-link>MysqlDataSource</resource-link>


             </resource-ref>



    </entity>

    <entity>

      <ejb-name>ContactInfoBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.opc.purchaseorder.ejb.ContactInfoLoca
lHome</jndi-name>

      <table-name>ContactInfo</table-name>

      <cmp-field-mapping>

        <cmp-field-name>phone</cmp-field-name>

        <table-column>phone</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>email</cmp-field-name>

        <table-column>email</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>givenName</cmp-field-name>

        <table-column>givenName</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>familyName</cmp-field-name>

        <table-column>familyName</table-column>

      </cmp-field-mapping>

           



            <cmp-field-mapping>


<cmp-field-name>contactInfoBean_upk</cmp-field-name>


<cmp-field-class>java.lang.Integer</cmp-field-class>

                        <table-column>ContactInfoBean_upk</table-column>

                        <sql-type>VARCHAR</sql-type>

            </cmp-field-mapping>



        <primkey-field>contactInfoBean_upk</primkey-field>     



            <key-generator>

                        <auto-increment-table>

                                <sql>INSERT INTO
ContactInfo(phone,email,givenName,familyName)
VALUES(null,null,null,null)</sql>

                        <return-type>java.lang.Integer</return-type>

                        </auto-increment-table>

            </key-generator>

           

      <ejb-local-ref>

        <ref-name>ejb/local/Address</ref-name>

        <name>AddressBean</name>

      </ejb-local-ref>





             <resource-ref>


<ref-name>jdbc/adventure/AdventureDB</ref-name>

                          <resource-link>MysqlDataSource</resource-link>


             </resource-ref>

    </entity>

    <entity>

      <ejb-name>AddressBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.opc.purchaseorder.ejb.AddressLocalHom
e</jndi-name>

      <table-name>Address</table-name>

      <cmp-field-mapping>

        <cmp-field-name>streetName1</cmp-field-name>

        <table-column>streetName1</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>streetName2</cmp-field-name>

        <table-column>streetName2</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>city</cmp-field-name>

        <table-column>city</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>state</cmp-field-name>

        <table-column>state</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>postalCode</cmp-field-name>

        <table-column>postalCode</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>country</cmp-field-name>

        <table-column>country</table-column>

      </cmp-field-mapping>





            <cmp-field-mapping>

                        <cmp-field-name>addressBean_upk</cmp-field-name>


<cmp-field-class>java.lang.Integer</cmp-field-class>

                        <table-column>AddressBean_upk</table-column>

                        <sql-type>VARCHAR</sql-type>

            </cmp-field-mapping>



        <primkey-field>addressBean_upk</primkey-field>          



            <key-generator>

                        <auto-increment-table>

                                <sql>INSERT INTO
Address(streetName1,streetName2,city,state,postalCode,country)
VALUES(null,null,null,null,null,null)</sql>

                        <return-type>java.lang.Integer</return-type>

                        </auto-increment-table>

            </key-generator>        



             <resource-ref>


<ref-name>jdbc/adventure/AdventureDB</ref-name>

                          <resource-link>MysqlDataSource</resource-link>


             </resource-ref>

    </entity>

    <entity>

      <ejb-name>LodgingBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.opc.purchaseorder.ejb.LodgingLocalHom
e</jndi-name>

      <table-name>Lodging_Bean</table-name>

      <cmp-field-mapping>

        <cmp-field-name>startDate</cmp-field-name>

        <table-column>startDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>lodgingId</cmp-field-name>

        <table-column>lodgingId</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>noNights</cmp-field-name>

        <table-column>noNights</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>endDate</cmp-field-name>

        <table-column>endDate</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>location</cmp-field-name>

        <table-column>location</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>noRooms</cmp-field-name>

        <table-column>noRooms</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>name</cmp-field-name>

        <table-column>name</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>pricePerNight</cmp-field-name>

        <table-column>pricePerNight</table-column>

      </cmp-field-mapping>



            <cmp-field-mapping>

                        <cmp-field-name>lodgingBean_upk</cmp-field-name>


<cmp-field-class>java.lang.Integer</cmp-field-class>

                        <table-column>LodgingBean_upk</table-column>

                        <sql-type>VARCHAR</sql-type>

            </cmp-field-mapping>



        <primkey-field>lodgingBean_upk</primkey-field>           



            <key-generator>

                        <auto-increment-table>

                                <sql>INSERT INTO
Lodging_Bean(startDate,lodging_Id,noNights,endDate,location,noRooms,name
,pricePerNight) VALUES(null,null,null,null,null,null,null,null)</sql>

                        <return-type>java.lang.Integer</return-type>

                        </auto-increment-table>

            </key-generator>



             <resource-ref>


<ref-name>jdbc/adventure/AdventureDB</ref-name>

                          <resource-link>MysqlDataSource</resource-link>


             </resource-ref>

    </entity>

    <session>

      <ejb-name>PoEndpointBean</ejb-name>

      <jndi-name>PoEndpointBean</jndi-name>

      <resource-ref>

        <ref-name>jms/opc/QueueConnectionFactory</ref-name>

        <name>JmsXA</name>

      </resource-ref>

    </session>

    <session>

      <ejb-name>BrokerServiceBean</ejb-name>

      <jndi-name>BrokerServiceBean</jndi-name>

      <resource-ref>

        <ref-name>jms/opc/QueueConnectionFactory</ref-name>

        <name>JmsXA</name>

      </resource-ref>

    </session>

    <session>

      <ejb-name>OtEndpointBean</ejb-name>

      <jndi-name>OtEndpointBean</jndi-name>

      <ejb-local-ref>

        <ref-name>ejb/local/processmanager/ProcessManager</ref-name>

        <name>ProcessManagerBean</name>

      </ejb-local-ref>

      <ejb-local-ref>

        <ref-name>ejb/local/purchaseorder/PurchaseOrder</ref-name>

        <name>PurchaseOrderBean</name>

      </ejb-local-ref>

    </session>

    <message-driven>

      <ejb-name>WorkFlowManagerBean</ejb-name>

      <resource-adapter>

              <resource-link>ActiveMQ OPC</resource-link>

      </resource-adapter>          

            <resource-ref>

        <ref-name>jms/opc/QueueConnectionFactory</ref-name>

        <name>JmsXA</name>

      </resource-ref>

    </message-driven>

    <message-driven>

      <ejb-name>OrderFillerBean</ejb-name>    

      <resource-adapter>

              <resource-link>ActiveMQ OPC</resource-link>

      </resource-adapter>                      

            <resource-ref>

        <ref-name>jms/opc/QueueConnectionFactory</ref-name>

        <name>JmsXA</name>

      </resource-ref>

    </message-driven>

    <message-driven>

      <ejb-name>BrokerRequestorBean</ejb-name>    

      <resource-adapter>

              <resource-link>ActiveMQ OPC</resource-link>

      </resource-adapter>          

            <resource-ref>

        <ref-name>jms/opc/QueueConnectionFactory</ref-name>

        <name>JmsXA</name>

      </resource-ref>

    </message-driven>

    <message-driven>

      <ejb-name>CRMBean</ejb-name>

      <resource-adapter>

              <resource-link>ActiveMQ OPC</resource-link>

      </resource-adapter>          

      <resource-ref>

        <ref-name>jms/opc/QueueConnectionFactory</ref-name>

        <name>JmsXA</name>

      </resource-ref>

    </message-driven>

  </enterprise-beans>



</openejb-jar>



(6)   processmanager-plan.xml

<?xml version="1.0" encoding="UTF-8"?>

<openejb-jar configId=""

  xmlns="http://www.openejb.org/xml/ns/openejb-jar"

  xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment">

<cmp-connection-factory>

            <name>MysqlDataSource</name>

</cmp-connection-factory>

  <enterprise-beans>

    <session>

      <ejb-name>ProcessManagerBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.processmanager.ejb.ProcessManagerLoca
lHome</jndi-name>

      <ejb-local-ref>

        <ref-name>ejb/local/processmanager/Manager</ref-name>

        <name>ManagerBean</name>

      </ejb-local-ref>

    </session>

    <entity>

      <ejb-name>ManagerBean</ejb-name>


<jndi-name>com.sun.j2ee.blueprints.processmanager.manager.ejb.ManagerLoc
alHome</jndi-name>

      <table-name>Manager</table-name>

      <cmp-field-mapping>

        <cmp-field-name>lodgingOrderStatus</cmp-field-name>

        <table-column>lodgingOrderStatus</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>orderError</cmp-field-name>

        <table-column>orderError</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>orderId</cmp-field-name>

        <table-column>orderId</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>status</cmp-field-name>

        <table-column>status</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>activityOrderStatus</cmp-field-name>

        <table-column>activityOrderStatus</table-column>

      </cmp-field-mapping>

      <cmp-field-mapping>

        <cmp-field-name>airlineOrderStatus</cmp-field-name>

        <table-column>airlineOrderStatus</table-column>

      </cmp-field-mapping>



             <resource-ref>


<ref-name>jdbc/adventure/AdventureDB</ref-name>

                          <resource-link>MysqlDataSource</resource-link>


             </resource-ref>

    </entity>

  </enterprise-beans>



</openejb-jar>









Thanks & Regards,

S.Saraswathi





This e-mail and any files transmitted with it are for the sole use of the intended recipient(s)
and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy
all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of
this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com
Mime
View raw message