Dan,
In org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy we have the following
code:
protected Object invokeContainer(final Object id,
final Method method,
final Object[] args)
throws Throwable
{
Object result;
// optimize if calling another bean in same EJB-application
if (optimize && isLocal()) {
result = container.invoke(id,
method,
args,
getTransaction(),
getPrincipal(),
getCredential());
} else {
......
So, it calls getTransaction which will return null if there is no current
tx. I think in that case, the tx invocation interceptor creates a new tx.
I'm not sure this helps.
-dain
----- Original Message -----
From: "Dan OConnor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 11:51 AM
Subject: [JBoss-dev] Transactions and Optimization
> Hi guys,
>
> I was hoping someone would know where this bug would be as
> soon as I described the symptoms.
>
> A bean-managed entity registers a synchronization object with a
> transaction. If it is called from a web-tier client with optimizations
> turned on, it fails like this:
>
> java.lang.IllegalStateException: No transaction.
> at
> org.jboss.tm.TransactionImpl.registerSynchronization(TransactionIm
> pl.java:135)
>
> If this method is called from a remote client, it always works. If it is
> called from a web-tier client with optimizations turned off, this
> always works. (The transaction attribute of the business method is
> Required.)
>
> Anyone know the answer?
>
> -Dan
>
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development