|
Re: EMF and Virgo [message #1053568 is a reply to message #1052723] |
Mon, 06 May 2013 14:45 |
GianMaria Romanato Messages: 72 Registered: July 2009 |
Member |
|
|
Hi,
We are using EMF in virgo.
If I remember correctly, I had the feeling that EMF supports two deployment scenarios:
- as OSGi bundles in Eclipse
- as regular JARs in a JavaSE application
Deployment in an OSGi environment other than Eclipse does not work because activators assume that the container is Eclipse.
To use EMF in Virgo we included the EMF JARs as Bundle-Classpath in a bundle of ours which exports the relevant packages for other bundles.
Attention points:
- Emf uses a global Package Registry: EPackageRegistryImpl.createGlobalRegistry()
- EPackageRegistry.getEPackage() seems to rely on the ThreadContext Classloader for certain lookup operations. You may have to change the thread context class loader before invoking that method.
GianMaria.
Developing for Virgo using PDE: http://bit.ly/1w0tTit
Global JNDI in Virgo: http://bit.ly/1to42mn
Hyperic to monitor Virgo: http://bit.ly/W1Fst9
Profile Virgo with JProfiler http://bit.ly/1FBLGCw
|
|
|
Powered by
FUDForum. Page generated in 0.02813 seconds