Hello,

Our production Code injects the TransactionManager like this:

@Resource(mappedName="java:/TransactionManager")
TransactionManager txManager;

This is the default binding in JBoss. Testing with openejb fails, below is
the relevant stacktrace ... 
My question is now, if there is any possiblity to configure openejb to bind
TransactionManger to "java:/TransactionManager"

Apache OpenEJB 3.0    build: 20080408-04:13
http://openejb.apache.org/
INFO - openejb.home = D:\projekte\HEAD\ed02\sys\berechtigung\anwender-impl
INFO - openejb.base = D:\projekte\HEAD\ed02\sys\berechtigung\anwender-impl
INFO - Configuring Service(id=Default Security Service,
type=SecurityService, provider-id=Default Security Service)
INFO - Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Configuring Service(id=java:/operativDS, type=Resource,
provider-id=Default JDBC Database)
INFO - Configuring Service(id=java:/DefaultDS, type=Resource,
provider-id=Default JDBC Database)
INFO - Configuring Service(id=Default JDK 1.3 ProxyFactory,
type=ProxyFactory, provider-id=Default JDK 1.3 ProxyFactory)

...
WARN - Jar not loaded.
D:\projekte\HEAD\ed02\sys\berechtigung\anwender-impl\target\classes.  No
provider available for resource-ref 'null' of type
'javax.transaction.TransactionManager' for 'AnwenderHibernateJpaDAO'.
org.apache.openejb.OpenEJBException: No provider available for resource-ref
'null' of type 'javax.transaction.TransactionManager' for
'AnwenderHibernateJpaDAO'.
        at
org.apache.openejb.config.AutoConfig.autoCreateResource(AutoConfig.java:1292)
        at 
org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1285)
        at 
org.apache.openejb.config.AutoConfig.getResourceId(AutoConfig.java:1236)
-- 
View this message in context: 
http://www.nabble.com/TransactionManager-injection-tp19492820p19492820.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to