[Design of AOP on JBoss (Aspects/JBoss)] - Re: AOP asintegration WITHOUT the integration :-)
by adrian@jboss.org
"kabir.khan(a)jboss.com" wrote : "adrian(a)jboss.org" wrote : "adrian(a)jboss.org" wrote :
| | | My preferred solution to use the scopes. i.e. you can choose
| | | to deploy aop config at the SERVER, SUBSYSTEM, APPLICATION level, etc.
| | | but this requires doing a lot work fixing everything to make sure
| | | it sets the correct thread local MetaData for AOP to know which Scope
| | | applies at runtime.
| | |
| |
| | This thead local is really just a generalization of ejbs/mbeans
| | setting the correct context classloader and java:/comp/env
| |
| | In principle once this is done. The only work required by AOP
| | would be for the deployer to create hierarchical ...
| |
|
| Is this work in progress? Or please let me know how I can help make this happen.
|
It's not work in progress, at least not yet.
I only added the deployments scope a week ago.
I'd suggest you try it yourself with a mock test, e.g. write an aspect
that pushes the metadata from the advisor onto the stack and test it using
the aop proxy where you can pass in the metadata.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082057#4082057
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082057
17 years, 1 month
[Deployers on JBoss (Deployers/JBoss)] - Re: Deployer order solely based on inputs/outputs now?
by adrian@jboss.org
"bill.burke(a)jboss.com" wrote : Ok, after talking to Ales I think i get it.
|
| There would be:
|
| EJBParserDeployer
| EJBDescribeDeployer
| EJBComponentDeployer
|
| So, if my EJBDescribeDeployer is part of the DESCRIBE stage, it should happen after EVERY DeploymentUnit has gone through Parsing, right?
This can only work if you add the dependencies to the deployment rather than
the ejb instance. The same way OSGi dependencies work.
It has to be real dependencies, no "flow" or ordering of deployers is going to
solve the problem where deployments are deployed piecemeal, i.e. not at
the same time, or even worse (more complicated)
* redeployed
* one of the transient dependencies is missing and deployed later
The real solution is to create your own DependencyItem implementation
like I've been telling you to over a year now.
The JNDI plugin to the MC registry is stupidly inefficient, it's ok as an
early hack to try out the idea.
A DependencyItem that does the same thing, but only for those you expect to
be JNDI dependencies is much more efficient.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082040#4082040
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082040
17 years, 1 month
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Failure on XAResourceRecoveryTest
by mark.little@jboss.com
Hi Clebert. I'll try to take a stab at this, but I think I need more information from you.
"clebert.suconic(a)jboss.com" wrote : I need some help understanding this...
|
| XAResourceRecoveryTest::testRecoveryOnSend will aways fail if running after XARecoveryTest::testMockCoordinatorRecoveryWithJBossTSXids.
|
Fails in what way? Can you c&p the precise error message you get?
anonymous wrote :
| After some investigation, XAResourceRecoveryTest would fail by simply initializing TxControl by calling any method (such as TxControl.isEnabled()).
|
That should be OK. This class is just a wrapper/helper for things that are idempotent.
anonymous wrote :
| http://anonsvn.jboss.org/repos/messaging/trunk/tests/src/org/jboss/test/m...
|
| This is because testMockCoordinatorRecoveryWithJBossTSXids is instantiating com.arjuna.ats.jta.xa.XidImple, and that is initializing TxControl which is starting a ObjectStore.
|
No, it doesn't start an objectstore (an objectstore can never be started). It assigns one to the instance variable if one has not already been created, but that's it and it should be idempotent, i.e., subsequent tests would just do the same thing if they had to start from scratch.
anonymous wrote :
| Later on testRecoveryOnSend, the test would get a message "Told not to rollback {0}" on logs. I still don't know what's the reason but any help is welcome.
|
This message is coming from recovery and is because the recovery module has found some Xids that it doesn't know about and rather than roll it back (which would be bad if the machine/objectstore is being shared between other TM instances) it puts out this warning and ignores it. Check the TS failure docs on NodeName. If you can't find it, ping me on IM.
anonymous wrote :
| I was considering to comment the Mock Test out until we find a way to use the XidImple directly.
|
Hopefully that won't be necessary.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082030#4082030
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082030
17 years, 1 month