cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting to MDM Repository; what are DBServerNameAsString & DBMSType?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

former_member188632
Active Contributor
0 Kudos

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

Answers (0)