Hi

Have you tried the MySQL config on this page:
http://tomee.apache.org/common-datasource-configurations.html

You'll need to add the mysql JDBC jar to your lib/ folder on your TomEE
docker image - I imagine you'll want to create your own Dockerfile starting
with: "FROM tomee/<version>", so you can add the files and config you wish
to use.

Let me know if that doesn't answer your question, and I'll try and give a
fuller example.

Regards

Jon

On Mon, Sep 4, 2017 at 11:33 AM, mauro2java2011 <[email protected]>
wrote:

> Hi all.
> I found this  https://docs.docker.com/samples/library/tomee/
> <https://docs.docker.com/samples/library/tomee/>
>
> Image of tomee .
>
> Now i would use this image ofbtomee with a image of mysql.
>
> I know is possible linking the 2 container.
>
> But my question is :
>
> how to  configure the datasouce  into tomee.xml or resource.xml  using the
> db setted into mysql container?
>
> Ho i can alter the tomee.xml that came from imahpge above for set the
> datasource mysql?
>
> Please do you have a exampke of use tomee and mysql and con figure the
> datasource using docker?
>
> Tank you in Advance
> MAURO
>
>
>
>
>
> --
> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-
> f979441.html
>

Reply via email to