I would like to model an object cache using entity beans for my model. In my case the object is a network element that contains operational state info. I would like to store this info in an entity bean without persisting it to the database since it is transient state info. Is there anyway to keep state variables in an entity bean without having a corresponding column in a database table for them.
For CMP just do not specify the fields as persistent for BMP dont store them yourself. Dont forget to handle the fiedls in ejbPassivate (set them to null) and ejbActive (recompute them).