I configured OJB with JBoss, got this error:
[05 Jan 2003 10:22:11 INFO] [HttpProcessor[8080][2]]
- Value
"org.apache.ojb.broker.accesslayer.ConnectionFactoryPassThroughImpl"
is illegal for key "ConnectionFactoryClass" (should be
a class, using default value
org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl)
In my stateless session bean, I have a getter:
public Collection getLaborLevel()
{
Log.info("getLaborLevel was called");
try
{
OQLQuery query = odmg.newOQLQuery();
query.create(
"select allObjects from " +
LaborLevelDef.class.getName());
return (Collection) query.execute();
}
catch (QueryException e)
{
System.out.println("in LaborLevelSessionbean: " +
e);
throw new EJBException("Query objects failed", e);
}
}
The transaction type for the EJB is "Container" and
the transaction-attribute for this method is
"Required" (I tried "NotSupported" also). I got this
error:
[05 Jan 2003 10:22:13 INFO] [HttpProcessor[8080][2]]
- [org.apache.ojb.broker.a
ccesslayer.ConnectionManager] ERROR: ^M
[05 Jan 2003 10:22:13 INFO] [HttpProcessor[8080][2]]
- Commit on underlying con
nection failed, try to rollback^M
[05 Jan 2003 10:22:13 INFO] [HttpProcessor[8080][2]]
- You cannot commit during
a managed transaction!^M
[05 Jan 2003 10:22:13 ERROR] [HttpProcessor[8080][2]]
- java.sql.SQLException: Y
ou cannot commit during a managed transaction!^M
[05 Jan 2003 10:22:13 ERROR] [HttpProcessor[8080][2]]
- at org.jboss.res
ource.adapter.jdbc.local.LocalManagedConnection.jdbcCommit(LocalManagedConnectio
n.java:456)^M
[05 Jan 2003 10:22:13 ERROR] [HttpProcessor[8080][2]]
- at org.jboss.res
ource.adapter.jdbc.local.LocalConnection.commit(LocalConnection.java:447)^M
[05 Jan 2003 10:22:13 ERROR] [HttpProcessor[8080][2]]
- at org.apache.oj
b.broker.accesslayer.ConnectionManager.localCommit(Unknown
Source)^M
[05 Jan 2003 10:22:13 ERROR] [HttpProcessor[8080][2]]
- at org.apache.oj
b.broker.singlevm.PersistenceBrokerImpl.commitTransaction(Unknown
Source)^M
[05 Jan 2003 10:22:13 ERROR] [HttpProcessor[8080][2]]
- at org.apache.oj
b.broker.singlevm.DelegatingPersistenceBroker.commitTransaction(Unknown
Source)^
Any insight is highly-appreciated
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>