Go to
EJB Deployment Descriptor, click on references tab, Click on Add button at the bottom, select Resource reference radio button.
Name = (New ResourceRef) - replace this with the jndi name you gave in ur program. For example if you gave
java:comp/env/jdbc/testds, type jdbc/typeds.
Type = javax.sql.DataSource (Make sure you havent selected javax.activation.DataSource)
Autentication: CONTAINER
Under Websphere Bindings
jndiname - name you gave while created your datasource (ie jdbc/typeds)
Save everything and Restart your server.