Re: Performing Java EE resource injections dynamically

2016-03-30 Thread Romain Manni-Bucau
Do you use a custome classloader? If so try to override equals/hascode to simulate webapp one Le 31 mars 2016 06:43, "Dimitri" a écrit : > Hi, > > In Tomee 7.0.0-M3, I've tried to use JavaeeInstanceManager and > DefaultInstanceManager to instantiate dynamically loaded class.

Re: Performing Java EE resource injections dynamically

2016-03-30 Thread Dimitri
Hi, In Tomee 7.0.0-M3, I've tried to use JavaeeInstanceManager and DefaultInstanceManager to instantiate dynamically loaded class. (To obtain the first, I used InstanceManagerFactory; for the second I've copied the code from your recent commit and used ContainerServlet to obtain parent

Re: Fwd: [jira] [Resolved] (TOMEE-1762) Add a timeout to DataSource shutdown

2016-03-30 Thread Romain Manni-Bucau
well idea was to not have it by default (in particular no medium duration timeout which can break apps flushing at that moment) so wouldn't break anything since a choice. We can go further and activate it by resource with another virtual property if desired but datasources are not particular

Re: Performing Java EE resource injections dynamically

2016-03-30 Thread Romain Manni-Bucau
True, we are based on a static analysis at startup so we likely miss JSP - means if you use it somewhere else it should work. Fixed in https://issues.apache.org/jira/browse/TOMEE-1764 Romain Manni-Bucau @rmannibucau | Blog | Github | LinkedIn | Tomitriber 2016-03-30 1:52 GMT+02:00 Dimitri