How can I pass the uid and pwd using using TaminoAPI4J? Is there anything like setUser(uid, pwd) method like those in TaminoClient (v.1 and v.2).
I just saw putting them into a xml file when using ConnectionPoolManager class.
Thanks!
com.softwareag.tamino.db.API.connection.TConnectionFactory.newConnection(java.lang.String databaseUri, java.lang.String userId, java.lang.String password)
…should do this for you.
HTH
I’m trying to use the method
com.softwareag.tamino.db.API.connection.TConnectionFactory.newConnection(java.lang.String databaseUri, java.lang.String userId, java.lang.String password)
but in userid i have domain\username and during compiling i get illegal escape character and so i try to quote it
domain’'username is it correct or it’s not correct?
Regards
@nto
Backslash ()is used to escape special characters in Java Strings so that (for example) you can create a string containing quotes.
To create a string like “domain\user” you need code like:
String myUserString = domain + "\\" + user;
HTH