This commit is contained in:
Andrea Manzi 2008-03-20 14:51:42 +00:00
parent 65dfa09b2f
commit ee7c36eca3
2 changed files with 5 additions and 23 deletions

View File

@ -19,7 +19,6 @@ import org.gcube.common.core.porttypes.GCUBEStartupPortType;
import org.gcube.common.core.resources.GCUBEHostingNode;
import org.gcube.common.core.resources.GCUBEResource;
import org.gcube.common.core.scope.GCUBEScope;
import org.gcube.common.core.state.GCUBEWSResourceKey;
import org.gcube.common.core.utils.logging.GCUBELog;
import org.gcube.common.is.publisher.impl.GCUBEPublisher;
import org.gcube.common.is.publisher.impl.GCUBEPublisherException;
@ -87,28 +86,7 @@ public class RegistryFactory extends GCUBEStartupPortType{
}
/**
* Factory PT initialization
*
* @throws ServiceException
*
*/
@Override
public void init (Object arg0) throws ServiceException {
super.init(arg0);
//initialization of the Registry Configuration
try {
FactoryContext.getContext().getWSHome().create(FactoryContext.getContext().makeKey("FactoryResource"));
} catch (ResourceException e) {
e.printStackTrace();
throw new ServiceException(e);
}
}
/**
/**
* Use to Load from Disk persistence profiles and registers it into the IS-IC ( in case the IS-IC is empty)
*
*

View File

@ -18,6 +18,10 @@ public class ServiceContext extends GCUBEServiceContext{
return JNDI_NAME;
}
@Override
protected void onInitialisation() throws Exception {
FactoryContext.getContext().getWSHome().create(FactoryContext.getContext().makeKey("RegistryResource"));
}
}