Hey Per,

Grab this new binary (updated today):
http://people.apache.org/~dblevins/openejb-3.0-incubating-SNAPSHOT- bin.zip

and in your Connector declaration that makes calls outside transactions add 'Unmanaged true'

<Connector id="APPLDBnoTx">
    JdbcDriver   org.hsqldb.jdbcDriver
    JdbcUrl      jdbc:hsqldb:file:conf/default.hsql_database.conf
    UserName     sa
    Password
    Unmanaged    true
</Connector>

Give that a try and let me know. It's really not tested so be sure to poke at it.

-David

On Jan 3, 2007, at 7:49 AM, Per Newgro wrote:

Hey David,

happy new year - to the others in newsgroup to :-)

Did i missed something in this thread? I installed the snapshot. But i get
this anyway:

[java] Caused by: java.sql.SQLException: Method not supported. Commit is
managed automatically by container provider
[java]     at
org.apache.openejb.resource.jdbc.JdbcConnection.setAutoCommit (JdbcConnection.java:106)
[java]     at
my.server.data.ConnectionFactory.getConnection (ConnectionFactory.java:40)
[java]     at
my.server.data.PersistenceLayer.getConnection(PersistenceLayer.java: 88)

I have two datasources. One for normal transaction managed access. The other will be accessed outside all transactions. It will be used for my sequence
table which shouldn't be rolled back if something happend.

All beans should be managed by bean and not by container. Do i have to
configure it? I don't use ejb-3.0 until now.

Cheers
Per


Reply via email to