Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Create 1000 XMI model from one ecore using multi threading
Create 1000 XMI model from one ecore using multi threading [message #677028] Tue, 07 June 2011 07:08 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 498
Registered: June 2011
Senior Member
Hi,

I have ecore model and i want to create 1000 XMI models using threading.
I am using
EOperation.Internal.InvocationDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
new OCLInvocationDelegateFactory.Global());
EStructuralFeature.Internal.SettingDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI, new OCLSettingDelegateFactory.Global());

When i create 1000 model in one thread then every thing works fine and it calculates every derived property but when i use multiple threads for less execution time it gives exception in delegation and says concurrent access.

Is the delegation being used is thread safe?

what is right procedure to make it work in multi threaded environment?.

Please help me
Re: Create 1000 XMI model from one ecore using multi threading [message #687153 is a reply to message #677028] Tue, 07 June 2011 12:19 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4003
Registered: July 2009
Senior Member
See reply on OCL newgroup.

Regards

Ed Willink

On 07/06/2011 12:08, forums-noreply@eclipse.org wrote:
> Hi,
>
> I have ecore model and i want to create 1000 XMI models using threading.
> I am using
> EOperation.Internal.InvocationDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
> new OCLInvocationDelegateFactory.Global());
> EStructuralFeature.Internal.SettingDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
> new OCLSettingDelegateFactory.Global());
>
> When i create 1000 model in one thread then every thing works fine and
> it calculates every derived property but when i use multiple threads
> for less execution time it gives exception in delegation and says
> concurrent access.
>
> Is the delegation being used is thread safe?
>
> what is right procedure to make it work in multi threaded environment?.
>
> Please help me
Previous Topic:(no subject)
Next Topic:(no subject)
Goto Forum:
  


Current Time: Wed Jul 23 10:17:01 EDT 2014

Powered by FUDForum. Page generated in 0.02635 seconds