Try this:

                Enumeration registryEntrys = 
org.apache.jetspeed.services.Registry.getNames();
                while (registryEntrys.hasMoreElements())
                {
                        String regEntry = (String)registryEntrys.nextElement();
                        System.out.print(regEntry);  
                        Registry reg  = 
org.apache.jetspeed.services.Registry.get(regEntry);
                        System.out.println(" : " + reg.toString());
                        RegistryEntry entry[] = reg.toArray();
                        for (int i = 0; i < entry.length; i++)
            {
                RegistryEntry registryEntry = entry[i];
                System.out.println("\t" + registryEntry.getName());
            }
                }
                System.out.flush();
                System.out.println("*****************************************");       
         

-----Original Message-----
From: Alfer, Daniel [mailto:daniel.alfer@;volkswagen.de]
Sent: Thursday, October 24, 2002 4:55 AM
To: '[EMAIL PROTECTED]'
Subject: Registry-CastorRegistryService


Hey All!

I have a problem. I want to edit my Registry, but I don�t know how I get a
handle on my registry.

I try it that way

 CastorRegistryService castor = new  CastorRegistryService();
 Registry                     reg     = castor.get("local-portlets");  //
"local-portlets" is a xreg-file in my conf-Folder

but the reg Variable is always NULL!

What is mean with regName. The names of the x.reg files in the conf-Folder?
or a special name for the whole Registry, but where do I get this?

Thanks all

--
To unsubscribe, e-mail:   <mailto:jetspeed-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:jetspeed-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-user-help@;jakarta.apache.org>

Reply via email to