Hi,

The answer to your question is in the JOnAS example examples/src/eb !

o  Home interface :
       public Enumeration findAllAccounts() throws RemoteException, FinderException;
o  jonas-ejb-jar.xml file :
      <finder-method-jdbc-mapping>
      <jonas-method>
      <method-name>findAllAccounts</method-name>
      </jonas-method>
      <jdbc-where-clause></jdbc-where-clause>
      </finder-method-jdbc-mapping>

So you did the right way, except the "where clause",
which should be empty to find all records.

Regards,

Fran�ois

Ritesh wrote:

> Hello
>
>     i have generated the entity beans using EJBWizard
>     It works fine.
>
>     Now , the situation arises that i have to include one more
>     finder merthod into the entity bean so i did the following things
>
>     1)  I inserted sign in Home interface
>           public Enumeration findAllActivity() throw Remote Exceprion,Finder 
>Exception
>
>     2)  Then i did necessary changes into the jonas-ejb-jar.xml
>            <finder-method-jdbc-mapping>
>            <jonas-method>
>               <method-name>findAllActivity</method-name>
>            </jonas-method>
>            <jdbc-where-clause>where </jdbc-where-clause>
>             </finder-method-jdbc-mapping>
>     3)  Then i recompiled the entity beans
>           by make -f MyEntityBean .
>
>     It it the wright way to include the new finder method into the
>     entity beans after the entity beans is created . ??
>     Or i have to do any more changes into the files.??
>
> Thanks
> Ritesh.
>
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".

--
==================================================================
Francois EXERTIER         Evidian (Groupe Bull)
     1, rue de Provence,  BP 208,  38432 Echirolles cedex, FRANCE
     mailto:[EMAIL PROTECTED]
     http://www.evidian.com/jonas   http://www.objectweb.org/jonas
     Tel: +33 (0)4 76 29 71 51  -  Fax:   +33 (0)4 76 29 76 00
==================================================================


----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to