An Enterprise JavaBeans (EJB) mediator request is a compound EJB query. You can obtain a DataGraph using the getGraph call.
To retrieve data directly from the data source, specify your first EJB query to reference the Abstract Schema Name (ASN) of the EJB.
To retrieve data through the EJB container, specify your first query to use an input parameter in the FROM clause referring to the EJB collection desired.
You should use this method when there is high likelihood that your EJB instances will be cached in the container. This way you avoid container flush and then read from the database to retrieve data.
For an example, see the section
called Collection Input Parameter at Example: Using query arguments with EJB mediator .