Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000971 [Resin] minor always 03-04-06 11:59 04-04-06 14:52
Reporter gzhu View Status public  
Assigned To ferg
Priority urgent Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.19 Product Version 3.0.18
  Product Build
Summary 0000971: CMP entity bean set method does not work after bean creation and before any non-Primary Key getter is called
Description In our case, this is wrapped within a transaction enabled stateless session bean.

A sample scenario is like this

CMP Entity bean "Foo"
    fields: id(, name, description
    method: ejbCreate(int id, String name)

-- start a transactional session bean ---

FooHome h = ..JNDI lookup...;
Foo f = h.create(10, "Some Name");
/** String myname = f.getName(); // a non-primary key getter **/
f.setDescription("Some Description");

--- end session bean ---

Above code will not set description field, but it will if you uncomment that getName line.

Not sure whether this will have the same incorrect behaviour if above code is not in the same transaction context.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
04-04-06 14:52

ejb/0am3, ejb/0g0f

- Issue History
Date Modified Username Field Change
03-04-06 11:59 gzhu New Issue
03-05-06 06:58 koreth Issue Monitored: koreth
03-06-06 08:31 ferg Priority normal => urgent
04-04-06 14:52 ferg Note Added: 0001010
04-04-06 14:52 ferg Assigned To  => ferg
04-04-06 14:52 ferg Status new => closed
04-04-06 14:52 ferg Resolution open => fixed
04-04-06 14:52 ferg Fixed in Version  => 3.0.19

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker