Impetus / kundera

A JPA 2.1 compliant Polyglot Object-Datastore Mapping Library for NoSQL Datastores.Please subscribe to:
http://groups.google.com/group/kundera-discuss/subscribe
Apache License 2.0
903 stars 233 forks source link

Jboss EAP 7 #883

Open megalexis opened 8 years ago

megalexis commented 8 years ago

Unable to use EJB resources with resteasy using container managed transactions. Is there any documentation or example project on how to properly configure this?

my persistence.xml: `<?xml version="1.0" encoding="UTF-8"?>

com.impetus.kundera.KunderaPersistence com.test.services.velocity.profile.domain.Column com.test.services.velocity.profile.domain.Data com.test.services.velocity.profile.domain.Profile com.test.services.velocity.profile.domain.View true ` error: `01:34:40,932 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => [ "jboss.naming.context.java.comp.\"velocityProfileServiceEAR-0.0.1-SNAPSHOT\".\"velocityProfileServiceEJB-0.0.1-SNAPSHOT\".ProfileResourceBean.env.velocityProfileServiceJPA is missing [jboss.persistenceunit.\"velocityProfileServiceEAR-0.0.1-SNAPSHOT.ear#velocityProfileServiceJPA\"]", "jboss.naming.context.java.comp.\"velocityProfileServiceEAR-0.0.1-SNAPSHOT\".\"velocityProfileServiceEJB-0.0.1-SNAPSHOT\".DataResourceBean.env.velocityProfileServiceJPA is missing [jboss.persistenceunit.\"velocityProfileServiceEAR-0.0.1-SNAPSHOT.ear#velocityProfileServiceJPA\"]" ]}` Seems to almost work by commenting out: `` and annotating the beans with: `@TransactionManagement(TransactionManagementType.BEAN)` but fails with exception: `jboss error Please bind [com.impetus.kundera.persistence.jta.KunderaJTAUserTransaction] for :{java:comp/UserTransaction} lookupclass org.jboss.tm.usertx.client.ServerVMClientUserTransaction ` I have not figured out a way to successfully bind this on Jboss EAP 7
devender-yadav commented 8 years ago

@megalexis

Have you seen Kundera with JBoss wiki.

-Dev

megalexis commented 8 years ago

Yes looked at this but we want to use pure EJBs and container-managed transactions with resteasy. We have to use the JEE stack. A spring app context is not an option for us. Looks like some progress was made https://github.com/impetus-opensource/Kundera/issues/344 but it was not documented.