Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] No passive update mode and CDO change subscription policy
[CDO] No passive update mode and CDO change subscription policy [message #559275] Thu, 16 September 2010 08:56 Go to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 185
Registered: May 2010
Senior Member

Hy everyone !

I'm using CDO in an application where elements cannot be refreshed automatically (for several reasons).

First of all, as I'm working with Legacy Objects, I activate the legacyMode :
CDOUtil.setLegacyModeDefault(true);

Then I open a session with no passive update :
session.options().setPassiveUpdateEnabled(false);

Then I open a transaction with a CDO change subscription policy :
transaction.options().addChangeSubscriptionPolicy(CDOAdapter Policy.CDO);

I finally add an EContentAdapter (implementing CDOAdapter) to all CDOObjects I want to listen to.

According to the documentation, this should work.

The fact is that my adapters are never notified of any change. If I enable the PassiveUpdate, they are correctly notified.

Is this a bug or am I doing something wrong ?

Alex
Re: [CDO] No passive update mode and CDO change subscription policy [message #559286 is a reply to message #559275] Thu, 16 September 2010 09:34 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010704090204000109080307
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Alex,

Comments below...

Cheers
/Eike
Contact: http://www.esc-net.de Blogger <http://thegordian.blogspot.com>Twitter <http://twitter.com/eikestepper>Linkedin <http://de.linkedin.com/in/eikestepper>Xing <http://www.xing.com/profile/Eike_Stepper>
Article: What exactly is inside that p2 repository? < http://thegordian.blogspot.com/2010/05/what-exactly-is-insid e-that-p2.html>

I'm speaking at Eclipse Summit Europe 2010 <http://www.eclipsesummit.org/>



Am 16.09.2010 10:56, schrieb Alex:
> Hy everyone !
> I'm using CDO in an application where elements cannot be refreshed automatically (for several reasons).
> First of all, as I'm working with Legacy Objects, I activate the legacyMode : CDOUtil.setLegacyModeDefault(true);
>
> Then I open a session with no passive update : session.options().setPassiveUpdateEnabled(false);
With this you instruct the server to not send any CommitNotificationRequests under any circumstances, whether change subscription policies exist or not.

>
> Then I open a transaction with a CDO change subscription policy : transaction.options().addChangeSubscriptionPolicy(CDOAdapter Policy.CDO);
This means to the server: If (and only if) passive updates are enabled, then send not only IDs of changed objects but also the whole change deltas, so that EMF adapters can be fed with them.

>
> I finally add an EContentAdapter (implementing CDOAdapter) to all CDOObjects I want to listen to.
EContentAdaptersounds like a bad idea because it recursively attaches itself to all the contents, thereby loads all objects.

>
> According to the documentation, this should work.
Can you point me to this documentation? Perhaps it's outdated...

I do remember that former versions of CDO allowed for selective deltas even if passive updates were disabled. That used to lead to inconsistent client models because some objects reflected the new state, others not.

> The fact is that my adapters are never notified of any change. If I enable the PassiveUpdate, they are correctly notified.
> Is this a bug or am I doing something wrong ?
>
> Alex

--------------010704090204000109080307
Content-Type: multipart/related;
boundary="------------020808090806080104080506"


--------------020808090806080104080506
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Alex,<br>
<br>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
Comments below...<br>
<br>
<!--WISESTAMP_SIG_37140_START--><span style="color: black;">
<div dir="ltr">
<div>Cheers<br>
/Eike<br>
</div>
<div style="padding: 5px 0pt; font-family: arial,sans-serif;
font-size: 13.3px;"><span style="color: gray;">Contact: <a
href="http://www.esc-net.de">http://www.esc-net.de</a></span>
<a href="http://thegordian.blogspot.com" style="padding: 0pt
2px; color: blue; font-size: 10pt;" _service=""><img
src="cid:part1.00040201.03080504@esc-net.de" alt="Blogger"
style="vertical-align: middle; padding-bottom: 5px;"
border="0" height="16" width="16"></a><a
href="http://twitter.com/eikestepper" style="padding: 0pt
2px; color: blue; font-size: 10pt;" _service=""><img
src="cid:part2.08090600.06050604@esc-net.de" alt="Twitter"
style="vertical-align: middle; padding-bottom: 5px;"
border="0" height="16" width="16"></a><a
href="http://de.linkedin.com/in/eikestepper" style="padding:
0pt 2px; color: blue; font-size: 10pt;" _service=""><img
src="cid:part3.05060402.01030200@esc-net.de"
alt="Linkedin" style="vertical-align: middle;
padding-bottom: 5px;" border="0" height="16" width="16"></a><a
href="http://www.xing.com/profile/Eike_Stepper"
style="padding: 0pt 2px; color: blue; font-size: 10pt;"
_service=""><img
src="cid:part4.07050105.03000705@esc-net.de" alt="Xing"
style="vertical-align: middle; padding-bottom: 5px;"
border="0" height="16" width="16"></a></div>
<div style="color: gray; font-size: 13.3px; padding-bottom:
5px;">Article: <span style="color: blue; text-decoration:
underline;"><a
href=" http://thegordian.blogspot.com/2010/05/what-exactly-is-insid e-that-p2.html"
undefined="">What exactly is inside that p2 repository?</a></span></div>
<div><br>
<a href="http://www.eclipsesummit.org/"><img
src="cid:part5.02070807.01020404@esc-net.de" alt="I'm
speaking at Eclipse Summit Europe 2010" border="0"
height="100" width="100"></a>
<br>
<br>
</div>
</div>
</span><!--WISESTAMP_SIG_37140_END--><br>
<br>
Am 16.09.2010 10:56, schrieb Alex:
<blockquote cite="mid:i6sm4f$qoq$1@build.eclipse.org" type="cite">Hy
everyone ! <br>
I'm using CDO in an application where elements cannot be refreshed
automatically (for several reasons). <br>
First of all, as I'm working with Legacy Objects, I activate the
legacyMode : CDOUtil.setLegacyModeDefault(true);
<br>
<br>
Then I open a session with no passive update :
session.options().setPassiveUpdateEnabled(false);
<br>
</blockquote>
With this you instruct the server to not send any
CommitNotificationRequests under any circumstances, whether change
subscription policies exist or not.<br>
<br>
<blockquote cite="mid:i6sm4f$qoq$1@build.eclipse.org" type="cite">
<br>
Then I open a transaction with a CDO change subscription policy :
transaction.options().addChangeSubscriptionPolicy(CDOAdapter
Policy.CDO);
<br>
</blockquote>
This means to the server: If (and only if) passive updates are
enabled, then send not only IDs of changed objects but also the
whole change deltas, so that EMF adapters can be fed with them.<br>
<br>
<blockquote cite="mid:i6sm4f$qoq$1@build.eclipse.org" type="cite">
<br>
I finally add an EContentAdapter (implementing CDOAdapter) to all
CDOObjects I want to listen to.
<br>
</blockquote>
EContentAdaptersounds like a bad idea because it recursively
attaches itself to all the contents, thereby loads all objects.<br>
<br>
<blockquote cite="mid:i6sm4f$qoq$1@build.eclipse.org" type="cite">
<br>
According to the documentation, this should work. <br>
</blockquote>
Can you point me to this documentation? Perhaps it's outdated...<br>
<br>
I do remember that former versions of CDO allowed for selective
deltas even if passive updates were disabled. That used to lead to
inconsistent client models because some objects reflected the new
state, others not.<br>
<br>
<blockquote cite="mid:i6sm4f$qoq$1@build.eclipse.org" type="cite">The
fact is that my adapters are never notified of any change. If I
enable the PassiveUpdate, they are correctly notified. <br>
Is this a bug or am I doing something wrong ?
<br>
<br>
Alex </blockquote>
</body>
</html>

--------------020808090806080104080506
Content-Type: image/png;
name="blogger.png"
Content-Transfer-Encoding: base64
Content-ID: <part1.00040201.03080504@esc-net.de>
Content-Disposition: inline;
filename="blogger.png"

iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/I NwWK6QAAABl0
RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAADkUExURf9xEv9m AP////9lAP+Q
SP9kAP9jAP9fAP9nAf9vD//x5/9hAP/iz/9iAP9eAP/s4P9vEP9yEv9qAP9q B/+LRP+we/90
I/+RSP/z6/+jZv/y6P+8kP/59f5yE//awf/Ttv9hAf9nAv/17v+4if9sC/9o BP+bWP/r3v/k
0v+wfP+QRv/o2f9gAP+OQ/93HP/l0/+0gv/Rsv/9/P/j0P+pcP+0hf/dx//D m//+/v+td/9o
AP+NQv/Yvf+zgv/x6P/q2/9xG//p2f9pAP/s3//8+fxxE//ex/+AK/9oCP/j 0f/Uuv///4Xw
StcAAABMdFJOU/////////////////////////////////////////////// ////////////
/////////////////////////////////////////wCejeTMAAAAsklEQVR4 2kSP1w6DMBAE
7cMGQg0hvffee++d//+f2IaIeTlppNXtIo88UAjxEIlhjCUG5lwJQuwoulqh FuUGcWGSiTF7
bt40EEoXBKtyIPQS5PffFqyHlhCS2obTK5kDmJ8lXxgA0zsPXer0L3zSUVmI D9ip3SC+hKwQ
2CxCtXYYL25gu1S8bf4jib5fTM+MNE079jom/+KwJUojwnAVifcQ46jM4M23 BHmkEK53iPcT
YACE/Q4KzoVQVwAAAABJRU5ErkJggg==
--------------020808090806080104080506
Content-Type: image/png;
name="twitter.png"
Content-Transfer-Encoding: base64
Content-ID: <part2.08090600.06050604@esc-net.de>
Content-Disposition: inline;
filename="twitter.png"

iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/ AP+gvaeTAAAA
CXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAQAAAAEABcxq3DAAABxUlE QVQ4y4WTMW4U
QRBFX3X3zoy8FgZphTCYAEg4gAPEYbgBJEgEXIALkHMfAjIwItnAAfLK2JYB r3dmuj7BzI5m
2WBLqqzq//q/fxt9NTmrzo7MCIhgRpWSsaMSgEta5czcjYtWTKPxfALZXTEE 2wmAxLXD11VL
BZy2MAuJB/iuA3oAoJb4lUUCVkAGTM5t06gjATMjBiPFaFsADvx1MTFoBd/q zHkMeLcLgCEe
JqjbrCJ1IAkghGDz20Z/XEzMMMTnZTsSYANMAl7fq7YlZOBaUCCk4WowwyRA mBmL7CxcmwDu
rh+rzKU71YhQ/dnr8VbiaRF4MgmbAAZkxJU7lRk3Wby5W3FcJlbSICAjZjFS jJ42rSXWgoWL
fYPfLvaCMTVxJ0XoJTmQ/stF6GPABDhzcepi7uJ74yQDuXcDErjjGhkwNvHx xCjMOMkCg3eX
S85zyVEMtGt24GWVxvsM5yi3+nBV8/7iBmJv0gaZQMZhNL4cHXBYdDkY7HQL vD0oebVfQuud
a8FGHSAaP1vnpMmbHgDEECwafLq/x8fZlGfJKCVKiapvXLyoEsdl3JYwBMpd uW1YEjlz4aMh
AY+iURiU/Vf/B6EE4kjfs5YLAAAAAElFTkSuQmCC
--------------020808090806080104080506
Content-Type: image/png;
name="linkedin.png"
Content-Transfer-Encoding: base64
Content-ID: <part3.05060402.01030200@esc-net.de>
Content-Disposition: inline;
filename="linkedin.png"

iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/ AP+gvaeTAAAA
CXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAQAAAAEABcxq3DAAACGklE QVQ4y6WTO2sU
URTHf3dmdp0kTnZJzErSrPjKYqNY2GljodhoLRLB1sLCD2DrZxAsfCAE/AaC grY+SBQSFTSC
xizGzZ3MTiYz92UxY5KNYuOBP+eew/3/73lwxfWHT9yjuR8YL0CwyxygAAPo Cqr0ntFcvjBB
cH++x8WzJzm8v/EnWVdks0PEgNWO95/XePD4HZ4ADk6MAhD6Hs26/08yBjwr ODrZBK0JADyv
LP7GsX2Evse9xR5Lsvgr+XfsO7ctoKwj9AWh7wEQIFCF+3sFGjCmgiJwQFwY Yge3X3cZrwXM
r2SDg9tJ1rokaw1alRXI3NAO61w60AAHTkE7qtNu1PjSUywsb3L60AgjNcHz hZgXb39WApoA
C3FqsIGjMxYC8OZbxlQU0GmFTLdCznWireV0pobYSDKevuzilMZDg0wN/cxu XdrMLVqX53TT
cu3OJ87cmmdlrQBgemoYKTMwqhSI+4Z0QMBhjANgcTnj1UdJHGd8Xc0AmBit Ecu0moGGODH0
h7cF8tyidSmgjSWWG6AUWpkypw1xLwXA4z8tQINcN/T3moEWtLZbr0mZQV5s 55RFJuU8RHR1
1iWtIzQ8nxOtIVCw9D2lWbM06w4ZZ8wtrEJRcLw9TDMUyKRg7kOPSHQR0ZVZ lyRjMDkOOVAU
FfLS57viHRaJLsHM+THuPtuDUgLTW2U0X672t47rrw82vOu/z9w8xS+MkDzV Boy6+QAAAABJ
RU5ErkJggg==
--------------020808090806080104080506
Content-Type: image/png;
name="xing.png"
Content-Transfer-Encoding: base64
Content-ID: <part4.07050105.03000705@esc-net.de>
Content-Disposition: inline;
filename="xing.png"

iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAACXBIWXMAAAsT AAALEwEAmpwY
AAABsklEQVR42mP8//8/AymAEb+G1x9333hU9fffZy52ZTONrQQ0/P7z7sLd hJfvN7Mw80mL
ROkqTodqAIKvv379+fuXhZmZh50dpv7f49dLLt1LYWD4ryRZCETsrJIIDYdu 3y5fu16AizPE
0CTFzgoo8fPXoxPX/T9/v8DHbWCito6LXRHFDw/evnXpm3D39Ws1Eck9xVmy wqLP3/SevlXC
ysKtLtuoJFmMxdObL17ymzqN8S9LnZddua/VrUcWD149FRNwNFFby8oiiEXD itNnImfN5WTi
nBhu7Gvw5OLdiv+MQnqKU6WEI7AE6+vPnx17+68+fmGrJL0wRe/rl/jbL94r isfqKs1kZuJE
1/Dt16/27TtatmzjYeZcnuZpqnDi3J16FmZxYDhKCAViibiVp8+Ur1v39N0H X12DFRkJ33/u
O3LVk+E/i5xYqq7iNCwaXn769PLTZ0ZGBnFePjE+3j9/3155kPvk9XIudgV9 5XnCfI6Ek8a7
T4dO3vD4+++HlHC4kepywhr+/P0ITEIPXk5jZxXTVpgE1EY48X36euHs7fBv P+8CVespzYGH
FSOpyRsAAuDh4a3m5z0AAAAASUVORK5CYII=
--------------020808090806080104080506
Content-Type: image/gif;
name="100x100_speaking.gif"
Content-Transfer-Encoding: base64
Content-ID: <part5.02070807.01020404@esc-net.de>
Content-Disposition: inline;
filename="100x100_speaking.gif"

R0lGODlhZABkAOZ/APb3+VNYfigtUDRDchhWpwM6mkRXjThrsCdirVJ7u0p2 uExflWyGrQU0
asnX6aq31ImZUxRFoaOqOWaIwgRGlubr87bG4C44YMHDzmeGZYqMrtLRFuHi 5zpalGxskRZD
lVt/vdHZ6TRlqzlTiJiy1Wd7qExtrB00XDtfnH2SvyFeq0ZttQlTo9vi7lNt qTRfryVJlkVr
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NIW3NC33UR23IZfzTG53BHFEBYkDTVK3UVn3RhvwqaSVfMD3U isABcEDVYj3W
ZJ3VIgQra6XIXp2wGBAAZf3WY/wqWh0pWx0rMiDUa83WATBCdN3Xfv3XQVJc d53XknBDYgDY
iE1P18XFJmRAA3hN2JHb1okd2IstXzJAA1AN2Y0AABmkATyD1pU9KapDA5it 2fbA2ThkBGiy
2vMyQiLU2KSdoqbt1Sla25xt2y0427q924UQCAA7
--------------020808090806080104080506--

--------------010704090204000109080307--
Re: [CDO] No passive update mode and CDO change subscription policy [message #559288 is a reply to message #559286] Thu, 16 September 2010 09:46 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 185
Registered: May 2010
Senior Member

From the addChangeSubscriptionPolicy() documentation :

Note: It can be used with CDOSession.options().setPassiveUpdate(false). In this case, it will receive changes without having the objects changed.

This note describes exactly what I want to do. Do you have any suggestions for allowing my application to be notified of all changes made without applying them ?

I agree that it can lead to inconsistent client models, but I have no choice (actually the application is based on EMF Transactions, and passive updates raise exceptions because the objects were modified without transaction).
Re: [CDO] No passive update mode and CDO change subscription policy [message #559299 is a reply to message #559288] Thu, 16 September 2010 09:53 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5574
Registered: July 2009
Senior Member
Am 16.09.2010 11:46, schrieb alagarde:
> From the addChangeSubscriptionPolicy() documentation :
> Note: It can be used with CDOSession.options().setPassiveUpdate(false). In this case, it will receive changes without having the objects changed.
That's a doc bug ;-(

Can you please file a bugzilla so I can fix the docs?

>
> This note describes exactly what I want to do. Do you have any suggestions for allowing my application to be notified of all changes made without applying them ?
I recommend to open a second CDOSession (potentially on the same IConnector) and listen for CDOSessionInvalidationEvents on it. The CDOIDs in this event can be used in the CDOView of the other session.

> I agree that it can lead to inconsistent client models, but I have no choice (actually the application is based on EMF Transactions, and passive updates raise exceptions because the objects were modified without transaction).
I see no other way as the above one.
Re: [CDO] No passive update mode and CDO change subscription policy [message #559303 is a reply to message #559299] Thu, 16 September 2010 10:28 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 185
Registered: May 2010
Senior Member

Reading the doc made me think it was easier ;(

Thanks for the advice, I will try to use a second session.
I'll keep you in touch if anything goes wrong...

Alex

Re: [CDO] No passive update mode and CDO change subscription policy [message #559360 is a reply to message #559303] Thu, 16 September 2010 13:20 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 185
Registered: May 2010
Senior Member

Just to tell you that your idea works. I have still some issues, but related to EMF Transactions and not CDO.

Thanks again.
Alex
Re: [CDO] No passive update mode and CDO change subscription policy [message #638168 is a reply to message #559360] Wed, 10 November 2010 09:44 Go to previous message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 185
Registered: May 2010
Senior Member

bug opened : https://bugs.eclipse.org/bugs/show_bug.cgi?id=329777
Previous Topic:[CDO] Legacy mode : "Legacy object has been registered multiple times"
Next Topic:Ecore Model
Goto Forum:
  


Current Time: Sat Nov 29 02:52:05 GMT 2014

Powered by FUDForum. Page generated in 0.01870 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software