Hi,

I try to use the @ejb.select tag. But it does not work for me.

I am declaring the following methods:

-----------------------------------------------------------------------------------------------------------------

/**
* @ejb.select
* query = "select a.amount from jrnl a where a.simid = ?1 and a.periodid = ?2 and a.creditacc = ?3"
* result-type-mapping = "Local"
*
*/
public abstract Set ejbSelectCreditAmountList( Long simid, Integer period, String acc );

/**
* @ejb.select
* query = "select a.amount from jrnl a where a.simid = ?1 and a.periodid = ?2 and a.debitacc = ?3"
* result-type-mapping = "Local"
*/
public abstract Set ejbSelectDebitAmountList( Long simid, Integer period, String acc );

------------------------------------------------------------------------------------------------------------------

When I deploy thiis, I get the following log from my JBoss:

------------------------------------------------------------------------------------------------------------------
21:38:19,531 WARN [verifier] EJB spec violation:
Bean : JournalCMP
Method : public abstract Set ejbSelectCreditAmountList(Long, Integer, String)
Section: 10.6.7
Warning: Select methods of an entity bean class must define javax.ejb.FinderException in their throws clause.
21:38:19,541 WARN [verifier] EJB spec violation:
Bean : JournalCMP
Method : public abstract Set ejbSelectDebitAmountList(Long, Integer, String)
Section: 10.6.7
Warning: Select methods of an entity bean class must define javax.ejb.FinderException in their throws clause.

------------------------------------------------------------------------------------------------------------------

When I supply the FinderExceptionn to the methods, they are included neither into the home nor in the ejb interface.

What am I doing wrong?

Thanx for your help

 

Klaus

Reply via email to