In reply to Subhra Bera:
You can, you just need to make sure that the set() comes before the get(). You don’t want to be doing a lot of communication this way; string based look-ups are expensive.
A better mechanism might be the uvm_event_pool, which could be a member of a shared configuration object.