@Override
public void merge(JBossEnterpriseBeanMetaData override, EnterpriseBeanMetaData original, String overridenFile, String overrideFile, boolean mustOverride)
{
super.merge(override, original, overridenFile, overrideFile, mustOverride);
JBossMessageDrivenBeanMetaData joverride = (JBossMessageDrivenBeanMetaData) override;
MessageDrivenBeanMetaData soriginal = (MessageDrivenBeanMetaData) original;
// messagingType
if(joverride != null && joverride.messagingType != null)
messagingType = joverride.messagingType;
else if(soriginal != null && soriginal.getMessagingType() != null)
messagingType = soriginal.getMessagingType();
// timeoutMethod
if(joverride != null && joverride.timeoutMethod != null)
timeoutMethod = joverride.timeoutMethod;
else if(soriginal != null && soriginal.getTimeoutMethod() != null)
timeoutMethod = soriginal.getTimeoutMethod();
// messageDestinationType
if(joverride != null && joverride.messageDestinationType != null)
messageDestinationType = joverride.messageDestinationType;
else if(soriginal != null && soriginal.getMessageDestinationType() != null)
messageDestinationType = soriginal.getMessageDestinationType();
// messageDestinationLink
if(joverride != null && joverride.messageDestinationLink != null)
messageDestinationLink = joverride.messageDestinationLink;
else if(soriginal != null && soriginal.getMessageDestinationLink() != null)
messageDestinationLink = soriginal.getMessageDestinationLink();
// Fixup the activation config
ActivationConfigMetaData jbossActivationConfig = null;
if (joverride != null && joverride.getActivationConfig() != null)
jbossActivationConfig = joverride.getActivationConfig();
ActivationConfigMetaData originalActivationConfig = null;
if(soriginal != null)
originalActivationConfig = soriginal.getActivationConfig();
if(jbossActivationConfig != null || originalActivationConfig != null)
{
if(activationConfig == null)
activationConfig = new ActivationConfigMetaData();
activationConfig.merge(jbossActivationConfig, originalActivationConfig);
}
// aroundInvokes
if(joverride != null && joverride.aroundInvokes != null)
aroundInvokes = joverride.aroundInvokes;
else if(soriginal != null && soriginal.getAroundInvokes() != null)
aroundInvokes = soriginal.getAroundInvokes();
// messageSelector
if(joverride != null && joverride.messageSelector != null)
messageSelector = joverride.messageSelector;
else if(soriginal != null && soriginal.getMessageSelector() != null)
messageSelector = soriginal.getMessageSelector();
// messageSelector
if(joverride != null && joverride.acknowledgeMode != null)
acknowledgeMode = joverride.acknowledgeMode;
else if(soriginal != null && soriginal.getAcknowledgeMode() != null)
acknowledgeMode = soriginal.getAcknowledgeMode();
// messageSelector
if(joverride != null && joverride.subscriptionDurability != null)
subscriptionDurability = joverride.subscriptionDurability;
else if(soriginal != null && soriginal.getSubscriptionDurability() != null)
subscriptionDurability = soriginal.getSubscriptionDurability();
// destinationJndiName
if(joverride != null && joverride.getDestinationJndiName() != null)
destinationJndiName = joverride.getDestinationJndiName();
else if(soriginal != null && soriginal.getMappedName() != null)
destinationJndiName = soriginal.getMappedName();
// mdbUser
if(joverride != null && joverride.mdbUser != null)
mdbUser = joverride.mdbUser;
// mdbPassword
if(joverride != null && joverride.mdbPassword != null)