Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

need help understanding why client is not updating

Avatar

Avatar
Validate 1
Level 1
Steve_Pruitt
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Steve_Pruitt
Level 1

Likes

0 likes

Total Posts

17 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Steve_Pruitt
Level 1

13-08-2010

I have two scenarios.  One works one and one does not and I cannot determine the underlying reason.  I open two clients make a change in one.  The second client is updated nicely with first scenario and doesn't update with second scenario.

This works:

[Managed]

Document

     var uuid:String;

     var parts:ArrayCollection;

[Managed]

DocumentPart

     var uuid:String;

     var value:String

data-management-config.xml:

<destination id="com.hp.ds.document.DocumentImpl">
   <metadata>
      <identity property="uuid"/>
      <one-to-many property="parts" destination="com.hp.ds.document.DocumentPart"/>
   </metadata>

:

<destination id="com.hp.ds.document.DocumentPart">
   <metadata>
      <identity property="uuid"/>
   </metadata>

When I make a change to a DocumentPart, the other client is updated successfully.  When I set a breakpoint in the value setter for DocumentPart.  I get three hits.  The first hit creates a new DocumentPart and the value is the previous value.  The second hit creates a new DocumentPart and the value is the new value.  The third hit is on my original DocumentPart and it contains the new value and the client is updated correctly.

This does not work:

[Managed]

Document

     var uuid:String;

     var chapter:DocumentChapter;

[Managed]

DocumentChapter

     var uuid:String;

     var parts:ArrayCollection;

[Managed]

DocumentPart

     var uuid:String;

     var value:String

data-management-config.xml:

<destination id="com.hp.ds.document.Document">
   <metadata>
      <identity property="uuid"/>
      <one-to-one property="parts" destination="com.hp.ds.document.DocumentChapter"/>
   </metadata>

:

<destination id="com.hp.ds.document.DocumentChapter">
   <metadata>
      <identity property="uuid"/>
      <one-to-many property="parts" destination="com.hp.ds.document.DocumentPart"/>
   </metadata>

:

<destination id="com.hp.ds.document.DocumentPart">
   <metadata>
      <identity property="uuid"/>
   </metadata>

When I make a change to a DocumentPart, the other client is not updated.  When I set a breakpoint in the value setter for DocumentPart.  I get only two hits.  The first hit creates a new DocumentPart and the value is the previous value.  The second hit creates a new DocumentPart and the value is the new value.  I never see the third hit, as above, and so my original DocumentPart is not updated.

Accepted Solutions (0)

Answers (0)