To migrate the EJB deployment descriptor file, ejb-jar.xml, edit the file and make the following changes.
Convert all <cmp-fields> to lowercase.
Insert the tag <abstract-schema-name> after the <reentrant> tag.
The schema name will be the name of the bean as in the < ejb-name> tag, prefixed with “ias_”.
Insert the following tags after the <primkey-field> tag:
<security-identity> <use-caller-identity/> </security-identity>
Use the SQL obtained above to construct the EJB QL from SQL.
Insert the <query> tag and all its nested child tags with all the required information just after the <security-identity> tag.