Hello MDM 5.5 SP06 JAVA API Experts,
Is it possible to Use the SessionManager in conjunction with TrustedConnections ? The trusted connection is setup properly (adding the client IP to the allow.ip file on MDM-Server).
I tried a lot but I didn't succeed with the new JAVA API 2 SessionManager functionality.
I'm initializing a UserSessionContext object and set the field for trusted connections to true.
Later I request an instance of SessionManager and call the createSession() method.
Although I've set the trustedConnection (=true) field of UserSessionContext, I get an exception, if the password is not set correctly. Due to my understanding, the password should be ignored if the UserSessionContext --> trustedConnection field is set to true. Is this a bug or am I missing any important step ?
I have also used several constructors of UserSessionContext but no chance.
Could anyone use the SessionManager with trusted Connections ?
Any help would be greatly appriciated.
Best regards.
public static void main(String[] args) { Settings settings = new Settings(); RepositoryIdentifier repId = new RepositoryIdentifier(settings.repository, settings.dbServer, settings.dbmsType); //Create a UserSessionContext //UserSessionContext sessionContext = new UserSessionContext("<servername>", "<repositoryName>", "<userName>"); UserSessionContext sessionContext = new UserSessionContext( "<servername>", repId, "English [US]", "<userName>"); sessionContext.setConnectionType(ConnectionTypes.LOCAL_POOL_CONNECTION); sessionContext.setRegionLocale(Locale.US); sessionContext.setTrustedConnection(true); //Get an instance of SessionManager SessionManager sessionManager = SessionManager.getInstance(); //Create user session String userSession = sessionManager.createSession(sessionContext, SessionTypes.USER_SESSION_TYPE, "<any pwd !!!>"); System.out.println("Created user SessionID: " + userSession); }