You use a JTA datasource and therefore you need to deifne a jta-datasource
in your persistence.xml. If you want to do it in the app you can using
either vendor specific config file like resources.xml for tomee (you can
put it in WEB-INF) or just use @DataSourceDefinition which is the EE way to
define a datasource in the application.


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-03-20 14:51 GMT+01:00 syadav <b.srisai...@gmail.com>:

> I did not understand. Please could you explain in detail. I only understood
> that I need to use @DataSourceDefinition annotation.
>
> Please explain me in detail if possible with example.
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Camel-CXF-in-tomee-tp4681184p4681340.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to