Please do not copy me on any further emails at [EMAIL PROTECTED] or
[EMAIL PROTECTED]



                                                                                       
                                                        
                      Alex Paransky                                                    
                                                        
                      <[EMAIL PROTECTED]>          To:       Orion-Interest 
<[EMAIL PROTECTED]>                               
                      Sent by:                         cc:                             
                                                        
                      owner-orion-interest@orio        Subject:  RE: ejbStore not 
getting called! Please provide any comments you have...      
                      nserver.com                                                      
                                                        
                                                                                       
                                                        
                                                                                       
                                                        
                      03/20/2002 11:34 AM                                              
                                                        
                      Please respond to                                                
                                                        
                      Orion-Interest                                                   
                                                        
                                                                                       
                                                        
                                                                                       
                                                        




I did not mention that I am running Orion 1.5.3 (I cannot switch to 1.5.4)
because I have too many entity objects with relations already implemented
in
1.5.3).  This used to work before, but is not working now.  I am not sure
what could have changed to cause such a problem.

I have already tried the exclusive-write-access="false" but that did not
help at all.  I am also running on RedHat 7.1 Linux, and using java version
"1.3.1_01".

Thanks for any help you can offer.

-AP_
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky
Sent: Wednesday, March 20, 2002 5:07 AM
To: Orion-Interest
Subject: ejbStore not getting called! Please provide any comments you
have...


Dear OrionServer group,

I know this is a far shot, but I am hoping that someone had a similar
experience.

The ejbStore method is not being called for an CMP2.0 entity bean.  Not all
beans, just this one!  The record is updated, and seems to be correct
somewhere in memory, but it's never written out to disk.  If I restart
orion, the record is back to what it is on disk.  The only time I see
ejbStore IS called is on initial create.  Again, this is happening on only
1
bean.  Here is the trace:

rejecting: 714 note: asdfasdfasdfasdfasdf
request.MemberRequestServiceBean (?:?) - rejectRequest: 714
note:asdfasdfasdfasdfasdf
request.RequestEntityBean (?:?) - reject request begin: 714 with note:
asdfas current status: 1
request.RequestEntityBean (?:?) - reject request end: 714 with note: asdfas
current status: 3

In the following code sample setStatus and setNote are both abstract
functions (CMP2.0).  The setStatus is changing the state of the object
since
I print it out in the second log statement.

The code:

public void ejbStore() {
  log.debug("ejbStore: " + getKey().getId());
}

public void ejbLoad() {
  super.ejbLoad();
  log.debug("ejbLoad: " + getKey().getId());
}

public void reject(final String note) {
  if (log.isDebugEnabled())
    log.debug("reject request begin: " + getKey().getId() + " with note: "
+
note + " current status: " + getStatus());

  //Assure proper status
  //
  if (getStatus() != RequestEntity.STATUS_PENDING)
    throw
      new EJBException("Cannot reject request in non-pending status");

  //Configure new status
  //
  setStatus(RequestEntity.STATUS_REJECTED);

  //Configure note
  //
  setNote(note);

  //Debug
  //
  if (log.isDebugEnabled())
    log.debug("reject request end: " + getKey().getId() + " with note: " +
getNote() + " current status: " + getStatus());
}

Thanks.
-AP_









Reply via email to