Re: [jboss-user] [JBoss Microcontainer] - Inputs to deployers
by jaikiran pai
jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion
"Inputs to deployers"
To view the discussion, visit: http://community.jboss.org/message/534478#534478
--------------------------------------------------------------
>
> Ales Justin wrote:
>
>
>
> In most cases real deployers are meant to be component deployers,
> where we expect only a single attachment by that type,
> hence we are able to store it under class name.
A bit of a old thread, but I happened to run into something along these lines recently and am not sure I understand how the BeanMetadataDeployer works in cases like this one. I see many deployers which do this:
public class ADeployer
{
public ADeployer()
{
setOutput(BeanMetadata.class);
}
public void deploy(DeploymentUnit du)
{
String blahOne = "blah";
BeanMetaDataBuilder builder = BeanMetaDataBuilderFactory.createBuilder(blahOne, SomeClass.class);
// ... some more specifics
BeanMetaData bmdOne = builder.getBeanMetaData();
String blahTwo = "onemoreblah";
BeanMetaDataBuilder builderTwo = BeanMetaDataBuilderFactory.createBuilder(blahTwo, SomeClass.class);
// ... some more specifics
BeanMetaData bmdTwo = builderTwo.getBeanMetaData();
// add both these as attachments to unit
unit.addAttachment(blahOne, bmdOne);
unit.addAttachment(blahTwo, bmdTwo);
}
}
So we have ADeployer which outputs BeanMetaData. In its deploy, it attaches 2 different instances of BeanMetaData and uses some *random* unique keys (i.e. does *not* use BeanMetadata.class.getName() as the key) to add it as attachment.
I see that we have many such deployers around and strangely the BeanMetaDataDeployer is considered relevant and the BeanMetaDataDeployer ends up deploying these BMDs. How does that work (since the attachment keys are *not* the type name of the BeanMetadataDeployer's input)? Is there some specific deployer specific config that allows this to work?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/534478#534478]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
Re: [jboss-user] [JCA Development] - JcaXAResourceRecovery
by Jesper Pedersen
Jesper Pedersen [http://community.jboss.org/people/jesper.pedersen] replied to the discussion
"JcaXAResourceRecovery"
To view the discussion, visit: http://community.jboss.org/message/534470#534470
--------------------------------------------------------------
We will go with Adrian's design on this.
We will start with adding the new recover properties to the xa-datasource and thereby create a jboss-ds_5_1.dtd for EAP. These properties will be optional if the specified user/domain doesn't have the permissions needed.
Next will be implementing the XA recovery interface for the deployments and the TxConnectionManager - we will see if we need a property to split the connection manager into a "standard" part and a "recovery" part - more on that later.
I'll update the thread once I have the location for the code and the branch.
Testing this functionality will be a big task - Ivo, you are manually testing the current functionality in the EAP branch, correct ? Have you tried to test against pure Java databases, like Derby ?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/534470#534470]
Start a new discussion in JCA Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months