You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Emmanuel Lecharny <el...@gmail.com> on 2011/12/22 16:30:03 UTC

Moving txns boundaries to CoreSession : may be not the best solution

Hi,

I'm facing some interesting issue : while trying to add txns to the Bind 
operation, I realized that we don't have such a method in CoreSession : 
it's only present in the OperationManager class.

At this point, I do think that tcns should be handled at this level, not 
at the CoreSession level (anyway, there is a one to one relation between 
CoreSession and OperationManager).

I'll let you know what it heads to...

-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com


Re: Moving txns boundaries to CoreSession : may be not the best solution

Posted by Selcuk AYA <ay...@gmail.com>.
On Fri, Dec 23, 2011 at 8:52 AM, Selcuk AYA <ay...@gmail.com> wrote:
> On Thu, Dec 22, 2011 at 5:30 PM, Emmanuel Lecharny <el...@gmail.com> wrote:
>> Hi,
>>
>> I'm facing some interesting issue : while trying to add txns to the Bind
>> operation, I realized that we don't have such a method in CoreSession : it's
>> only present in the OperationManager class.
>>
>> At this point, I do think that tcns should be handled at this level, not at
>> the CoreSession level (anyway, there is a one to one relation between
>> CoreSession and OperationManager).
>
> It is not essential to put the txn boundaries to CoreSession. You can
> definitely put them to OperationManager. The only reason I suggested
> CoreSession was there are may tests which call CoreSession interface
> directly to execute operations. If you do not put the boudaries to
> CoreSession, you will need to put txn boundaries to every place that
> callss CoreSession directly.
>

Also if you put the boundaries to CoreSession, you can still put txn
boundaries to bind operation somewhere above CoreSession.

>>
>> I'll let you know what it heads to...
>>
>> --
>> Regards,
>> Cordialement,
>> Emmanuel Lécharny
>> www.iktek.com
>>
>
> regards
> Selcuk

Re: Moving txns boundaries to CoreSession : may be not the best solution

Posted by Selcuk AYA <ay...@gmail.com>.
On Thu, Dec 22, 2011 at 5:30 PM, Emmanuel Lecharny <el...@gmail.com> wrote:
> Hi,
>
> I'm facing some interesting issue : while trying to add txns to the Bind
> operation, I realized that we don't have such a method in CoreSession : it's
> only present in the OperationManager class.
>
> At this point, I do think that tcns should be handled at this level, not at
> the CoreSession level (anyway, there is a one to one relation between
> CoreSession and OperationManager).

It is not essential to put the txn boundaries to CoreSession. You can
definitely put them to OperationManager. The only reason I suggested
CoreSession was there are may tests which call CoreSession interface
directly to execute operations. If you do not put the boudaries to
CoreSession, you will need to put txn boundaries to every place that
callss CoreSession directly.

>
> I'll let you know what it heads to...
>
> --
> Regards,
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>

regards
Selcuk