The datasource definition depends not on the domain or standalone mode.
Only difference is where to place the configuration domain.xml (multiple profiles) or standalone*.xml (only one profile)
Reply to this message by going to Community
Start a new discussion in Datasource Configuration at Community