if(mdb.getMessageDestinationType() != null)
{
properties.add(new ActivationConfigPropertyImpl("destinationType", mdb.getMessageDestinationType()));
}
SubscriptionDurability subscriptionDurability = mdb.getSubscriptionDurability();
if(subscriptionDurability != null)
{
String durable = "false";
if (subscriptionDurability.equals(SubscriptionDurability.Durable))
durable = "true";
properties.add(new ActivationConfigPropertyImpl("subscriptionDurability", durable));
if (subscriptionDurability.equals(SubscriptionDurability.Durable))
properties.add(new ActivationConfigPropertyImpl("subscriptionName", "subscriptionName"));
}
// prefer jndi name over message destination link
if (mdb.getDestinationJndiName() != null)