I changed all the commit options in the standardjboss.xml file to C, results
stayed the same for JBOSS

-----Original Message-----
From: danch [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 3:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Differences in ejb methods called for BMP
beans


I'd expect that output from JBoss if you are using commit option A (the 
default) and those beans had been accessed recently - since option A 
caches the bean's state aggressively, they need to ejbActivate to 
transition from the 'pooled' state to the 'ready' state, and need to 
ejbLoad prior to a business method call (option A means JBoss is the 
only thing touching that database, and can therefore assume that what it 
has from the last transaction is what's in the database)

The Orion sequence is correct also. If my assumption that those beans 
had been accessed prior to the trace below is true (and if it isn't 
you'll see that you're getting the wrong (no) data), both servers are 
behaving according to the spec (with Orion using commit option C) and 
'more correct' is not meaningful.

Try setting JBoss to commit option C and see how that changes the 
calling sequence. Then try option B, just for fun 8^})


-danch

Kaseman, Mark T wrote:

>       I have a test BMP that reads data from a DB2 database and just
> returns a collection to a servlet. When I run this application under JBOSS
> and ORION, I get different ejb* methods called. I must admit I am not 100%
> familiar with the life cycle of a BMP entity in EJB, but I would expect
them
> to be more similar than the results below. I am trying to find out why
they
> are different and which product is more correct ??
> 
> 
> Orion/1.5.2 initialized
> 
> 1st request - returns 2 -rows
> 
> MVSBase()
> MVSBean()
> setEntityContext()
> ejbFindByServerName()
> Begin Time: 2001.06.08 at 08:59:43.908 AM EDT
> End   Time: 2001.06.08 at 08:59:44.459 AM EDT
> ejbActivate()
> ejbLoad()
> MVSBase()
> MVSBean()
> setEntityContext()
> ejbActivate()
> ejbLoad()
> ejbStore()
> ejbStore()
> 
> 2nd request - returns 1 -row
> 
> MVSBase()
> MVSBean()
> setEntityContext()
> ejbFindByServerName()
> Begin Time: 2001.06.08 at 09:00:13.440 AM EDT
> End   Time: 2001.06.08 at 09:00:13.590 AM EDT
> ejbActivate()
> ejbLoad()
> ejbStore()
> 
> 
> 
> 
> [Default] JBoss 2.2.1 Started in 0m:8s
> [Jetty] JSP: init
> 
> 
> 1st request - returns 2 -rows
> 
> [MVS_BMP] MVSBase()
> [MVS_BMP] MVSBean()
> [MVS_BMP] setEntityContext()
> [MVS_BMP] ejbFindByServerName()
> [MVS_BMP] Begin Time: 2001.06.08 at 09:02:48.323 AM EDT
> [MVS_BMP] End   Time: 2001.06.08 at 09:02:48.473 AM EDT
> 
> 2nd request - returns 1 -row
> 
> [MVS_BMP] ejbFindByServerName()
> [MVS_BMP] Begin Time: 2001.06.08 at 09:02:54.692 AM EDT
> [MVS_BMP] End   Time: 2001.06.08 at 09:02:54.832 AM EDT
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to