[Design of AOP on JBoss (Aspects/JBoss)] - Re: AOP asintegration WITHOUT the integration :-)
by adrian@jboss.org
"kabir.khan(a)jboss.com" wrote : What if there is no metadata on the stack? Or would that be a bug when running within JBoss.
|
It wouldn't necessarily be a bug, e.g. you can use the default scope if there isn't one,
but it would be a bug for stuff that is JBoss Managed, e.g. invocations from the
EJB, JMX, JCA container, etc.
anonymous wrote :
| The second part of this is that the metadata is currently only really used at weaving/advisor population time. i.e we use the metadata to get the domain, and the annotations etc. to be used for the bindings etc. I think you have in mind something for the same class to have different interceptor chains invoked depending on the MetaData on the stack?
That's the second part of completing the aop/metadata stuff.
A scoped deployment should be able to aspectize a class (e.g. the OracleConnection)
in a different way to the non-scoped usage (which might not even be aspectized).
I proposed it should be a function of what metadata context creates the Object
(Class instance) and so would require extra work to intercept the instantiation
and check the context to see whether a proxy is needed instead of the original
(aspectized) class in a scoped environment.
You might be able to think of a more efficient way to do this?
Especially for when the default scope doesn't want an aspectized version of the class.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086025#4086025
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086025
18 years, 6 months
[Design of JCA on JBoss] - Re: Resource adapter transaction timeout enforcement
by david.lloyd@jboss.com
"adrian(a)jboss.org" wrote : For a general XAResource you should do both.
| There should be a real (local) timeout in the backend and frontend timeout to cover network splits, etc.
Ok, that makes sense.
"adrian(a)jboss.org" wrote : My question is why are you using an XAResource for remoting? What state do you have to persist during prepare? Do you really need to vote in 2PC?
Remoting has no state, or direct awareness of transactions. However, whatever service you're connecting to by way of Remoting may (and probably does). The reason Remoting 3 has this capability is so that there's a single standard way to propagate transaction state between endpoints - whether it's a database to an app server, two app servers together, or two client applications that don't even know anything about JTA or JCA or anything like that.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086022#4086022
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086022
18 years, 6 months