EJB data mediator service data retrieval

An Enterprise JavaBeans (EJB) mediator request is a compound EJB query. You can obtain a DataGraph using the getGraph call.

Directly from the data source

To retrieve data directly from the data source, specify your first EJB query to reference the Abstract Schema Name (ASN) of the enterprise bean.

From the EJB container

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 topic Using the EJB data mediator service for data access.




Related tasks
Using the EJB data mediator service for data access
Related reference
EJB data mediator service programming considerations
EJB data mediator service data update
EJB mediator query syntax
DataGraph schema
Reference topic Reference topic    

Terms of Use | Feedback

Last updatedLast updated: Sep 19, 2011 6:15:55 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-express-dist&topic=rejb_ejbmedrdds
File name: rejb_ejbmedrdds.html