tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tonywestonuk <to...@totspics.com>
Subject Re: Resource-link to global resource
Date Mon, 02 May 2016 10:42:24 GMT
Ok.... This is my use case.

I have a microservice style system, each microservice is hosted in a
different context, rather than the more mainstream different process.  Each
'microservice' needs access to its own database, which is provided by the
application server.

I tried creating a context.xml in the conf directory, containing all
database information. However this was just duplicated for each context. 
and my database didn't like haveing so many connections.  

Whats needed is a set of database resources, maintained by tomee, which each
app can pick one to be a default.... that is presented when you inject a
Datasource resource, or when refered to using persistance.xml.




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Resource-link-to-global-resource-tp4678304p4678309.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message