• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in JAXR: FederatedConnection

 
Asit Baran
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We create FederatedConnection like this

Set connections = HashSet();
Connection con1 = factory1.createConnection();
connections.add(con1);
Connection con2 = factory2.createConnection();
connections.add(con2);
FederatedConnection federatedCon = factory3.createFederatedConnection( connections);

Now,Once you have a FederatedConnection, search operations will be executed against all of the registries represented by the FederatedConnection—you'll be searching multiple registries at once.


Now my doubt is, which registries this connection will be searching for? (Factory1+factory2) or (factory1+factory2+factory3)
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Now my doubt is, which registries this connection will be searching for? (Factory1+factory2) or (factory1+factory2+factory3)

Neither of the above suggestions are correct. The federated connection will search the registries for the connections provided in the set when it is created, that is con1 + con2.
Best wishes!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic