this sample shows that it works well :) isnt the issue that you just didnt define "java:jboss/datasources/CouponDS" datasource (which BTW should rather be named datasources/CouponDS)?
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> 2016-11-27 22:30 GMT+01:00 wus <[email protected]>: > thanks for your reply. > > i have pushed my code in github(https://github.com/wus/jaxrs-jpa-tomee). > it > is a test redemption project with jaxrs, jpa in tomee. you can call to > redemption(post) endpoint with the following curl cmd: > > curl -i -H "content-type: application/json" -d '{"cardNr": "123454", > "coupon": "test5"}' "http://localhost:8080/jaxrs-jpa/coupon/redemption" > > > the changes has not been added into the datable. it looks like, no CDI > Container managed transaction has been started. > > best regards, > > shan > > > > > -- > View this message in context: http://tomee-openejb.979440. > n4.nabble.com/TomEE-7-0-1-Does-openejb-core-hibernate- > have-the-same-usage-as-openejb-core-eclipselink-in- > tomee-emb-tp4680402p4680647.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
