JBossMessageDrivenBeanMetaData override = overrideEjb instanceof JBossGenericBeanMetaData ? null: (JBossMessageDrivenBeanMetaData) overrideEjb;
JBossMessageDrivenBeanMetaData original = originalEjb instanceof JBossGenericBeanMetaData ? null: (JBossMessageDrivenBeanMetaData) originalEjb;
ActivationConfigMetaData originalAConfig = null;
AroundInvokesMetaData originalAInvokes = null;
SecurityIdentityMetaData originalEjbTimeoutIdentity = null;
if(original != null)
{
if(original.acknowledgeMode != null)
this.acknowledgeMode = original.acknowledgeMode;
if(original.destinationJndiName != null)
this.destinationJndiName = original.destinationJndiName;
if(original.mdbClientId != null)
this.mdbClientId = original.mdbClientId;
if(original.mdbPassword != null)
this.mdbPassword = original.mdbPassword;
if(original.mdbSubscriptionId != null)
this.mdbSubscriptionId = original.mdbSubscriptionId;
if(original.mdbUser != null)
this.mdbUser = original.mdbUser;
if(original.messageDestinationLink != null)
this.messageDestinationLink = original.messageDestinationLink;
if(original.messageDestinationType != null)
this.messageDestinationType = original.messageDestinationType;
if(original.messageSelector != null)
this.messageSelector = original.messageSelector;
if(original.messagingType != null)
this.messagingType = original.messagingType;
if(original.resourceAdapterName != null)
this.resourceAdapterName = original.resourceAdapterName;
if(original.subscriptionDurability != null)
this.subscriptionDurability = original.subscriptionDurability;
if(original.timeoutMethod != null)
this.timeoutMethod = original.timeoutMethod;
originalAConfig = original.activationConfig;
originalAInvokes = original.aroundInvokes;
originalEjbTimeoutIdentity = original.ejbTimeoutIdentity;
}
ActivationConfigMetaData overrideAConfig = null;
AroundInvokesMetaData overrideAInvokes = null;
SecurityIdentityMetaData overrideEjbTimeoutIdentity = null;
if(override != null)
{
if(override.acknowledgeMode != null)
this.acknowledgeMode = override.acknowledgeMode;
if(override.destinationJndiName != null)
this.destinationJndiName = override.destinationJndiName;
if(override.mdbClientId != null)
this.mdbClientId = override.mdbClientId;
if(override.mdbPassword != null)
this.mdbPassword = override.mdbPassword;
if(override.mdbSubscriptionId != null)
this.mdbSubscriptionId = override.mdbSubscriptionId;
if(override.mdbUser != null)
this.mdbUser = override.mdbUser;
if(override.messageDestinationLink != null)
this.messageDestinationLink = override.messageDestinationLink;
if(override.messageDestinationType != null)
this.messageDestinationType = override.messageDestinationType;
if(override.messageSelector != null)
this.messageSelector = override.messageSelector;
if(override.messagingType != null)
this.messagingType = override.messagingType;
if(override.resourceAdapterName != null)
this.resourceAdapterName = override.resourceAdapterName;
if(override.subscriptionDurability != null)
this.subscriptionDurability = override.subscriptionDurability;
if(override.timeoutMethod != null)
this.timeoutMethod = override.timeoutMethod;
overrideAConfig = override.activationConfig;
overrideAInvokes = override.aroundInvokes;
overrideEjbTimeoutIdentity = override.ejbTimeoutIdentity;
}
if(override != null && override.createDestination != null)
this.createDestination = override.createDestination;
else if (original != null && original.createDestination != null)
this.createDestination = original.createDestination;
if(originalAConfig != null || overrideAConfig != null)
{
if(activationConfig == null)
activationConfig = new ActivationConfigMetaData();
activationConfig.merge(overrideAConfig, originalAConfig);
}
if(originalAInvokes != null || overrideAInvokes != null)
{
if(aroundInvokes == null)
aroundInvokes = new AroundInvokesMetaData();
aroundInvokes.merge(overrideAInvokes, originalAInvokes);
}
if(originalEjbTimeoutIdentity != null || overrideEjbTimeoutIdentity != null)
{