Re: [JBoss-user] ejbLoad not called even when commit-option is C
Hi, I think you can't use IsModified with lagacy apps! Try whitout it! Burkhard - Original Message - From: "Syed" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 4:46 AM Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C > > Yes I have transaction Required flag. > > > Thanks & Best Regards, > Mustaffa Syed Meerkasim. > > > > > Date: Thu, 19 Jul 2001 22:26:48 -0400 > From: David Jencks <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C > Reply-To: [EMAIL PROTECTED] > > Hi, > You do have all your methods with transaction Required or RequiresNew, > right? > david jencks > > On 2001.07.19 22:03:57 -0400 Syed wrote: > > > > I am using JBoss 2.4 BETA(Rel_2_4_0_14). > > > > In the standardjboss.xml file under container configuration for Standard > > BMP EntityBean, I set the commit-option to C. > > But it does not seem to be working. > > I think it behaves this way,, > > > > when ejbFindByPrimarykey is called, > > it finds the bean from the cache(if it is not in cache it eventually > > calls > > ejbLoad, so no problem during first invocation), > > then checks the isModified & calls ejbStore if isModified returns true.. > > that's it.. it never calls ejbLoad. > > it can call ejbLoad if isModified returns false as there is possibility > > for > > the data be modified outside the entity bean. > > if isModified is true, it calls ejbStore and that means whatever data it > > has > > is the latest and no need to call ejbLoad... > > > > I don't know the complete cycle of events and the above given is my > > assumption of what is happening > > after looking at its behaviour .. > > > > Pls let me know if there are any other settings which can help ... > > > > Thanks & Best Regards, > > Mustaffa Syed Meerkasim. > > -- > > From: "Burkhard Vogel" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C > > Date: Thu, 19 Jul 2001 15:11:53 +0200 > > Reply-To: [EMAIL PROTECTED] > > > > Hi, > > commit option C MUST do the job, if not I guess you are misconfigured. > > Where > > and how do you set your commit-option to C how do you deploy your beans > > (ejb-jar/jboss/jaws)? > > Burkhard > > - Original Message - > > From: "Luke Studley" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, July 19, 2001 2:35 PM > > Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C > > > > > > > Hello > > > > > > I think this relates exactly to the same problem I am having, see my > > post > > > from about 18 hours ago below. When I went back to read the ejb1.1. > > spec > > it > > > seems to suggest that there are 3 different ways a container may behave > > > between transactional calls on a bean (see mail below), it appears to > > me > > > that JBoss is taking option A, which is allowable, but not very useful > > for > > > what I want to achieve (i.e. dB access from without the bean). > > > > > > I am hoping that somebody will rubbish my conclusions and tell me how > > we > > can > > > make JBoss call ejbLoad at the beginning of each transactional set of > > calls. > > > > > > If you find any solution to this please do post it. > > > > > > Best of luck > > > > > > Luke > > > > > > - > > > FROM: Luke StudleyDATE: 07/18/2001 15:29:21SUBJECT: [JBoss-user] JBoss > > > Entity Bean Transactions This message is in MIME format. Since your > > mail > > > reader does not understand > > > this format, some or all of this message may not be legible. > > > > > > --_=_NextPart_001_01C10FD9.171B7B80 > > > Content-Type: text/plain > > > > > > Hi all > > > > > > In the ejb 1.1 Spec (pdf) 9.5.4 and 9.5.5 (ending and starting new > > > transactions for entity beans) it mentions 3 options for a container to > > end > > > a transaction: > > > A. mark "not registered" > > > B. mark "invalid state" > > > C. ejbPassivate() > > > > > > Which relat
Re: [JBoss-user] ejbLoad not called even when commit-option is C
Yes I have transaction Required flag. Thanks & Best Regards, Mustaffa Syed Meerkasim. Date: Thu, 19 Jul 2001 22:26:48 -0400 From: David Jencks <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C Reply-To: [EMAIL PROTECTED] Hi, You do have all your methods with transaction Required or RequiresNew, right? david jencks On 2001.07.19 22:03:57 -0400 Syed wrote: > > I am using JBoss 2.4 BETA(Rel_2_4_0_14). > > In the standardjboss.xml file under container configuration for Standard > BMP EntityBean, I set the commit-option to C. > But it does not seem to be working. > I think it behaves this way,, > > when ejbFindByPrimarykey is called, > it finds the bean from the cache(if it is not in cache it eventually > calls > ejbLoad, so no problem during first invocation), > then checks the isModified & calls ejbStore if isModified returns true.. > that's it.. it never calls ejbLoad. > it can call ejbLoad if isModified returns false as there is possibility > for > the data be modified outside the entity bean. > if isModified is true, it calls ejbStore and that means whatever data it > has > is the latest and no need to call ejbLoad... > > I don't know the complete cycle of events and the above given is my > assumption of what is happening > after looking at its behaviour .. > > Pls let me know if there are any other settings which can help ... > > Thanks & Best Regards, > Mustaffa Syed Meerkasim. > -------------- > From: "Burkhard Vogel" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C > Date: Thu, 19 Jul 2001 15:11:53 +0200 > Reply-To: [EMAIL PROTECTED] > > Hi, > commit option C MUST do the job, if not I guess you are misconfigured. > Where > and how do you set your commit-option to C how do you deploy your beans > (ejb-jar/jboss/jaws)? > Burkhard > - Original Message - > From: "Luke Studley" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, July 19, 2001 2:35 PM > Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C > > > > Hello > > > > I think this relates exactly to the same problem I am having, see my > post > > from about 18 hours ago below. When I went back to read the ejb1.1. > spec > it > > seems to suggest that there are 3 different ways a container may behave > > between transactional calls on a bean (see mail below), it appears to > me > > that JBoss is taking option A, which is allowable, but not very useful > for > > what I want to achieve (i.e. dB access from without the bean). > > > > I am hoping that somebody will rubbish my conclusions and tell me how > we > can > > make JBoss call ejbLoad at the beginning of each transactional set of > calls. > > > > If you find any solution to this please do post it. > > > > Best of luck > > > > Luke > > > > - > > FROM: Luke StudleyDATE: 07/18/2001 15:29:21SUBJECT: [JBoss-user] JBoss > > Entity Bean Transactions This message is in MIME format. Since your > mail > > reader does not understand > > this format, some or all of this message may not be legible. > > > > --_=_NextPart_001_01C10FD9.171B7B80 > > Content-Type: text/plain > > > > Hi all > > > > In the ejb 1.1 Spec (pdf) 9.5.4 and 9.5.5 (ending and starting new > > transactions for entity beans) it mentions 3 options for a container to > end > > a transaction: > > A. mark "not registered" > > B. mark "invalid state" > > C. ejbPassivate() > > > > Which relates to the following actions for starting the next > transaction: > > A. Do nothing > > B. ejbLoad() > > C. ejbLoad() > > > > Would it be true to say that JBoss implements option A? I am certainly > > seeing this type of behaviour with my session wrapped entity beans, > i.e. > no > > ejbLoad() called for new Transactions after the initial > find/ejbActivate > > combo. > > > > If this is the case then you cannot pick up new transaction data > changed > in > > the dB from outside of JBoss without restarting or re-deploying your > beans. > > Which is quite annoying for the application I have. > > > > Is any / all / none of this true? > > Is it possible to configure JBoss to use one of the other options > mentioned > > in the spec? I.e. I basi
Re: [JBoss-user] ejbLoad not called even when commit-option is C
Hi, You do have all your methods with transaction Required or RequiresNew, right? david jencks On 2001.07.19 22:03:57 -0400 Syed wrote: > > I am using JBoss 2.4 BETA(Rel_2_4_0_14). > > In the standardjboss.xml file under container configuration for Standard > BMP EntityBean, I set the commit-option to C. > But it does not seem to be working. > I think it behaves this way,, > > when ejbFindByPrimarykey is called, > it finds the bean from the cache(if it is not in cache it eventually > calls > ejbLoad, so no problem during first invocation), > then checks the isModified & calls ejbStore if isModified returns true.. > that's it.. it never calls ejbLoad. > it can call ejbLoad if isModified returns false as there is possibility > for > the data be modified outside the entity bean. > if isModified is true, it calls ejbStore and that means whatever data it > has > is the latest and no need to call ejbLoad... > > I don't know the complete cycle of events and the above given is my > assumption of what is happening > after looking at its behaviour .. > > Pls let me know if there are any other settings which can help ... > > Thanks & Best Regards, > Mustaffa Syed Meerkasim. > ---------- > From: "Burkhard Vogel" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C > Date: Thu, 19 Jul 2001 15:11:53 +0200 > Reply-To: [EMAIL PROTECTED] > > Hi, > commit option C MUST do the job, if not I guess you are misconfigured. > Where > and how do you set your commit-option to C how do you deploy your beans > (ejb-jar/jboss/jaws)? > Burkhard > - Original Message ----- > From: "Luke Studley" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, July 19, 2001 2:35 PM > Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C > > > > Hello > > > > I think this relates exactly to the same problem I am having, see my > post > > from about 18 hours ago below. When I went back to read the ejb1.1. > spec > it > > seems to suggest that there are 3 different ways a container may behave > > between transactional calls on a bean (see mail below), it appears to > me > > that JBoss is taking option A, which is allowable, but not very useful > for > > what I want to achieve (i.e. dB access from without the bean). > > > > I am hoping that somebody will rubbish my conclusions and tell me how > we > can > > make JBoss call ejbLoad at the beginning of each transactional set of > calls. > > > > If you find any solution to this please do post it. > > > > Best of luck > > > > Luke > > > > - > > FROM: Luke StudleyDATE: 07/18/2001 15:29:21SUBJECT: [JBoss-user] JBoss > > Entity Bean Transactions This message is in MIME format. Since your > mail > > reader does not understand > > this format, some or all of this message may not be legible. > > > > --_=_NextPart_001_01C10FD9.171B7B80 > > Content-Type: text/plain > > > > Hi all > > > > In the ejb 1.1 Spec (pdf) 9.5.4 and 9.5.5 (ending and starting new > > transactions for entity beans) it mentions 3 options for a container to > end > > a transaction: > > A. mark "not registered" > > B. mark "invalid state" > > C. ejbPassivate() > > > > Which relates to the following actions for starting the next > transaction: > > A. Do nothing > > B. ejbLoad() > > C. ejbLoad() > > > > Would it be true to say that JBoss implements option A? I am certainly > > seeing this type of behaviour with my session wrapped entity beans, > i.e. > no > > ejbLoad() called for new Transactions after the initial > find/ejbActivate > > combo. > > > > If this is the case then you cannot pick up new transaction data > changed > in > > the dB from outside of JBoss without restarting or re-deploying your > beans. > > Which is quite annoying for the application I have. > > > > Is any / all / none of this true? > > Is it possible to configure JBoss to use one of the other options > mentioned > > in the spec? I.e. I basically need ejbLoad to be called on the entity > beans > > afresh in each transaction. > > > > As always any answers appreciated. > > > > Thanks > > > > Luke > > - > > > > > > > > > > Message: 3 > >
Re: [JBoss-user] ejbLoad not called even when commit-option is C
I am using JBoss 2.4 BETA(Rel_2_4_0_14). In the standardjboss.xml file under container configuration for Standard BMP EntityBean, I set the commit-option to C. But it does not seem to be working. I think it behaves this way,, when ejbFindByPrimarykey is called, it finds the bean from the cache(if it is not in cache it eventually calls ejbLoad, so no problem during first invocation), then checks the isModified & calls ejbStore if isModified returns true.. that's it.. it never calls ejbLoad. it can call ejbLoad if isModified returns false as there is possibility for the data be modified outside the entity bean. if isModified is true, it calls ejbStore and that means whatever data it has is the latest and no need to call ejbLoad... I don't know the complete cycle of events and the above given is my assumption of what is happening after looking at its behaviour .. Pls let me know if there are any other settings which can help ... Thanks & Best Regards, Mustaffa Syed Meerkasim. -- From: "Burkhard Vogel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C Date: Thu, 19 Jul 2001 15:11:53 +0200 Reply-To: [EMAIL PROTECTED] Hi, commit option C MUST do the job, if not I guess you are misconfigured. Where and how do you set your commit-option to C how do you deploy your beans (ejb-jar/jboss/jaws)? Burkhard - Original Message - From: "Luke Studley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 2:35 PM Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C > Hello > > I think this relates exactly to the same problem I am having, see my post > from about 18 hours ago below. When I went back to read the ejb1.1. spec it > seems to suggest that there are 3 different ways a container may behave > between transactional calls on a bean (see mail below), it appears to me > that JBoss is taking option A, which is allowable, but not very useful for > what I want to achieve (i.e. dB access from without the bean). > > I am hoping that somebody will rubbish my conclusions and tell me how we can > make JBoss call ejbLoad at the beginning of each transactional set of calls. > > If you find any solution to this please do post it. > > Best of luck > > Luke > > - > FROM: Luke StudleyDATE: 07/18/2001 15:29:21SUBJECT: [JBoss-user] JBoss > Entity Bean Transactions This message is in MIME format. Since your mail > reader does not understand > this format, some or all of this message may not be legible. > > --_=_NextPart_001_01C10FD9.171B7B80 > Content-Type: text/plain > > Hi all > > In the ejb 1.1 Spec (pdf) 9.5.4 and 9.5.5 (ending and starting new > transactions for entity beans) it mentions 3 options for a container to end > a transaction: > A. mark "not registered" > B. mark "invalid state" > C. ejbPassivate() > > Which relates to the following actions for starting the next transaction: > A. Do nothing > B. ejbLoad() > C. ejbLoad() > > Would it be true to say that JBoss implements option A? I am certainly > seeing this type of behaviour with my session wrapped entity beans, i.e. no > ejbLoad() called for new Transactions after the initial find/ejbActivate > combo. > > If this is the case then you cannot pick up new transaction data changed in > the dB from outside of JBoss without restarting or re-deploying your beans. > Which is quite annoying for the application I have. > > Is any / all / none of this true? > Is it possible to configure JBoss to use one of the other options mentioned > in the spec? I.e. I basically need ejbLoad to be called on the entity beans > afresh in each transaction. > > As always any answers appreciated. > > Thanks > > Luke > - > > > > > Message: 3 > From: Syed <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Date: Thu, 19 Jul 2001 17:58:20 +0800 > Subject: [JBoss-user] ejbLoad not called even when commit-option is C > Reply-To: [EMAIL PROTECTED] > > Wehave two entity beans, we use one entity bean for updation which = updates > a few tables and call it U The other entity bean just loads data only, let's > call it R. When we use the bean U to update the data, the data gets updated. > Then we call the bean R to read the data. ejbLoad in R is called the = the > latest data is loaded. Then we use bean U to change the data again and the > data is modified. Now we use findByPrimaryKey in R to find and read the data > but this = time it returns the old data not the data just updated. Then we > put som
RE: [JBoss-user] ejbLoad not called even when commit-option is C
As of JBoss 2.2.2, I believe there is at least one bug in LRUCachingPolicy and/or related classes. The bug I've encountered produces the "INSERTING AN ALREADY EXISTING BEAN" exception. I was able to work-around it by setting commit option to C. I intend to look into it further and hopefully fix it once I get some free time. --- Michael R. Maraya > -- > From: Frank Villarreal[SMTP:[EMAIL PROTECTED]] > Reply To: [EMAIL PROTECTED] > Sent: Thursday, July 19, 2001 9:12 AM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] ejbLoad not called even when commit-option > is C > > Luke, > > search the previous posts for the following topic "HOW TO DISABLE > ENTITY-BEAN CACHING". You can read about the steps I had to take in order > to eliminate caching with option-C. I still think setting the container to > "option-C" alone should have disabled caching...does anyone know if there > is > a bug with the LRUCachingPolicy? > > Frank T. Villarreal, Jr. > Email [EMAIL PROTECTED] > > > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] ejbLoad not called even when commit-option is C
Option A is the default commit-option specified in standardjboss.xml. You should change this to C. See http://www.jboss.org/documentation/HTML/ch06s08.html for more info. --- Michael R. Maraya > -- > From: Luke Studley[SMTP:[EMAIL PROTECTED]] > Reply To: [EMAIL PROTECTED] > Sent: Thursday, July 19, 2001 8:35 AM > To: '[EMAIL PROTECTED]' > Subject: Re: [JBoss-user] ejbLoad not called even when commit-option > is C > > Hello > > I think this relates exactly to the same problem I am having, see my post > from about 18 hours ago below. When I went back to read the ejb1.1. spec > it > seems to suggest that there are 3 different ways a container may behave > between transactional calls on a bean (see mail below), it appears to me > that JBoss is taking option A, which is allowable, but not very useful for > what I want to achieve (i.e. dB access from without the bean). > > I am hoping that somebody will rubbish my conclusions and tell me how we > can > make JBoss call ejbLoad at the beginning of each transactional set of > calls. > > If you find any solution to this please do post it. > > Best of luck > > Luke > > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] ejbLoad not called even when commit-option is C
Hi, commit option C MUST do the job, if not I guess you are misconfigured. Where and how do you set your commit-option to C how do you deploy your beans (ejb-jar/jboss/jaws)? Burkhard - Original Message - From: "Luke Studley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 2:35 PM Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C > Hello > > I think this relates exactly to the same problem I am having, see my post > from about 18 hours ago below. When I went back to read the ejb1.1. spec it > seems to suggest that there are 3 different ways a container may behave > between transactional calls on a bean (see mail below), it appears to me > that JBoss is taking option A, which is allowable, but not very useful for > what I want to achieve (i.e. dB access from without the bean). > > I am hoping that somebody will rubbish my conclusions and tell me how we can > make JBoss call ejbLoad at the beginning of each transactional set of calls. > > If you find any solution to this please do post it. > > Best of luck > > Luke > > - > FROM: Luke StudleyDATE: 07/18/2001 15:29:21SUBJECT: [JBoss-user] JBoss > Entity Bean Transactions This message is in MIME format. Since your mail > reader does not understand > this format, some or all of this message may not be legible. > > --_=_NextPart_001_01C10FD9.171B7B80 > Content-Type: text/plain > > Hi all > > In the ejb 1.1 Spec (pdf) 9.5.4 and 9.5.5 (ending and starting new > transactions for entity beans) it mentions 3 options for a container to end > a transaction: > A. mark "not registered" > B. mark "invalid state" > C. ejbPassivate() > > Which relates to the following actions for starting the next transaction: > A. Do nothing > B. ejbLoad() > C. ejbLoad() > > Would it be true to say that JBoss implements option A? I am certainly > seeing this type of behaviour with my session wrapped entity beans, i.e. no > ejbLoad() called for new Transactions after the initial find/ejbActivate > combo. > > If this is the case then you cannot pick up new transaction data changed in > the dB from outside of JBoss without restarting or re-deploying your beans. > Which is quite annoying for the application I have. > > Is any / all / none of this true? > Is it possible to configure JBoss to use one of the other options mentioned > in the spec? I.e. I basically need ejbLoad to be called on the entity beans > afresh in each transaction. > > As always any answers appreciated. > > Thanks > > Luke > ------------- > > > > > Message: 3 > From: Syed <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Date: Thu, 19 Jul 2001 17:58:20 +0800 > Subject: [JBoss-user] ejbLoad not called even when commit-option is C > Reply-To: [EMAIL PROTECTED] > > Wehave two entity beans, we use one entity bean for updation which = updates > a few tables and call it U The other entity bean just loads data only, let's > call it R. When we use the bean U to update the data, the data gets updated. > Then we call the bean R to read the data. ejbLoad in R is called the = the > latest data is loaded. Then we use bean U to change the data again and the > data is modified. Now we use findByPrimaryKey in R to find and read the data > but this = time it returns the old data not the data just updated. Then we > put some logging and found that ejbLoad is not called during = second > invocation. I think that if we give commit-option as C means that ejbLoad is > = supposed to be called before every business method invocation which > includes ejbFindByPrimarykey = also. > > Is there any other setting which can make the entity beans' ejbLoad = called > whenever ejbFindByPrimaryKey is called. > > > > ___ > 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
RE: [JBoss-user] ejbLoad not called even when commit-option is C
Luke, search the previous posts for the following topic "HOW TO DISABLE ENTITY-BEAN CACHING". You can read about the steps I had to take in order to eliminate caching with option-C. I still think setting the container to "option-C" alone should have disabled caching...does anyone know if there is a bug with the LRUCachingPolicy? Frank T. Villarreal, Jr. Email [EMAIL PROTECTED] > -Original Message- > From: Luke Studley [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 7:35 AM > To: '[EMAIL PROTECTED]' > Subject: Re: [JBoss-user] ejbLoad not called even when > commit-option is > C > > > Hello > > I think this relates exactly to the same problem I am having, > see my post > from about 18 hours ago below. When I went back to read the > ejb1.1. spec it > seems to suggest that there are 3 different ways a container > may behave > between transactional calls on a bean (see mail below), it > appears to me > that JBoss is taking option A, which is allowable, but not > very useful for > what I want to achieve (i.e. dB access from without the bean). > > I am hoping that somebody will rubbish my conclusions and > tell me how we can > make JBoss call ejbLoad at the beginning of each > transactional set of calls. > > If you find any solution to this please do post it. > > Best of luck > > Luke > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] ejbLoad not called even when commit-option is C
Hello I think this relates exactly to the same problem I am having, see my post from about 18 hours ago below. When I went back to read the ejb1.1. spec it seems to suggest that there are 3 different ways a container may behave between transactional calls on a bean (see mail below), it appears to me that JBoss is taking option A, which is allowable, but not very useful for what I want to achieve (i.e. dB access from without the bean). I am hoping that somebody will rubbish my conclusions and tell me how we can make JBoss call ejbLoad at the beginning of each transactional set of calls. If you find any solution to this please do post it. Best of luck Luke - FROM: Luke StudleyDATE: 07/18/2001 15:29:21SUBJECT: [JBoss-user] JBoss Entity Bean Transactions This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --_=_NextPart_001_01C10FD9.171B7B80 Content-Type: text/plain Hi all In the ejb 1.1 Spec (pdf) 9.5.4 and 9.5.5 (ending and starting new transactions for entity beans) it mentions 3 options for a container to end a transaction: A. mark "not registered" B. mark "invalid state" C. ejbPassivate() Which relates to the following actions for starting the next transaction: A. Do nothing B. ejbLoad() C. ejbLoad() Would it be true to say that JBoss implements option A? I am certainly seeing this type of behaviour with my session wrapped entity beans, i.e. no ejbLoad() called for new Transactions after the initial find/ejbActivate combo. If this is the case then you cannot pick up new transaction data changed in the dB from outside of JBoss without restarting or re-deploying your beans. Which is quite annoying for the application I have. Is any / all / none of this true? Is it possible to configure JBoss to use one of the other options mentioned in the spec? I.e. I basically need ejbLoad to be called on the entity beans afresh in each transaction. As always any answers appreciated. Thanks Luke - Message: 3 From: Syed <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Thu, 19 Jul 2001 17:58:20 +0800 Subject: [JBoss-user] ejbLoad not called even when commit-option is C Reply-To: [EMAIL PROTECTED] Wehave two entity beans, we use one entity bean for updation which = updates a few tables and call it U The other entity bean just loads data only, let's call it R. When we use the bean U to update the data, the data gets updated. Then we call the bean R to read the data. ejbLoad in R is called the = the latest data is loaded. Then we use bean U to change the data again and the data is modified. Now we use findByPrimaryKey in R to find and read the data but this = time it returns the old data not the data just updated. Then we put some logging and found that ejbLoad is not called during = second invocation. I think that if we give commit-option as C means that ejbLoad is = supposed to be called before every business method invocation which includes ejbFindByPrimarykey = also. Is there any other setting which can make the entity beans' ejbLoad = called whenever ejbFindByPrimaryKey is called. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] ejbLoad not called even when commit-option is C
Hi, frist of all it should read the data with an ejbLoad, but why aren't you handling R and U in one bean? Well it'll get a bit thick, but handling data in one table is usually done with one bean to avoid your issue. Burkhard - Original Message - From: "Syed" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 11:58 AM Subject: [JBoss-user] ejbLoad not called even when commit-option is C Wehave two entity beans, we use one entity bean for updation which updates a few tables and call it U The other entity bean just loads data only, let's call it R. When we use the bean U to update the data, the data gets updated. Then we call the bean R to read the data. ejbLoad in R is called the the latest data is loaded. Then we use bean U to change the data again and the data is modified. Now we use findByPrimaryKey in R to find and read the data but this time it returns the old data not the data just updated. Then we put some logging and found that ejbLoad is not called during second invocation. I think that if we give commit-option as C means that ejbLoad is supposed to be called before every business method invocation which includes ejbFindByPrimarykey also. Is there any other setting which can make the entity beans' ejbLoad called whenever ejbFindByPrimaryKey is called. ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Thanks & Best Regards, Mustaffa Syed Meerkasim. ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ___ 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] ejbLoad not called even when commit-option is C
Wehave two entity beans, we use one entity bean for updation which updates a few tables and call it U The other entity bean just loads data only, let's call it R. When we use the bean U to update the data, the data gets updated. Then we call the bean R to read the data. ejbLoad in R is called the the latest data is loaded. Then we use bean U to change the data again and the data is modified. Now we use findByPrimaryKey in R to find and read the data but this time it returns the old data not the data just updated. Then we put some logging and found that ejbLoad is not called during second invocation. I think that if we give commit-option as C means that ejbLoad is supposed to be called before every business method invocation which includes ejbFindByPrimarykey also. Is there any other setting which can make the entity beans' ejbLoad called whenever ejbFindByPrimaryKey is called. ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸ Thanks & Best Regards, Mustaffa Syed Meerkasim. ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user