throw new RuntimeException("This service can only be called with Stateful proxy store !");
}
// Compute key and get proxy information
//
AbstractStatefulProxyStore statefulProxyStore = (AbstractStatefulProxyStore) proxyStore;
Class<?> pojoClass = null;
try
{
pojoClass = Thread.currentThread().getContextClassLoader().loadClass(className);
}
catch(Exception ex)
{
throw new RuntimeException("Unknown class " + className, ex);
}
String key = statefulProxyStore.computeKey(pojoClass, id, propertyName);
Map<String, Serializable> proxyInformations = statefulProxyStore.get(key);
// Update proxyInformations
//
if (proxyInformations == null)
{
proxyInformations = new HashMap<String, Serializable>();
}
proxyInformations.put(ILightEntity.INITIALISED, true);
// Store proxy infos
//
statefulProxyStore.store(key, proxyInformations);
}