How do you set DataSource for a CMP Entity Bean?
You can set the DataSource for the CMP entity bean at the entity bean level in AAT, or set a default DataSource for the entire EJB module. If a CMP entity bean does not have any DataSource specified, it will use the default DataSource. However, the DataSource name specified at the CMP Entity bean level overrides the default DataSource name. The DataSource name must be the JNDI name of the JDBC DataSource set in the admin console.