Hi

Just wanted to give a heads-up that I'm currently working on TOMEE-1547.
The idea here is that it should be possible to create a resource in an
application's resources.xml and have the actual class for the resource
defined within the application itself. This seems to work for WARs but not
EARs.

Currently, the code
in org.apache.openejb.assembler.classic.Assembler.createResource(ResourceInfo)
uses Thread.currentThread().getContextClassLoader() which is the TomEE
system classloader.

I'm currently building on Romain's lazy resource loader to make this happen
slightly later and pick up the correct classpath. I'm also looking at
calling @PostConstruct and @PreDestroy methods on resources to allow any
custom logic during resource creation or removal..

If you have any issues or queries, please let me know.
Thanks

Jon

Reply via email to