on 06-22-2011 11:22 AM
Hello Experts,
I am trying to connect to MDM repository using following code:
UserSessionContext sessionContext = new UserSessionContext("myhostname",
"test_rep", "English [US]", "userid");
sessionContext.setConnectionType(ConnectionTypes.JCA_CONNECTION);
String sessionId = SessionManager.getInstance().createSession(
sessionContext, SessionTypes.USER_SESSION_TYPE, "somepassword");
but I got following error when I run the application
com.sap.mdm.session.SessionException: Can not get RepositoryIdentifier for repository 'test_rep' on the server 'serverhostname' because connection problems
Now, I tried another method to connect which is as follows:
RepositoryIdentifier repId = new RepositoryIdentifier("test_rep", DBServerNameAsString, DBMSTypeAsString);
However, I am not aware of what DBServerNameAsString & DBMSTypeAsString are? is DBServerNameAsString is my MDM Server Host name? And what about the other parameter?
Please help!
Ameya
Edited by: Ameya Pimpalgaonkar on Jun 22, 2011 12:24 PM
Hello Ameya
1) Are your sure that connection from your system is working fine?
2) Is your system ip adress present in allow.ip file?
3) Are your repository started?
I hope answer for this questions help you to solve your problem.
Regards
Kanstantsin Chernichenka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1) How to check the connection from my system is working fine? I have some WebDynpro Configurator iViews and they are workign fine with the MDM destinations I have provided. This means connection is working fine right?
2) I am not aware of what is allow.ip?
3) Yes, repository is started
Thank you very much for the reply looking forward to more inputs.
Ameya
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.