Hi,
I have Customer bean entity bean (fields id, name) and I am executing an
ejbSelect method from one of its business methods.  Below is the entry for
the same in ejb-jar.xml.
<query>
        <query-method>
          <method-name>ejbSelectNames</method-name>
          <method-params>
            <method-param>java.lang.String</method-param>
          </method-params>
        </query-method>
        <ejb-ql>
          <![CDATA[SELECT OBJECT(a) FROM CustBean AS a WHERE a.name = ?1]]>
        </ejb-ql>
      </query>


I am getting ClassCastException when I retrieve the  elements. Here is the
code section at which I am getting error.

Customer   c=(Customer)it.next();

Where Customer is the localRemote interface of my bean.

Am I doing something wrong ?? I am working on WL 6.1

Thanks
Ashwani

===========================================================================
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