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 11:08 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 515
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 16:19 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4087
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: Tue Oct 21 10:32:51 GMT 2014

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

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