ibm-messaging / mq-jms-spring

Components to assist MQ JMS integration with Spring frameworks
Apache License 2.0
189 stars 102 forks source link

setup for binding local file #72

Closed petrkmoch closed 2 years ago

petrkmoch commented 3 years ago

I have used local queue manager with JMS administered objects in MQ explorer, provider url like this: file://C:/jndi - there is .binding file, I dont know how to setup application.properties in this situation. Thank you

ibmmqmet commented 3 years ago

See https://stackoverflow.com/questions/31493732/spring-boot-reading-spring-jms-jndi-name-property-from-application-properties-f for one example of using Spring's properties for JNDI lookups (rather than any MQ-specific properties) that can feed into the JMSTemplate object.

I am considering adding some explicit JNDI lookups here in the future, but even if I do, they could only be relevant for CFs, not Destinations which are managed outside the scope of this module - you'd still need spring-level properties for queues & topic lookups.