The situation is as follows: I have an EJB which I want to deploy on multiple databases. When I locate the EJB I would like to specify which database I'd like to use. Also, I only want to define one EJB in the deployment descriptors.
When the application is running I want to say get my EJB A from datasource X and another time EJB A from datasource Y.
AFAIK, the bindings to the datasource happens during deploy time and not invoke time. so i guess this is out of the specification.