Yes, it is possible. Let's say you have a bean implementation called MyEntityBean. You would need to
1) Deploy one
EJB with MyEntityBean as the implementation having a resource reference to "DataSource1" in its ejb-jar.xml configs
2) Deploy another EJB with the same implementation class but having a resource reference in ejb-jar.xml pointing to "DataSource2"