So a BMT started transaction doesn't propagate to the other bean.

This might very well be a bug in the new proxy code. Is this with the local invoker? 

I am swamped at the moment, I really trying to sort out the deploy spaghetti structure 
and it is taking all my cycles at the moment. 

give me some time, send me private emails if you want directions on trying to solve 
the problem yourself. BTW the impl code should not associate with the "invocation", it 
is the proxy code in the local proxy that should pick up the thread association and 
propagate it, you can put traces in the proxy that show that there is a transaction 
association and obviously you already know that it is not there anymore in the second 
container. Make sure you are reading the right proxy code (org.jboss.proxy.ejb)... are 
you going through these? it seems not from the stack below (you are going through the 
org.jboss.ejb.plugins.BaseLocalContainerInvoker....

I don't know

marcf

> What I did was
> I think I just figured out the problem, but I don't
> know how to solve it.
> When you start user transaction
> (ctx.getUserTransaction().begin()) it is not
> associated with the Invocation object (this is in
> EnterpriseContext.UserTransactionImpl). Therefore,
> when I call my entity it
> does not find an existing TX in mi, thus an exception
> is thrown.
> 
> The runTestCase method from my SLSB and part of the
> stack trace follows
> after this message.
> 
> -dain
> 
> 
> 
> 
> runTestCase method from my EJBTestRunnerBean:
> ----------------------------------------------------
> private void runTestCase(EJBTestCase testCase) throws
> RemoteTestException {
> try {
> System.out.println("BEGIN TRANSACTION
> CTION runTestCase");
> ctx.getUserTransaction().begin();
> try {
> testCase.runBare();
> } catch(Throwable e) {
> throw new RemoteTestException(e);
> }
> if(ctx.getUserTransaction().getStatus() ==
> () == Status.STATUS_ACTIVE) {
> System.out.println("COMMIT TRANSACTION
> NSACTION runTestCase");
> ctx.getUserTransaction().commit();
> }
> } catch(Throwable e) {
> try {
> System.out.println("ROLLBACK TRANSACTION
> NSACTION runTestCase");
> ctx.getUserTransaction().rollback();
> } catch(SystemException unused) {
> // eat the exception we are exceptioning out
> ning out anyway
> }
> if(e instanceof RemoteTestException) {
> throw (RemoteTestException) e;
> }
> throw new RemoteTestException(e);
> }
> }
> 
> Part of the stack trace:
> ----------------------------------------------------
> <error message="Transaction Required, read the spec!"
&gt; 
&gt; 
&gt; 
&gt; type="net.sourceforge.junitejb.RemoteTestException">
> javax.ejb.TransactionRequiredLocalException:
> Transaction Required, read the
> spec!
> at
> at
> org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.
> nvokeHome
> (BaseLocalContainerInvoker.java:290)
> at
> at
> org.jboss.ejb.plugins.local.BaseLocalContainerInvoker$
> omeProxy.invoke
> (BaseLocalContainerInvoker.java:428)
> at $Proxy11.findAll(Unknown Source)
> at
> at
> org.jboss.test.cmp2.relationship.oneToManyUnidirection
> l.ABTest.
> deleteAllAsAndBs(ABTest.java:304)
> at
> at
> org.jboss.test.cmp2.relationship.oneToManyUnidirection
> l.ABTest.
> setUpEJB(ABTest.java:292)
> at
> net.sourceforge.junitejb.EJBTestRunnerBean.setUpEJB(EJ
> TestRunnerBean.java
> :72)
> ...

______________________________________________________________________
View this jboss-dev thread in the online forums:
http://jboss.org/forums/thread.jsp?forum=66&thread=6276

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to