Sorry,  I am majorly confused.  I don't know why a EJB would be described as
a session bean in a WAR file, and it would be an Entity bean in the EJB
deployment descriptor.  I would appreciate help in understanding this.

Thanks!

In the EJB descriptor file, Inventory bean is described as an entity Bean.

In the WAR descriptor file, Inventory bean is described as a session bean.

I pulled the following excepts from the descriptor file for Duke's pet
store:

In EJB file:
- <entity>
  <description>no description</description>
  <display-name>TheInventory</display-name>
  <ejb-name>TheInventory</ejb-name>
  <home>com.sun.estore.inventory.ejb.InventoryHome</home>
  <remote>com.sun.estore.inventory.ejb.Inventory</remote>
  <ejb-class>com.sun.estore.inventory.ejb.InventoryEJB</ejb-class>
  <persistence-type>Bean</persistence-type>
  <prim-key-class>java.lang.String</prim-key-class>
  <reentrant>False</reentrant>
- <resource-ref>
  <description>description</description>
  <res-ref-name>jdbc/InventoryDataSource</res-ref-name>
  <res-type>javax.sql.DataSource</res-type>
  <res-auth>Container</res-auth>
  </resource-ref>
  </entity>

In WAR file:
- <ejb-ref>
  <ejb-ref-name>ejb/inventory</ejb-ref-name>
  <ejb-ref-type>Session</ejb-ref-type>
  <home>com.sun.estore.inventory.ejb.InventoryHome</home>
  <remote>com.sun.estore.inventory.ejb.Inventory</remote>
  </ejb-ref>


Phillip Rhodes
[EMAIL PROTECTED]
Alcoa eCommerce
https://www.ALCOADIRECT.COM
826B Two Allegheny Center Pittsburgh, PA  15212
(412) 553-4900  (phone)  (412) 553-2484 (fax)

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to