Java.util as in
https://github.com/apache/tomee/blob/master/container/openejb-core/src/test/java/org/apache/openejb/resource/PropertiesInjectionTest.java
Do you have the resource creation log? If not the file is likely not found,
misplaced or not parsed properly.
Le mar. 27 nov. 2018 22:35,
Oh duh, I should have seen that coming. Well, now that I'm attempting to
inject TomeeConfiguration in a managed class (annotated @Stateless), I'm
getting this when I attempt to provide that @Resource no matter what
managed class I put it in:
27-Nov-2018 12:57:09.469 SEVERE [localhost-startStop-1]
@Resource(name="config")
private TomeeConfiguration config;
In a managed class to inject it. If you do a new tomee does nothing.
Le mar. 27 nov. 2018 04:48, Kean Erickson a
écrit :
> Thank you, that sounds like it'll work. I'm finding that getProperties() on
> my configuration file returns
Thank you, that sounds like it'll work. I'm finding that getProperties() on
my configuration file returns null though, I'm wondering if I'm using the
right Properties class (java.util.Properties)?
1. Here's my WEB-INF/resources.xml class (I removed the package name)
Hi
Yes - you can also define resources at the application level, by defining
resources in WEB-INF/resources.xml in your .war file. The syntax is pretty
much the same as tomee.xml, but with as the top level tag as
opposed to . The will use the application classpath, eliminating the
requirement to
Guess you want to read
http://tomee.apache.org/admin/configuration/index.html - doc is more
complete and up to date.
Le dim. 25 nov. 2018 23:44, Kean Erickson a
écrit :
> The docs mention a way of obtaining properties in code from a resource in
> Tomee.xml, under "Custom resources"
>
>
The docs mention a way of obtaining properties in code from a resource in
Tomee.xml, under "Custom resources"
http://tomee.apache.org/application-resources.html
..such that I could denote a class-name on the resource pointing to a
configuration class (which would be pretty boilerplate, judging