cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

92
Views
0
Helpful
1
Replies
khgrant
Cisco Employee

How to Directly Read CDB in Java code

 

Hi ,

 

Could I read CDB directly in single java code main function, not used ncsRoot.container("devices").list("device");

 

I have tried, but the follows code can not read CDB.

 

Socket socket = new Socket("127.0.0.1", Conf.NCS_PORT);

 

Cdb cdb = new Cdb("test", socket);

 

 

Do you know how can I directly read CDB in java code ?

 

---------

 

Regards,

 

Hao Fan   

 

1 REPLY 1
khgrant
Cisco Employee

 

Yes, that should work directly from Main

 

 

/klacke