• Post Reply Bookmark Topic Watch Topic
  • New Topic

WAS 4 finder behavior during a transaction

 
Mika Salminen
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

in WAS 4.0.4, i am creating an CMP entity in a session bean method (transaction Required) and later try to find it using a custom finder (WhereClauseFinder or UserFinder programmatic)) .. all this in the same transaction. the created entity is not found. if i take note of its ID and use findByPrimaryKey, it is found.
should any finder find the entity ? i assume it is not in the db until the end of the transaction. or maybe i've just messed something up in the ridiculously easy WAS finder definitions
is this appserver-specific ? spec say anything about this ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!