Skip to Content
author's profile photo Former Member
Former Member

MDM Java Connector : connection problem

Hi All,

I'm using MDM Java Connector to get a connection to MDM Repository. I have all the JAR files included and all the references given in the Web Dynpro Application. I get the connection with MDM repository perfectly and perform operations too.

But, the problem is if I run the same application 2-3 times it starts giving error like.."Login Method not executed properly". Does anyone know what could be the possible problem here??

The code I'm using,

//Obtain the initial JNDI context
 Context ctx = new InitialContext();
//Perform JDNI lookup to obtain connection factory
IConnectionFactory connectionFactory =(IConnectionFactory)ctx.lookup("deployedAdapters/MDM Factory/shareable/MDM Factory");
//Get Connection Spec to set connection properties
IConnectionSpec spec = ConnectionFactory.getConnectionSpec();
//Set Connection Properties
 spec.setPropertyValue("UserName", <username>);
 spec.setPropertyValue("Password", <password>);
 spec.setPropertyValue("Server", <server>);
 spec.setPropertyValue("Port", <por>);
 spec.setPropertyValue("RepositoryLanguage", <lang>);

//Get the Connection
IConnection connection = connectionFactory.getConnectionEx(spec);
wdComponentAPI.getMessageManager().reportSuccess("Connection Established");
//Retrieve Native inteface
 INative nativeInterface = connection.retrieveNative();
//Get the CatalogData the physical connection
 CatalogData catalog = (CatalogData)nativeInterface.getNative(CatalogData.class.getName());



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jul 13, 2006 at 11:49 AM

    Hi Mausam,

    check whether you close the connection at the end:


    Did you have a look at the connector monitor ?

    Via Visual Admin -> Services -> Monitoring -> Services -> Connector Service -> ... -> MDM Factory.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Andreas Seifried

      Great Andreas,

      It seems making "null" afterwards has done the trick. Though I would like to test it properly, will get back to you on the same if it fails somewhere.

      Thanks a lot. Now, I can "hibernate" till Monday.



  • author's profile photo Former Member
    Former Member
    Posted on Jul 11, 2007 at 01:16 AM


    What is the SCA file to depoly and refer in dev time for the clasees like





    Please help me.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.