on 12-24-2008 1:50 PM
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
.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.