Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] eContentAdapter doesn't catch changes on new objects ?
[CDO] eContentAdapter doesn't catch changes on new objects ? [message #638211] Wed, 10 November 2010 14:06 Go to next message
Guillaume P. is currently offline Guillaume P.Friend
Messages: 69
Registered: June 2010
Location: Toulouse, France
Member
Hi !

I have currently a CDO model which I am listening via a EContentAdapter on the root object (putting an adapter on each used object is too heavy, because I'm often loading and releasing lot of objects at same time).
I receive correctly remote changes on objects which were present when I added the adapter, but I don't receive any change on objects created after the adapter addition.

Is it a known bug about that ? Or is there something I could be doing wrong ?

Regards,

Guillaume

[Updated on: Wed, 10 November 2010 14:41]

Report message to a moderator

Re: [CDO] eContentAdapter doesn't catch changes on new objects ? [message #640204 is a reply to message #638211] Fri, 19 November 2010 15:06 Go to previous messageGo to next message
Guillaume P. is currently offline Guillaume P.Friend
Messages: 69
Registered: June 2010
Location: Toulouse, France
Member
I still have the problem and it is embarrassing... Sad
Does someone know if this is a bug ? Or if I have to abandon the use of the EContentAdapter class ?
Re: [CDO] eContentAdapter doesn't catch changes on new objects ? [message #640222 is a reply to message #638211] Fri, 19 November 2010 16:26 Go to previous messageGo to next message
Pascal Lehmann is currently offline Pascal LehmannFriend
Messages: 1
Registered: November 2010
Junior Member
Hello Guillaume

do you call super.notifyChanged(notification) in the overwritten notifyChanged method of your EContentAdapter? Or can you give us some ExampleCode?

Greets
Pascal
Re: [CDO] eContentAdapter doesn't catch changes on new objects ? [message #640224 is a reply to message #640204] Fri, 19 November 2010 15:51 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Guillaume,

Your problem description is very short. Are you talking about objects attach locally or remotely? What session and view/transaction options have you set? Maybe you can post a small example snippet?

Generally the discussion about content adapters and CDO are not finished, yet. There is bug 247141: Create a lazy self-attaching adapter for CDOObject, https://bugs.eclipse.org/bugs/show_bug.cgi?id=247141

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 19.11.2010 16:06, schrieb Guillaume P.:
> I still have the problem and it is embarrassing... :( Does someone know if this is a bug ? Or if I have to abandon the use of the EContentAdapter class ?


icon14.gif  Re: [CDO] eContentAdapter doesn't catch changes on new objects ? [message #641177 is a reply to message #640222] Wed, 24 November 2010 13:35 Go to previous message
Guillaume P. is currently offline Guillaume P.Friend
Messages: 69
Registered: June 2010
Location: Toulouse, France
Member
You're right Pascal ! I had forgotten to call super.notifyChanged(...) in my method... It's now working perfectly.

Thank you very much ! Smile

For Eike: the problem was occuring in both cases (objects added locally or remotely), and I am using the following configuration (as I still unable to make working the offline mode):

// create and configure connector
IManagedContainer container = ContainerUtil.createContainer();
container.activate();
Net4jUtil.prepareContainer(container);
TCPUtil.prepareContainer(container);
CDONet4jServerUtil.prepareContainer(container);
connector = TCPUtil.getConnector(container, host);

// configure session
CDOSessionConfiguration configuration = CDONet4jUtil.createSessionConfiguration();
configuration.setConnector(connector);
configuration.setRepositoryName(repoName);

// Open CDO session
session = configuration.openSession();
		session.options().getProtocol().setTimeout(IConnector.NO_CHANNEL_TIMEOUT);

// open and configure transaction
transaction = session.openTransaction();
		transaction.options().addChangeSubscriptionPolicy(CDOAdapterPolicy.ALL);
Previous Topic:Editor and http uris
Next Topic:Invalid type is set when XML request is generated from web service client
Goto Forum:
  


Current Time: Thu Apr 25 11:22:11 GMT 2024

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

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

Back to the top