Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

findByPrimaryKey() & ejbStore()

grohlFeb 20 2009 — edited Feb 25 2009
Hi:

I'm running a J2EE 1.3 application in SunOne Application Server 7.1.

I've seen a strange issue and I'd like ask you if is a standard behaviour:

if I get a local reference of a entity bean (CMP) with findByPrimaryKey() and I don't set any field, container doesn't perform commit on database but executes ejbStore()

For example

public void m()
{

[...]
EntityLocal entity = entityHome.findByPrimaryKey(pk)

[...don't set any field in 'entity' ...]
}

( The method is executed in a new transaction )


So, although container doesn't commit , it invoke ejbStore()

Why ? Is it a propietary behaviour ? Is right ?


Thanks
Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 25 2009
Added on Feb 20 2009
1 comment
126 views