see any exception is thrown...are u getting a null or a collection object without any elements? ur query may not be matched to give any output..that may be other cause..
I'm getting no exceptions...I'm getting a colletion object without any elements...my ejb-jar.xml looks like this
<query>
<description></description>
<query-method>
<method-name>findByCustID</method-name>
<method-params>
<method-param>int</method-param>
</method-params>
</query-method>
<ejb-ql>select OBJECT(s) from SalesBean as s where s.custId= ?1</ejb-ql>
</query>
CMP unlike bmp are difficult to debug..find out any where any time any exception or any sor of error printed any where..or try to redeploy ur entity bean alone adn see any exception or error is created.....
Very sorry to say that with this information i cant figure out what could be the issue....
regards
Shanu