dain 2004/10/12 16:01:13
Modified: modules/core/src/java/org/openejb/slsb
StatelessSessionContext.java
Log:
Itests now run again
- The ejb context base class signature chaged but we did not chang the subclasses
- We were trying to commit transactions marked for rollback
- We were running stateful ejbCreate in a transaction when we shouldn't
- We had the wrong junit version number in out itest plans
Revision Changes Path
1.5 +9 -9
openejb/modules/core/src/java/org/openejb/slsb/StatelessSessionContext.java
Index: StatelessSessionContext.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/slsb/StatelessSessionContext.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- StatelessSessionContext.java 5 Oct 2004 07:04:03 -0000 1.4
+++ StatelessSessionContext.java 12 Oct 2004 20:01:13 -0000 1.5
@@ -129,11 +129,11 @@
throw new IllegalStateException("getUserTransaction() cannot be called
when inactive");
}
- public void setRollbackOnly(EJBInstanceContext context) {
+ public void setRollbackOnly(EJBInstanceContext context,
TransactionContextManager transactionContextManager) {
throw new IllegalStateException("setRollbackOnly() cannot be called
when inactive");
}
- public boolean getRollbackOnly(EJBInstanceContext context) {
+ public boolean getRollbackOnly(EJBInstanceContext context,
TransactionContextManager transactionContextManager) {
throw new IllegalStateException("getRollbackOnly() cannot be called
when inactive");
}
@@ -141,7 +141,7 @@
throw new IllegalStateException("getMessageContext() cannot be called
when inactive");
}
- public TimerService getTimerService() {
+ public TimerService getTimerService(EJBInstanceContext context) {
throw new IllegalStateException("getTimerService() cannot be called
when inactive");
}
};
@@ -167,11 +167,11 @@
throw new IllegalStateException("getUserTransaction() cannot be called
from setSessionContext(SessionContext)");
}
- public void setRollbackOnly(EJBInstanceContext context) {
+ public void setRollbackOnly(EJBInstanceContext context,
TransactionContextManager transactionContextManager) {
throw new IllegalStateException("setRollbackOnly() cannot be called
from setSessionContext(SessionContext)");
}
- public boolean getRollbackOnly(EJBInstanceContext context) {
+ public boolean getRollbackOnly(EJBInstanceContext context,
TransactionContextManager transactionContextManager) {
throw new IllegalStateException("getRollbackOnly() cannot be called
from setSessionContext(SessionContext)");
}
@@ -179,7 +179,7 @@
throw new IllegalStateException("getMessageContext() cannot be called
from setSessionContext(SessionContext)");
}
- public TimerService getTimerService() {
+ public TimerService getTimerService(EJBInstanceContext context) {
throw new IllegalStateException("getTimerService() cannot be called
from setSessionContext(SessionContext)");
}
};
@@ -193,11 +193,11 @@
throw new IllegalStateException("isCallerInRole(String) cannot be
called from ejbCreate/ejbRemove");
}
- public void setRollbackOnly(EJBInstanceContext context) {
+ public void setRollbackOnly(EJBInstanceContext context,
TransactionContextManager transactionContextManager) {
throw new IllegalStateException("setRollbackOnly() cannot be called
from ejbCreate/ejbRemove");
}
- public boolean getRollbackOnly(EJBInstanceContext context) {
+ public boolean getRollbackOnly(EJBInstanceContext context,
TransactionContextManager transactionContextManager) {
throw new IllegalStateException("getRollbackOnly() cannot be called
from ejbCreate/ejbRemove");
}