views:

447

answers:

1

I am building a tool for out-of-container EJB testing. I have managed to run Hibernate's EntityManager in it successfully. Now I want to integrate it with JTA to enable strict control of transactions.

The problem I am faced with is the following: Hibernate seems to require JNDI to work correctly with JBossTS (JBoss's JTA implementation). But I can't figure out a way how I can register UserTransactions in JNDI.

What am I missing here? How can I configure JBossTS to work with Hibernate out of JBoss? Is there a tutorial on this?

A: 

Maybe you can try using another JTA implementation for use outside the EJB container? Spring has a pretty easy to use and good one.

Peter D
Thanx, I got it working with JOTM
artemb