View Single Post
  #1 (permalink)  
Old 10-23-2004
robert robert is offline
Registered User
 
 
Join Date: Oct 2004
Posts: 10
passing a context to a locator

Hello!

We need to implement transactional behaviour into an Ice based architecture. The Ice context mechanism seems to be a fine solution to pass the transaction context to all servant calls. However, we are also enthusiastic about locators and started to use them. But there seems to be a gap. Within the locator we need to select records from our database in order to invoke the requested servants. These selects must be done in the appropriate database transaction contexts. But we can't pass the transaction handle from the client to the locator residing on the server! Though the locator receives a context (via the Ice::Current parameter), there seems to be no way to fill that context on the client side.

Looks like locators can't be used when transactions are required, or am I missing something? Or is there a better recommendation to realize transactions within an Ice based architecture?

Thanks!

Robert.
Reply With Quote