From: Dave H. <hel...@li...> - 2014-04-28 18:10:08
|
Hi Vihang, It sounds like your question pertains more to configuration in general than it does to SSL specifically. You can find documentation for both in the ./org/sblim/cimclient/doc-files folder in the project (that is, packaged with the Java CIM Client) or on the web at: http://sblim.sourceforge.net/cim-client2-v22-doc/org/sblim/cimclient/doc-files/configuration.html http://sblim.sourceforge.net/cim-client2-v22-doc/org/sblim/cimclient/doc-files/secure.html http://sblim.sourceforge.net/cim-client2-v22-doc/org/sblim/cimclient/doc-files/indications.html http://sblim.sourceforge.net/cim-client2-v22-doc/org/sblim/cimclient/doc-files/secure_indications.html It is not necessary to set the properties for each instance of the client individually, although you can do that if your application requires it. The difference between global config, client/listener-specific config and thread-specific config is explained in configuration.html. Let me know if you have questions after reading that. Perhaps your confusion comes from the difference between client.getProperties() and client.getProperty(), where client is an instance of WBEMClient. It's true that client.getProperties() does not return any values set in the .properties file. That's because properties from the file are global properties, and client.getProperties() only returns those properties specific to that client instance (as set via client.setProperty() for example). To return a list of global properties, including those read from the file, you can use System.getProperties(). client.getProperty() behaves a little differently. This method will return a value for the property in question in the following precedence: local (i.e thread-specific), client-specific, global, default (i.e as set in WBEMConfigurationDefaults). So in that sense, client.getProperty() can return a value that was set via the .properties file, wheareas client.getProperties() will not. I hope that clarifies. Dave H. On 04/23/2014 06:28 PM, Vihang Karajgaonkar wrote: > Hi Everyone, > > I need to understand how to configure the CIM Client. The > WBEMConfiguration.getGlobalConfiguration() gives the properties settings > from sblim-cim-client2.properties file. But the WBEMClient.getProperties > does not have the properties from the sblim-cim-client2.properties file. > Do we have to explicitly set all the properties again for each instance > of WBEMClient? If not, how do we enforce the client to pick the > configuration properties from the sblim-cim-client2.properties file > wherever it is created? > > Thanks, > Vihang > > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p.sf.net/sfu/ExoPlatform > > > > _______________________________________________ > Sblim-devel mailing list > Sbl...@li... > https://lists.sourceforge.net/lists/listinfo/sblim-devel > |