resources.xml is used from META-INF in jars (alone) not in wars, as resources.json is Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau
2014/1/9 Kay Wrobel <[email protected]>: > Interesting. Can you send me a sample of sucha file? Also, any reason why a > regular resources.xml doesn't work? > > Thanks, > > Kay > > > > On 01/09/2014 05:13 AM, Milo Jaden wrote: >> >> I have a resources.json (same thing as resources.xml) located at >> src/resources/META-INF/resources.json in my maven project. My project is an >> EJB jar and when running OpenEJB it picks up the resources.json fine. >> >> >> On 9 Jan 2014, at 06:07, Romain Manni-Bucau <[email protected]> wrote: >> >>> Hi >>> >>> No but we can think to a resources-fragment.xml. the main issue it has is >>> it add deployment data to lib which are generally not aware of it. The >>> idea >>> is even the opposite ans uqe ${xxx} for resources values and set it as >>> system properties >>> Le 9 janv. 2014 04:19, "Kay Wrobel" <[email protected]> a écrit : >>> >>>> Question: Is it possible to put the resources.xml file that defines a >>>> data >>>> source inside an EJB jar instead of putting it inside a WAR under >>>> WEB-INF??? The reason why I'm asking is that it would be very convenient >>>> if >>>> I could put the data source definition inside the EJB that matches the >>>> remote database. >>>> >>>> The documentation just mentions the WEB-INF location or defining the >>>> data >>>> source directly on the server inside tomee.xml. >>>> >>>> Thanks. >>>> >>>> Kay >>>> >
