Hmm...  I'm not up on the newer config options (or BMP for that matter,) but have you tried adjusting the "commit-option" in your jboss config?  I beleive this is good for BMP.  See the container configuration doc page: http://www.jboss.org/online-manual/HTML/ch07s16.html.
 
I understand what you mean, about not wanting to use container-specific features.  What I like about "isModified" is that using it won't break your EJB for other app servers (though it might be useless to other app servers.)  Additionally, many app servers (at least Orion, and I think WebLogic) also use "isModified" or at least have some equivalent.
 
Good Luck,
Mike
----- Original Message -----
Sent: Thursday, January 17, 2002 5:06 PM
Subject: Re: [JBoss-user] calling ejbStore() too many times

Hi Michael
 
You're almost right. JBoss just keeps on writing/storing (not reading/loading). My code does nothing to provoke these actions. As you can see from my post WLS agrees with that.
No, I have not implemented the isModified flag because doing so would maybe solve the problem in a "wrong" way. I would prefer to figure out/learn if I have done anything wrong in some configuration files, or....
Another reason for not implementing the isModified flag is that although JBoss might be satisfied, WLS might not, and our application has to be compliant with both JBoss and WLS and other app-servers, so avoiding container specific implementations would be preferred (required).
 
-Kris
----- Original Message -----
Sent: Friday, January 18, 2002 12:46 AM
Subject: Re: [JBoss-user] calling ejbStore() too many times

It sounds like you are just reading data from your entity beans throughout this transaction.  Is that correct?  If so, have you tried implementing "IsModified"?
 
Mike
----- Original Message -----
Sent: Thursday, January 17, 2002 4:22 PM
Subject: Re: [JBoss-user] calling ejbStore() too many times

Just read through my own post and found a typo that might give more meaning to the "showstopper". WLS takes approx. 1- to 3+ SECONDS not minutes, for JBoss it is sadly enough correct with 3+ minutes.
 
Any help will be very appreciated.
 
-Kris
----- Original Message -----
Sent: Thursday, January 17, 2002 7:59 PM
Subject: [JBoss-user] calling ejbStore() too many times

Moving down the path of porting from WLS to JBoss, I came across this issue.
 
We are using both XA and non-XA datasources/drivers in our application.
I have a testprogram that calls a number of sessionbeans each of which calls a number of entity beans. These entity beans all use the non-xa driver. these entity beans collects a number of informations(definitions) that is used to call external databases to create dynamic SQL statements. The external databases all use XA-datasources.
 
Doing this with WLS takes approx. 1- to 3+ minuts, depending on the amount of data being retrieved. Doing it in JBoss is something of a showstopper (3+ minuts).
During executing, JBoss insists on calling ejbStore() contantly, where WLS just calls ejbStore() when the transaction is about to end.
Without actually counting the number of times JBoss makes these calls, my best guess is more than 100!!, although the number a entity beans being accessed is around 10-15.
 
Further info:
We are using BMP for the entity beans. Every bean has its own record class the implements the Serializable interface. The record class acts as data-container between the server and client.
 
JBoss2.4.4_Tomcat4.0.1
 
-Kris

Reply via email to