Hello: we have developed a grid-service to run simulations in a VO. Now, I would like to register in the IndexService some properties related to the machine where it is deployed. As an example, I would like to register the "time to complete" for a test simulation; this value is refreshed periodically. So, my question is which is the best possibility in order to register a parameter in the IndexService that depends on the machine and not on the service.
The options that we are considering are the following: - One services and multiple resources. This option is already implemented in our code. It seems the easiest way because we have previously developed some services registering their properties in the IndexService. The service that is going to discover the simulation service in the IndexService just gets the URI and the "time to complete" but not the ResourceKey, because it is not necessary. - Singleton resources. This options seems to be logic. We create just one single resource that is registered in the IndexService. There is no ResouceKey. The problem is that we don't know how to make the related code. Regarding Borja Sotomayor's book we were not able to register one SingletonResource. - Resources in the FactoryService. The ResourceProperty depends on the FactoryService because it is related with the machine were it is deployed. So, maybe it would be better to associate this property with the FactoryService of the simulation service. In this sense, I think it would be necessary to create e FactoryResourceHome.java and a FactoryResource.java. Could you recommend me the best choice? Thanks in advance Regards Carlos Alario _________________________________________________________________ Prueba los prototipos de los Ășltimos en MSN Motor http://motor.es.msn.com/
