EJB find handler: ejb-finder
Handles the method to retrieve business objects via a stateless session bean. Supports the following attributes:
Attribute
|
Usage
|
---|---|
jndi |
JNDI path to EJB Home interface |
method | EJB Bean method to get business objects |
if |
EL expression that must be evaluated to true prior to handler action |
unless |
EL expression that must be evaluated to false prior to handler action |
Additionally, it can specify one or more parameters in a way similar to the ejb-handler methods
ejb-finder example
<datanode name="country">
...
<finder name="cities" type="city" >
<ejb-finder jndi="com.soffid.sample/CitiesBean" method="findByCountry">
<parameter value="${instance.abbreviation}"/>
</ejb-finder>
</finder>
...
</datanode>