-
1. Re: Local interface question
stflourd Jan 6, 2002 4:52 PM (in response to mesketh)I had a similar problem and it turned out to be the method parameters tags was the cause of the problem. Also be careful of the name used in the abstract-schema-name tag. It turns out that the name is case sensitive and it must match the name used in the ejb-ql tag. I include an extract of my descriptor below:
Team
<ejb-name>Team</ejb-name>
<local-home>com.meridianinfo.jsoccer.ejb.model.TeamHome</local-home>
com.meridianinfo.jsoccer.ejb.model.Team
<ejb-class>com.meridianinfo.jsoccer.ejb.model.TeamBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Long</prim-key-class>
False
<cmp-version>2.x</cmp-version>
<abstract-schema-name>team</abstract-schema-name>
<cmp-field><field-name>teamId</field-name></cmp-field>
<cmp-field><field-name>teamName</field-name></cmp-field>
<primkey-field>teamId</primkey-field>
Find all teams
<query-method>
<method-name>findAllTeams</method-name>
<method-params/>
</query-method>
<ejb-ql>
SELECT OBJECT(t)
FROM team t
</ejb-ql>