I'm using RAD but this is more of a question about how datasources are setup in Websphere in general. I'm trying to explain what I know and I have some questions at the end. Please correct me if I'm wrong. Any help is appreciated!
From my perspective, it seems like it can be done two ways? In the admin console or through modifying the application.xml and web.xml files?
In the admin console, I would create the datasource via the Resources tab and when installing the application, I would bind the datasource to the web modules.
The other way which I'm setup now is to setup the datasource in the application.xml file, under the deployment tab when viewed in RAD. I will also have to bind the datasource in the web.xml file, references tab. No config is necessary in the admin console for this method.
So what's the difference of both of the methods? I can see how it will be useful to define it in the application.xml file since we don't have to recreate the datasource for every different server. Anything else?
Which is more commonly used?