• Post Reply Bookmark Topic Watch Topic
  • New Topic

ejb-jar  RSS feed

 
ALaxmi Shankaran
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the ejb-jar the <abstract-schema-name> is it the name of the table in the
database to which the particular entity bean is related?
Or
Is it the name of the package in which there is home,remote interfaces, entity
bean and the primary class resides??
 
Seetesh Hindlekar
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
It refers to the table name. The Abstract Schema name is then used in EJB-QL defined in ejb-jar.xml.
<abstract-schema-name>AccountBean</abstract-schema-name>
.....
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM AccountBean AS a WHERE a.balance > ?1]]>
</ejb-ql>
If using weblogic, the actual table name is defined in the weblogic-cmp-rdbms-jar.xml file
<weblogic-rdbms-bean>
<ejb-name>containerManaged</ejb-name>
<data-source-name>oratxsource</data-source-name>
<table-map>
<table-name>SalesAccounts</table-name>
HTH,
Seetesh
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!