on 08-31-2011 2:46 PM
Hello Experts,
as the function in the MDM Java API for the MetadataManager class called refreshInstance() is depricated, I ask myself what to use instead?
I have the need to reload the meta data automatically without restarting the API on the WebAS because attributes and values have been added to the repository. I use the named function to reload the meta data now and it works perfect.
But since the method is deprecated and guess it will be removed from the API some day I do not know how to reload the data.
Or will the meta data be refreshed based on update events that the manager registered to?
Can anyone enlighten me on this topic?
Many thanks in advance!
Regards,
Tobi
Hi,
Refer - MDM JAVA API guide for more information - http://help.sap.com/saphelp_mdm550/helpdata/en/47/db463ae4282972e10000000a42189b/frameset.htm
Keeping Metadata Up-to-Date
The metadata information stored in the Metadata Manager cache can become out-of-date if somebody makes changes (repository schema, security information or attributes data) using the MDM Console, MDM Data Manager, or API.
To keep the metadata up-to-date, the implementation of the MetadataManager class is supplied with the Event Dispatcher which can listen for all changes on the MDM server and send notifications when the metadata is changed.
When this notification is received, the manager removes the relevant portion of metadata from the cache so that in the next request, the information is retrieved from the server and the cache is renewed.
To enable the Event Dispatcher, call the following registration methods:
● registerRepositoryNotifications(RepositorySessionContext ctx, String serverPassword, String repositoryPassword)
This method subscribes to all server and repository events (all changes that can be done through the MDM Console). It is important for updating the repository schema cache.
● registerDataNotifications(UserSessionContext ctx, String repositoryPassword)
This method subscribes to all data events (all changes that can be done through the MDM Data Manager). It is important for updating the taxonomy attributes cache.
Thanks,
Shambhu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.