tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Resource-link to global resource
Date Mon, 02 May 2016 11:18:15 GMT
You can define a datasource in tomee.xml and add aliases="jdbc/puName,..."
attributr on Resource tag to say the datasource also matches some other
names.
Le 2 mai 2016 13:16, "tonywestonuk" <tonyw@totspics.com> a écrit :

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message