[Design of EJB 3.0] - Serialization of ProxiedStatefulBeanContext
by bstansberry@jboss.com
Discussion of http://jira.jboss.com/jira/browse/EJBTHREE-1355
Basic question here is how much effort we want to put into this, since all this code is meant to be replaced by EJBTHREE-1026 in 5.1.
Problem here is ProxiedStatefulBeanContext is a subclass of StatefulBeanContext, but really doesn't function as one, i.e doesn't actually use any of the fields of superclasses and overrides all methods. Carlo added some invariant checks to the StatefulBeanContext class hierarchy and eliminated the no-arg constructors that allowed violation of those invariants. Quite appropriate for StatefulBeanContext. But the invariants aren't quite applicable to ProxiedStatefulBeanContext, and eliminating the no-arg constructors in the class hierarchy prevents proper serialization/externalization.
A correct class design here would be to have StatefulBeanContext and ProxiedStatefulBeanContext both be unrelated impls of some common interface. But that's a lot of work. Better IMHO to just go with the EJBTHREE-1026 solution in 5.0 before making that much effort!
I suggest for 5.0 we just restore the (protected) no arg constructors to StatefulBeanContext and superclasses, mark them as deprecated and document them as only for use by ProxiedStatefulBeanContext. I've done that on my local checkout and most of the clustered sfsb tests now pass.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150521#4150521
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150521
17 years, 11 months
[Design of JBoss jBPM] - Re: organization of the enterprise module
by tom.baeyens@jboss.com
"alex.guizar(a)jboss.com" wrote : The current status:
|
| * QA: currently there are two tests, one for a one-shot timer and one for a repeating timer. No tests exist for JTA synchronization in the case of either success or failure. I will backport those from the PVM enteprise tests.
|
that is a good start, indeed.
this reminds me: what is the status on describing the existing and missing scenarios on the pvm enterprise test cases ?
"alex.guizar(a)jboss.com" wrote :
| * Configuration: seems done, pending the result of the additional tests.
|
ok
"alex.guizar(a)jboss.com" wrote :
| * Documentation: absent.
|
make sure that at least the docs don't contain any references to the old stuff. either the parts in the config files. or if there is a description of the SLSB timer thing, make sure it's replaced with the entity explanation.
"alex.guizar(a)jboss.com" wrote :
| * Migration: you mean, from the session bean approach? Please give me more details.
if people are migrating from jbpm 3.2.2 to 3.2.3 and using the enterprise scheduler service, is there anything that they should do for this ?
updates to the db ?
making sure the queues are empty ?
all such things (even if it is nothing) should be documented in the release.notes.html
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150506#4150506
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150506
17 years, 11 months