Access by Middle-Tier Clients

Initializes three properties INITIAL_CONTEXT_FACTORY, PROVIDER_URL, and OBJECT_FACTORIES, and retrieves a XADataSoure object.

For example:

...
XADataSoruce xads = (XADatasource) ctx.lookup ("server=myASE");
XAConnection xaconn = xads.getXAConnection ();
or, override the default settings for the user name and password:
...
XADataSource xads = (XADatasource) ctx.lookup("servername=myASE");
XAConnection xaconn = xads.getXAConnection("my_username", "my_password");