Hello divid and dim,
I'm sure the ejbStore() of BMP1 isn't called at the end of methodA() or
methodB().I didn't set "commit-option" in jboss.xml and don't know the default
value,but I think in this case any commit-option should ensure the
persistence.Right?
Now I have to call ejbStore() manually at the end of methodB() like this:
public class BMP1{
void methodB(){
call BMP2.methodC();
//do some other operation
ejbStore();
}
}
Thanks,
Max
I think JBoss calling ejbStore before the call the BMP2 methodC is not a
bug, but that not calling it again at the end of methodB is a bug. I'd
expect you'd only notice this with commit option B or C or looking directly
at the db?
The only place that currently knows what the call stack of ejbs is is the
CachedConnectionManager, notified by the CachedConnectionInterceptor. This
could be modified to check on the return from an ejb call whether the
caller was an entity bean, and add it to the global tx entity map if it is.
Thanks
david jencks
The reason that ejbStore is called (on BMP1) before doing the find of BMP2,
is that because finders are executed against the DB, its imperitive that all
current state is written out to the database. What should be happening, is
that ejbStore is called on BMP1, and then at the end of methodA(), ejbStore
should be called again (on BMP1 and BMP2). Are you sure this isn't
happening?
cheers
dim
On 2002.06.04 06:53:57 -0400 [EMAIL PROTECTED] wrote:
>
>
> Hi Everybody,
> I'm using JBoss3.0.0 with tomcat 4.0.3 and SQL Server 2000.
> I have a strange problem in this scenario:
> Session Bean methodA()-->BMP1 methodB()-->BMP2 methodC().
> I found that ejbStore() of BMP1 was called in middle of methodB() just
> before I
> lookup and call BMP2,so the rest code of methodB() was not persistent to
> DB.I
> have deployed the same code on J2EE RI and Weblogic 6.1, and both runs
> well.Is
> this a JBoss bug or am I wrong somewhere?
> Thanks for your help!
> Max
>
>
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user