Re: [concern-users] Transient values in subjects, Controller exception
Brought to you by:
hengels,
leonchiver
|
From: Holger E. <he...@me...> - 2005-10-24 08:10:50
|
Quoting Manfred Deutsch <mf...@ma...>: > Hello, > > 1) Is is possible to store transient values in subjects? > > I added a non persistant attribute to a subject. In an action I tried > to change the value of this attribute. The call to setValue > succeeded, but when it returned the value wasn't changed. Looks like > it was set to an proxy? I don't quite understand, what you mean here. Are you using hibernate and are you talking about a hibernate mapped property? > 2) I want to process a subject immediately from within a session bean > (JBoss). So I called subject.process(subjectId). The call throws a > ControllerException: transaction not allowed. > subject.announceSubject(...) at same place works fine. > How should I start immediate processing of a subject from within a > session bean? the call to process will run several transactions (one per activity). it is not allowed to run it from inside a running transaction. commit or suspend your transaction, before calling process. Holger |