with the trunk (rev 1204219), you can add this property: openejb.autocreate.jta-datasource-from-non-jta-one=false
I made it work locally. - Romain 2011/11/20 Romain Manni-Bucau <[email protected]> > this is effectively a bug due to the way hibernate works (for hibernate > the em is a JTA one if non jta datasource is set but not jta datasource > otherwise it is a non JTA em...the code you sent works perfectly with > openjpa). > > i'll commit a fix soon > > - Romain > > > > 2011/11/20 Romain Manni-Bucau <[email protected]> > >> Hi, >> >> Can you try to not define a jta datasource but only the non jta one >> please? >> >> If it doesnt work share an example, i'll have a look this evening. >> >> - Romain >> >> Le 20 nov. 2011 11:46, "og0815" <[email protected]> a écrit : >> >> Hi, >>> >>> here are the definitions. >>> o.put("pu.hibernate.show_sql", "false"); >>> o.put("pu.hibernate.hbm2ddl.auto", "create-drop"); >>> o.put("pu.hibernate.jdbc.batch_size", "0"); >>> o.put("ds", "new://Resource?type=DataSource"); >>> o.put("ds.JdbcDriver", "org.hsqldb.jdbcDriver"); >>> o.put("ds.JdbcUrl", "jdbc:hsqldb:mem:ds"); >>> o.put("dsu", "new://Resource?type=DataSource"); >>> o.put("dsu.JdbcDriver", "org.hsqldb.jdbcDriver"); >>> o.put("dsu.JdbcUrl", "jdbc:hsqldb:mem:ds"); >>> o.put("dsu.JtaManaged", "false"); >>> >>> I can supply a maven project to demonstrate. >>> >>> Olli >>> >>> >>> -- >>> View this message in context: >>> http://openejb.979440.n4.nabble.com/RESOURCE-LOCAL-and-TransactionManagementType-BEAN-tp4084074p4088375.html >>> Sent from the OpenEJB User mailing list archive at Nabble.com. >>> >> >
