Hi,

David - correct me if I'm wrong, but the commit-option wont affect when
ejbStore is called, only when ejbLoad is called yes?  So that doesn't change
things here?

>      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?

I think (although if David says otherwise, then believe him not me) that the
commit-option isn't going to affect this.

>      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();
>      }
> }

no - dont do that, you should _never_ invoke bean lifecycle methods
directly, let the container do that.  Could you maybe share some more code
to show what you are doing?

cheesr
dim




_______________________________________________________________

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

Reply via email to