-
1. Re: Adding a XA Datasource with the 7.1.0 beta
r.reimann Dec 5, 2011 1:56 PM (in response to mylos78)The xa-datasource-properties param was removed in 7.1.0.Beta1. You have to add them as subrsources now:
/subsystem=datasources/xa-data-source=TestDS/xa-datasource-properties=ServerName:add(value=localhost)
-
2. Re: Adding a XA Datasource with the 7.1.0 beta
mylos78 Dec 6, 2011 4:53 PM (in response to r.reimann)Hello,
thank you very much for your reply. I've tried with setting the properties, however it seems that the resource needs to be created before. However if I try with:
[standalone@localhost:9999 /] /subsystem=datasources/xa-data-source=TestDS:add
{
"outcome" => "failed",
"failure-description" => "JBAS014746: driver-name may not be null",
"rolled-back" => true
}
So how can I add an XA datasource providing the information about the driver name at the same time ?
Thanks
Mylos
-
3. Re: Adding a XA Datasource with the 7.1.0 beta
r.reimann Dec 7, 2011 2:50 AM (in response to mylos78)Hello Mylos,
use the Tab Completion inside the CLI /subsystem=datasources/xa-data-source="TestDS":add( ->TAB
or the read-operation-description command /subsystem=datasources/xa-data-source=TestDS:read-operation-description(name=add)
to get a list of valid parameters for the add operation.
Below is an example with the required steps to create a xa datasource.
[standalone@localhost:9999 /] /subsystem=datasources/xa-data-source="TestDS":add(jndi-name="java:/TestDS", driver-name="h2", pool-name="testPool") {"outcome" => "success"} [standalone@localhost:9999 /] /subsystem=datasources/xa-data-source=TestDS/xa-datasource-properties=ServerName:add(value=localhost) {"outcome" => "success"} [standalone@localhost:9999 /] /subsystem=datasources/xa-data-source=TestDS/xa-datasource-properties=PortNumber:add(value=50011) {"outcome" => "success"} [standalone@localhost:9999 /] /subsystem=datasources/xa-data-source=TestDS:enable {"outcome" => "success"}
Regards
Robert
-
4. Re: Adding a XA Datasource with the 7.1.0 beta
mylos78 Dec 7, 2011 6:20 AM (in response to r.reimann)Thank you very much !!!
regards
Mylos
-
5. Re: Adding a XA Datasource with the 7.1.0 beta
aloubyansky Mar 16, 2012 2:38 PM (in response to mylos78)In AS7 7.1.2 xa-data-source will get --xa-datasource-properties argument, so the following will work
xa-data-source add --name=myxa --jndi-name=java:/myxa --driver-name=h2 --xa-datasource-properties=ServerName=localhost,PortNumber=50111