cancel
Showing results for 
Search instead for 
Did you mean: 

RetrieveLimitedRecordsCommand does not work

Former Member
0 Kudos

Hi All,

I am trying to retrieve data from MDM using RetrieveLimitedRecordsCommand .

But the command is failing.When I try to catch the exception it just says invalid connection.

My code as below

RetrieveLimitedRecordsCommand retrvRec = new RetrieveLimitedRecordsCommand(connections);

Kindly help me

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

.

Former Member
0 Kudos

hi sudhee,

Here the problem with the conection, may be the host name that you are giving for getting the connection wrong.

try this,..

ConnectionAccessor ConAccessor;

try {

ConAccessor = SimpleConnectionFactory.getInstance(host);

}

catch (ConnectionException e) {

System.out.println("Error while getConnection");

e.printStackTrace();

}

RetrieveLimitedRecordsCommand retrvRec = new RetrieveLimitedRecordsCommand(ConAccessor);

Regards,

Sandeep.