jmsConfig.setSessionTransacted(serverBehavior.isTransactional());
}
boolean useJndi = endpoint.getJmsVariant().contains(JMSEndpoint.JNDI);
if (useJndi) {
// Setup Destination jndi destination resolver
final JMSDestinationResolver jndiDestinationResolver = new JMSDestinationResolver();
jndiDestinationResolver.setJndiTemplate(jt);
jmsConfig.setDestinationResolver(jndiDestinationResolver);
jmsConfig.setTargetDestination(endpoint.getDestinationName());
setReplyDestination(jmsConfig, endpoint);
if (address != null) {
jmsConfig.setReplyToDestination(address.getJndiReplyToDestinationName());