You can use one xml for both configurations or deploy two conifguration xml files.
Be sure you are using differen jndi names for the data sources.
If you want to use cmp for ejbs (different ds for different ejbs) search the forum. I read something aout this recently.
Thanks Frito. I already did what you said to me. When run the application, this one makes the connection to the source of data, makes deploy well, but it does not find the data that are stored in each source. That is the problem.
These are the archives with which I am working (mysqlDS1-service.xml, mysqlDS2-service.xml, jbosscmp-jdbc.xml). But it does not work until the moment. When I review in http://localhost:8082, encounter mysqlDS1, mysqlDS2 in service=JNDIView. But when the application runs does not accede to the source of data, but if it stores to data in some tag temporary.
Can you see the datasources in the JNDi view? If not, they are not deployed properly.
Can you access the datasources? Try a testbean, do a lookup, get a connection and try to do a query.
I think both should work with your configuration. If so, try to ask in the CMP forum since the datasources are ok.