Bugs item #585678, was opened at 2002-07-23 18:22
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=585678&group_id=22866
Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Jon Swinth (jswinth)
Assigned to: Nobody/Anonymous (nobody)
Summary: set value ignored on CMP bean self call
Initial Comment:
Given two beans, one CMP and one stateless session
bean, self calls to setDateField are sometimes ignored
when session bean has previously called setDateField in
same transaction.
CMP bean methods:
public abstract java.util.Date getDateField() ;
public abstract void setDateField(java.util.Date);
public void updateDateField() {
Calendar cal = Calendar.getInstance() ;
cal.setTime(getDateField());
cal.add(Calendar.DAY_OF_MONTH,1);
setDateField(cal.getTime());
}
Session bean method:
public void updateCMPBean() {
CMPBeanLocal cmpBean = ... ;
cmpBean.setDateField(new java.util.Date());
cmpBean.updateDateField();
}
If the transaction ends after calling updateCMPBean
then the dateField will be equal to today instead of
tomorrow. If getDateField() is called after
updateCMPBean and before the transaction ends then the
dateField will be correct.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=585678&group_id=22866
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development