This commit is contained in:
Manuele Simi 2008-06-12 16:44:06 +00:00
parent 570c646e18
commit 77aecb245d
1 changed files with 1 additions and 2 deletions

View File

@ -138,8 +138,7 @@ public class ServiceContext extends GCUBEServiceContext {
// register my profile
GCUBERunningInstance RegistryRIProfile = ServiceContext.getContext().getInstance();
GCUBERIQuery query = client.getQuery(GCUBERIQuery.class);
query.addAtomicConditions(new AtomicCondition(
"//Endpoint@EntryName","gcube/informationsystem/registry/RegistryFactory"),new AtomicCondition("//ServiceName", this.getName()));
query.addAtomicConditions(new AtomicCondition("//ServiceClass", this.getServiceClass()),new AtomicCondition("//ServiceName", this.getName()));
if (this.client.execute(query, GHNContext.getContext().getDefaultScope()).size() == 0)
registerProfile(RegistryRIProfile, GCUBERunningInstance.TYPE);