git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/information-system/gCubeIS/Registry@80 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c1a1ec40a2
commit
7d626bdaa3
|
@ -93,39 +93,6 @@
|
|||
override="false"/>
|
||||
|
||||
|
||||
<resource name="RegistryConfiguration" type="org.gcube.informationsystem.registry.impl.RegistryConfiguration">
|
||||
<resourceParams>
|
||||
|
||||
<parameter>
|
||||
<name>
|
||||
factory
|
||||
</name>
|
||||
<value>
|
||||
org.globus.wsrf.jndi.BeanFactory
|
||||
</value>
|
||||
</parameter>
|
||||
|
||||
<parameter>
|
||||
<name>registrationRemovalInterval</name>
|
||||
<value>140</value>
|
||||
</parameter>
|
||||
|
||||
<parameter>
|
||||
<name>profilesBase</name>
|
||||
<value>@config.dir@/DILResourceSchemas</value>
|
||||
</parameter>
|
||||
|
||||
<parameter>
|
||||
<name>propertiesFile</name>
|
||||
<value>@config.dir@/registration.properties</value>
|
||||
</parameter>
|
||||
<parameter>
|
||||
<name>registrationType</name>
|
||||
<value>Pull</value>
|
||||
</parameter>
|
||||
</resourceParams>
|
||||
</resource>
|
||||
|
||||
|
||||
<resource name="publicationProfile" type="org.gcube.common.core.state.GCUBEPublicationProfile">
|
||||
<resourceParams>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<parameter name="allowedMethods" value="*"/>
|
||||
<parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
|
||||
<parameter name="scope" value="Application"/>
|
||||
<parameter name="providers" value="GCUBEProvider SubscribeProvider GetCurrentMessageProvider "/>
|
||||
<parameter name="providers" value="GCUBEProvider SubscribeProvider DestroyProvider GetCurrentMessageProvider "/>
|
||||
<parameter name="loadOnStartup" value="false"/>
|
||||
<parameter name="securityDescriptor" value="@config.dir@/security-descriptor-Service.xml"/>
|
||||
</service>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<parameter name="allowedMethods" value="*"/>
|
||||
<parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
|
||||
<parameter name="scope" value="Application"/>
|
||||
<parameter name="providers" value="GCUBEProvider SubscribeProvider GetCurrentMessageProvider "/>
|
||||
<parameter name="providers" value="GCUBEProvider SubscribeProvider DestroyProvider GetCurrentMessageProvider "/>
|
||||
<parameter name="loadOnStartup" value="false"/>
|
||||
|
||||
</service>
|
||||
|
|
|
@ -232,6 +232,7 @@ public class RegistryFactory extends GCUBEStartupPortType{
|
|||
if (!isResourceCreated(ID)) {
|
||||
input = new CreateResourceMessage();
|
||||
input.setProfile(xmlProfile);
|
||||
input.setType(mess.getType());
|
||||
this.createResource(input);
|
||||
return new UpdateResourceResponse();
|
||||
}
|
||||
|
@ -312,6 +313,7 @@ public class RegistryFactory extends GCUBEStartupPortType{
|
|||
try{
|
||||
|
||||
ProfileResource resource = getProfileResource(ID );
|
||||
profile = this.getResourceClass(type);
|
||||
profile.load(new StringReader( XMLUtils.DocumentToString(resource.getProfile())));
|
||||
//remove profile
|
||||
resource.removeProfile();
|
||||
|
@ -323,6 +325,7 @@ public class RegistryFactory extends GCUBEStartupPortType{
|
|||
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
logger.error("Error removing resource for ID "+ e);
|
||||
throw new RemoteException();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue