-
1. Re: Moving core o.j.invocation classes to common
starksm64 Sep 13, 2006 5:48 PM (in response to brian.stansberry)These classes really intersect with the aop classes, and we have to get to a reusable interceptor model based on the aop stuff to allow for aspects to be resued. Aop has duplicate MarshalledValue* style classes as well. A split of the aop as needed into something in the aop-mc-int project of the microcontainer:
https://svn.jboss.org/repos/jbossas/projects/microcontainer/trunk/ -
2. Re: Moving core o.j.invocation classes to common
brian.stansberry Sep 13, 2006 11:49 PM (in response to brian.stansberry)OK, good. Putting a bunch more classes into common-core didn't have a good feel to it, kind of the first step on the road to making common-core a dumping ground. If there's another natural home for this style of class, that's better.
Except...I do think MarshalledValueIn(Out)putStream belong in common. Server or aop version, whichever. Unless I missed something those are just utility classes. Having to pull in an aop-mc-int binary just to use those 2 kinda sucks.
Unless in the end anyone who uses them (i.e. JBC) is going to end up depending on the microcontainer binaries anyway. -
3. Re: Moving core o.j.invocation classes to common
starksm64 Sep 14, 2006 12:07 AM (in response to brian.stansberry)org.jboss.aop.util.{MarshalledValue,MarshalledValueInputStream,MarshalledValueOutputStream} are just copies of the server classes that only have dependencies on j2se classes. They could easily be moved to the common project.
-
4. Re: Moving core o.j.invocation classes to common
manik Sep 14, 2006 7:29 AM (in response to brian.stansberry)Sounds precisely like what we need then.
-
5. Re: Moving core o.j.invocation classes to common
tom.elrod Sep 14, 2006 12:53 PM (in response to brian.stansberry)So if I understand correctly, the following go into microcontainer:
Invocation
InvocationContext
InvocationKey
InvocationType
Invoker
JBossLazyUnmarshallingException
PayloadKey
SecurityActions
and the following go into common:
MarshalledInvocation
MarshalledValue
MarshalledValueInputStream
MarshalledValueOutputStream
correct? -
6. Re: Moving core o.j.invocation classes to common
starksm64 Sep 14, 2006 12:58 PM (in response to brian.stansberry)No, the mc should not be dealing with these legacy classes:
Invocation
InvocationContext
InvocationKey
InvocationType
Invoker
JBossLazyUnmarshallingException
PayloadKey
SecurityActions
These would need to be a legacy unified invoker artifact in a remoting subproject.
The new aop based invoker model is what needs to exist in the mc project as the basis for a unified proxy/aspect model. -
7. Re: Moving core o.j.invocation classes to common
brian.stansberry Sep 14, 2006 2:45 PM (in response to brian.stansberry)For the stream port, see http://jira.jboss.com/jira/browse/JBCOMMON-8.
IIRC, the committer list for common was limited. Is that still the case? I assigned the JIRA to myself but will need rights. -
8. Re: Moving core o.j.invocation classes to common
starksm64 Sep 14, 2006 2:58 PM (in response to brian.stansberry)I added bstansberry@jboss.com to the common dev list
-
9. Re: Moving core o.j.invocation classes to common
brian.stansberry Sep 14, 2006 4:10 PM (in response to brian.stansberry)Thanks for adding me.
"scott.stark@jboss.org" wrote:
These would need to be a legacy unified invoker artifact in a remoting subproject.
Where were you thinking this legacy artifact would be used? In 5.0.x, the new model is going to be used on the server side, so obviously not there.
Tom mentioned you'd expressed interest in backporting the new stuff to 4.0. In 4.0 I imagine the new model could be an alternative for the client side. But don't see how it could used be on the server side w/o breaking any existing custom interceptors people have written. So, if in 4.0 org.jboss.invocation is the server-side model, don't know why we'd move it to remoting.
Only thing I could think of is in 5.0.x having some special proxy factories that could create a proxy that used the old model, and then a special invoker that could translate the call using the old model into the new model for use inside the server. A transition aid for people with custom client interceptors/load balance policies. But, well, yuck :( -
10. Re: Moving core o.j.invocation classes to common
starksm64 Sep 14, 2006 6:12 PM (in response to brian.stansberry)Only as a backward compatibility solution. We have users running 3.2.8.SP1 client jars in jdk1.3 envs talking to 4.0.x servers because of legacy setup issues and we will have the same thing with 5.0.x.