Hi Tobias,

> >>>>> 5. __getComponentFactory can be updated as you would do for an
> >>>>> ordinary service (no special handling for singletons required)
> 
> [...]
> 
> >> Is this correct?
> 
> > Yes, I think it is, but note that you need SpringLoaderImpl.class to
> > refer the implementation that you created in Java, not to the
singleton
> 
> After doing all these things, I still have the error "no service
object
> raising singleton /singletons/de.twc.oocom.comp.theSpringLoader" when
> calling the singleton.
> 
> I have no more ideas. Do you have any more idea?
> 

You can try to replace __getServiceFactory with __getComponentFactory as
follows:

==================
public static XSingleComponentFactory __getComponentFactory (String
implName) {
XSingleComponentFactory xSingleComponentFactory = null;

if (implName.equals(JudasProtocolHandler.class.getName())) {
     xSingleServiceFactory = Factory.createComponentFactory(
                        JudasProtocolHandler.class, 
                        new String[] {SERVICENAME}
        );
} else if (implName.equals(SpringLoaderImpl.class.getName())) {
     xSingleServiceFactory = Factory.createComponentFactory(
                        SpringLoaderImpl.class, 
                        new String[] {SpringLoaderImpl.__singeltonName}
        );
}
return xSingleServiceFactory;
}
========================

This is what we are using, I'm not sure about the exact differences
between getServiceFactory and getComponentFactory.

Regards,
Daan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to