How can i do "get" at two different paths with same key

hi , i am having two instances of a file say A so A1 and A2 are two objects that are created. now i do set of a variable in a file say B for both the instances A1 and A2. i use uvm_config_db, do the set with same key, but to different paths, that correspond to the two instances A1 and A2. now the get is present in file A. mind it that there is only one file A, we only have its two instances A1 and A2. then how can i do get for both instances with this same key. is this scenerio possible?
thanks in advance.

In reply to tarugupt:

Did you mean class A, not file A.sv? And paths in UVM are relevant for uvm_component or uvm_sequence objects that have established parent/child relationships.