Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Creating connection with Rhapsody Design manager through Java API

After setting up the DM SDK  environnement [https://jazz.net/wiki/bin/view/Main/Dm5Sdk_ExternalFileExample]

Following the same code example from the link( https://jazz.net/wiki/bin/view/Main/Dm5Sdk_CommonTasks#CreateConnection )

try{
	
	DmClient client = new DmClient("test", "test", "https://example.com:9443/dm");
	
	String apiVersion = client.getApiVersion();
	
	System.out.println( "DM API Version: " + apiVersion);
	
} catch( DmClientException ce ) {
	
	System.out.println( "DM Client Exception: " + ce.getMessage());

}		
 i have added all the required DM jar files in the path. After running code DmClient [ DmClient client = new DmClient("test", "test", "https://example.com:9443/dm"] object is getting created but then  "Connection Timeout" Exception occurs. Can anybody tell me what went wrong ? your help would greatly appreciated. :)

0 votes

Comments

Hi,

According to the thread: rhapsody design manager 6.0 : Hostname in certificate didn't match, you seem to have passed that problem since you get certificate problems now.  Can you confirm?
Thanks
François



One answer

Permanent link
You're supposed to change "https://example.com:9443/dm" to match your actual environment. Have you done so? You can verify the URL in your browser.
If the URL is correct and you still have the timeout error, you will need to provide more details about your environment.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 7,495
× 1,700
× 382

Question asked: Jul 24 '15, 2:59 a.m.

Question was seen: 4,935 times

Last updated: Jul 28 '15, 4:26 a.m.

Related questions
Confirmation Cancel Confirm