Hi, 

I am developping a bean called RoadDataBean and I am writing some custom finders for 
it. The data is stored in an SQL-Server database, dates are stored as long's.

The finder I'm working on, is as follows: 

public interface RoadDataBeanHome extends EJBHome
{
  ...

  public Collection findBetweenDates(String id, long startDate, 
                 long endDate) throws RemoteException, FinderException;
}

In the file jaws.xml, I have put the next: 

<jaws>
 <enterprise-beans>
        <entity>
            <ejb-name>RoadDataBean</ejb-name>
            <finder>
                <name>findBetweenDates</name>
                <query>wc_id = '{0}' and date between {1} and 2}</query>
                <order>rd_id asc</order>
            </finder>
            
            <remove-table>true</remove-table>
            <debug>true</debug>         
        </entity>
    </enterprise-beans>

When i try to call the finder, i get a FinderException, and i can't figure out why !!

CAN ANYONE HELP ME ??? Do you have experience with custom finders? An example that 
works for MSSQLServer? Any hints or tips?

Any help would be really appreciated !!!

tnx in advance, Jef

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to