diff --git a/etc/deploy-server.wsdd b/etc/deploy-server.wsdd index c5dc09e..53b3dbb 100644 --- a/etc/deploy-server.wsdd +++ b/etc/deploy-server.wsdd @@ -12,7 +12,7 @@ - + @@ -26,7 +26,7 @@ - + diff --git a/etc/deploy-server.wsdd_NOSEC b/etc/deploy-server.wsdd_NOSEC index b05e74f..2ddca5c 100644 --- a/etc/deploy-server.wsdd_NOSEC +++ b/etc/deploy-server.wsdd_NOSEC @@ -12,8 +12,8 @@ - - + + @@ -26,7 +26,6 @@ - diff --git a/etc/registration.properties b/etc/registration.properties deleted file mode 100755 index 0e8113a..0000000 --- a/etc/registration.properties +++ /dev/null @@ -1,24 +0,0 @@ -collectionResourceSchema=Collection/Collection_profile.xsd -csResourceSchema=CS/CS_profile.xsd -csInstanceResourceSchema=CS/CSInstance_profile.xsd -dhnResourceSchema=DHN/DHN_profile.xsd -gLiteResourceSchema=gLite/gLiteResource_profile.xsd -riResourceSchema=RI/RI_profile.xsd -serviceResourceSchema=Service/Service_profile.xsd -externalRiResourceSchema=ExternalRI/ExternalRI_profile.xsd -vdlResourceSchema=VDL/VDL_profile.xsd -metaColResourceSchema=MetaCol/MetaCol_profile.xsd -transProgramResourceSchema=TransProgram/TransProgram_profile.xsd -genericResourceSchema=GenericResource/GenericResource_profile.xsd -collectionRegistrationFile=PullRegistration/collection.xml -csRegistrationFile=PullRegistration/cs.xml -csInstanceRegistrationFile=PullRegistration/csinstance.xml -dhnRegistrationFile=PullRegistration/dhn.xml -gLiteRegistrationFile=PullRegistration/glite.xml -riRegistrationFile=PullRegistration/ri.xml -serviceRegistrationFile=PullRegistration/service.xml -externalRiRegistrationFile=PullRegistration/externalRi.xml -vdlRegistrationFile=PullRegistration/vdl.xml -metColRegistrationFile=PullRegistration/metaColl.xml -transProgramRegistrationFile=PullRegistration/transProgram.xml -genericResourceRegistrationFile=PullRegistration/generic.xml \ No newline at end of file diff --git a/org/gcube/informationsystem/registry/impl/core/RegistryFactory.java b/org/gcube/informationsystem/registry/impl/core/RegistryFactory.java index 521e8d2..02aee4a 100644 --- a/org/gcube/informationsystem/registry/impl/core/RegistryFactory.java +++ b/org/gcube/informationsystem/registry/impl/core/RegistryFactory.java @@ -22,6 +22,7 @@ import org.gcube.common.core.resources.GCUBEGenericResource; import org.gcube.common.core.resources.GCUBEHostingNode; import org.gcube.common.core.resources.GCUBEMCollection; import org.gcube.common.core.resources.GCUBEResource; +import org.gcube.common.core.resources.GCUBERunningInstance; import org.gcube.common.core.resources.GCUBEService; import org.gcube.common.core.resources.GCUBETransformationProgram; import org.gcube.common.core.resources.GCUBEVRE; @@ -480,6 +481,7 @@ public class RegistryFactory extends GCUBEStartupPortType{ switch (ResourceType.valueOf(type)){ + case RunningInstance:return GHNContext.getImplementation(GCUBERunningInstance.class); case ExternalRunningInstance:return GHNContext.getImplementation(GCUBEExternalRunningInstance.class); case Service: return GHNContext.getImplementation(GCUBEService.class); case Collection: return GHNContext.getImplementation(GCUBECollection.class); @@ -496,6 +498,7 @@ public class RegistryFactory extends GCUBEStartupPortType{ } enum ResourceType { + RunningInstance, ExternalRunningInstance, Service, Collection, diff --git a/org/gcube/informationsystem/registry/impl/core/ServiceContext.java b/org/gcube/informationsystem/registry/impl/core/ServiceContext.java index c786570..f1ce4c5 100644 --- a/org/gcube/informationsystem/registry/impl/core/ServiceContext.java +++ b/org/gcube/informationsystem/registry/impl/core/ServiceContext.java @@ -1,7 +1,6 @@ package org.gcube.informationsystem.registry.impl.core; -import java.rmi.RemoteException; import org.gcube.common.core.contexts.GCUBEServiceContext; import org.gcube.common.core.contexts.GHNContext; @@ -13,9 +12,13 @@ import org.gcube.common.core.is.publisher.ISPublisherException; import org.gcube.common.core.resources.GCUBEHostingNode; import org.gcube.common.core.resources.GCUBEResource; import org.gcube.common.core.resources.GCUBERunningInstance; -import org.gcube.informationsystem.registry.stubs.RegistryFactoryPortType; -import org.gcube.informationsystem.registry.stubs.service.RegistryFactoryServiceAddressingLocator; +/** + * + * + * @author Andrea Manzi (ISTI-CNR) + * + */ public class ServiceContext extends GCUBEServiceContext{ public static final String JNDI_NAME="gcube/informationsystem/registry"; @@ -58,10 +61,6 @@ public class ServiceContext extends GCUBEServiceContext{ ISClient client = null; - - RegistryFactoryServiceAddressingLocator registryLocator = new RegistryFactoryServiceAddressingLocator(); - - RegistryFactoryPortType registryFactory = null; // create GeneralQueryManager try { @@ -71,9 +70,7 @@ public class ServiceContext extends GCUBEServiceContext{ e.printStackTrace(); } - registryFactory = registryLocator.getRegistryFactoryPortTypePort(FactoryContext.getContext().getEPR()); - - + try { RegistryRIProfile= ServiceContext.getContext().getInstance(); @@ -102,6 +99,8 @@ public class ServiceContext extends GCUBEServiceContext{ } catch (Exception e) { e.printStackTrace(); } + + try { ghnProfile=GHNContext.getContext().getGHN(); @@ -128,6 +127,8 @@ public class ServiceContext extends GCUBEServiceContext{ queryRI.setResourceName("IS-Registry"); if (client.execute(queryRI, GHNContext.getContext().getDefaultScope()).size()==0) registerProfile(RegistryRIProfile,GCUBERunningInstance.TYPE); + + if (isNotifierCodeployed) { queryRI.setEntryName( "gcube/informationsystem/notifier/Notifier"); queryRI.setResourceClass("InformationSystem");