This content has been marked as final.
Show 2 replies
-
1. Re: Datasource creation using cli (postgresql)
runeks2 Jan 20, 2014 7:25 AM (in response to zatopek)When using domain, you need to specify which profile (in domain.xml) the jdbc-driver should be added to. The following command
/profile=default/subsystem=datasources/jdbc-driver=postgresql:add(driver-name=postgresql,driver-module-name=org.postgresql,driver-xa-datasource-class-name=org.postgresql.xa.PGXADataSource)
adds a jdbc-driver to the default profile.
-
2. Re: Datasource creation using cli (postgresql)
wdfink Jan 20, 2014 3:03 PM (in response to runeks2)As he use the "full-ha" profile the command is
/profile=full-ha/subsystem=datasources......
Also you need to add the module to the "modules/org/postgresql/main" directory.
Tip: you might create the module with the CLI but you need to have the "module add ..." command with the CLI disconnected as it works only connected if there is a standalone server