[jboss-user] [Microcontainer] - Re: Attachments eligible for being passed to the deployers?

2009-03-09 Thread wolfc
So why does the AliasDeploymentDeployer add an attachment? |protected static void addAliasComponent(DeploymentUnit unit, NamedAliasMetaData alias) |{ | DeploymentUnit component = unit.addComponent(alias.getAliasValue().toString()); | component.addAttachment(NamedAlias

[jboss-user] [Microcontainer] - Re: Attachments eligible for being passed to the deployers?

2009-03-05 Thread jaikiran
"alesj" wrote : | Component deployers should only consume attachments, | not create/generate them. | I wasn't aware of this. And given that the component deployers work on a DeploymentUnit which provides the addAttachment API, i assumed that it would behave the same as other deployers.

[jboss-user] [Microcontainer] - Re: Attachments eligible for being passed to the deployers?

2009-03-05 Thread alesj
"jaikiran" wrote : | So would that mean, the attachment generated by a component deployer is of no pratical use to non-component deployers? | No, that's exactly what I'm trying to explain. Component deployers should only consume attachments, not create/generate them. "jaikiran" wrote : |

[jboss-user] [Microcontainer] - Re: Attachments eligible for being passed to the deployers?

2009-03-05 Thread jaikiran
"alesj" wrote : | Your #3 deployer is not a component deployer. | Just as a FYI - making my #3 deployer a component deployer did get it working. The #3 deployer was give the chance of deploying the deployment. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic

[jboss-user] [Microcontainer] - Re: Attachments eligible for being passed to the deployers?

2009-03-05 Thread jaikiran
"alesj" wrote : | | Your #3 deployer is not a component deployer. | That's correct. "alesj" wrote : | Your #2 puts attachment into component, | hence it's only component deployers that can see that. | Any specific reason for this special treatment? Because after all that is a si

[jboss-user] [Microcontainer] - Re: Attachments eligible for being passed to the deployers?

2009-03-05 Thread alesj
"jaikiran" wrote : | So the question is - what am i missing? :) Your #3 deployer is not a component deployer. Your #2 puts attachment into component, hence it's only component deployers that can see that. Component deployers should mostly consume attachments not creating them - hence the name

[jboss-user] [Microcontainer] - Re: Attachments eligible for being passed to the deployers?

2009-03-05 Thread jaikiran
So here's the real question :) Do attachments to component contexts of an unit get treated the same way? Do these attachments to component contexts get passed onto the deployers? From what i see this is not the case. Here's the example: // This one doesn't do much and is not of much relevance

[jboss-user] [Microcontainer] - Re: Attachments eligible for being passed to the deployers?

2009-03-05 Thread alesj
"jaikiran" wrote : anonymous wrote : So at a later point of time, will the attachment of MyType be passed on to the available deployers? | | Yes it will. | Sure, that's the whole point of attachments. "jaikiran" wrote : | I did not put up my question correctly. Let me just debug throu

[jboss-user] [Microcontainer] - Re: Attachments eligible for being passed to the deployers?

2009-03-05 Thread jaikiran
anonymous wrote : So at a later point of time, will the attachment of MyType be passed on to the available deployers? Yes it will. I did not put up my question correctly. Let me just debug through the issue that i am running into, before maybe posting the correct question. View the original