Hello John,
> singleton SingletonJsTestOne {
> service JsTestOne;
> };
> }; }; }; }; };
We recommend to prefix "the", i.e. "theSingletonJsTestOne".
> has a bunch of entries under /SINGLETONS but I don't know what steps
I assume it also has *your* singleton entries under /SINGLETONS, i.e.
the entries you write in your __writeRegistryServiceInfo(). If not, add
it to your __writeRegistryServiceInfo(), like
...
XRegistryKey * xNewKey = xRegistryKey.createKey(
"/UNO/SINGLETONS/<theDottedSingletonName>" );
xNewKey.setStringValue( "<serviceName>" );
...
> Sooo... can anyone give me advice on creating and installing a singleton
> service - for oo.1.1.3 (or 4, but NOT 2.0.x)
For getting a singleton instance (scoped to your component context), you
have to call the component context for it, e.g.
Object o = xComponentContext.getValueByName(
"/singletons/<theDottedSingletonName>" );
HTH,
--Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]