Skip to content

Instantly share code, notes, and snippets.

@huahsin68
Created October 2, 2018 14:18
Messaging configuration in Liberty Profile
<featureManager>
<feature>javaee-7.0</feature>
<feature>localConnector-1.0</feature>
<feature>wasJmsServer-1.0</feature>
<feature>jms-2.0</feature>
<feature>mdb-3.2</feature>
<feature>wasJmsClient-2.0</feature>
</featureManager>
<wasJmsEndpoint host="*" wasJmsPort="7276" wasJmsSSLPort="7286"/>
<connectionManager id="ConMgr1" maxPoolSize="2"/>
<messagingEngine>
<queue forceReliability="ReliablePersistent" id="MyLibertyQueue" maxMessageDepth="10"/>
</messagingEngine>
<jmsQueueConnectionFactory connectionManagerRef="ConMgr1" jndiName="jms/MyLibertyQCF">
<properties.wasJms nonPersistentMapping="ExpressNonPersistent" persistentMapping="ReliablePersistent" remoteServerAddress="localhost:7276:BootstrapBasicMessaging"/>
</jmsQueueConnectionFactory>
<jmsActivationSpec id="jms2-0.0.1-SNAPSHOT/MessageBean">
<properties.wasJms destinationRef="myResponseQueue" destinationType="javax.jms.Queue" remoteServerAddress="localhost:7276:BootstrapBasicMessaging"/>
</jmsActivationSpec>
<jmsQueue id="myResponseQueue" jndiName="jndi/MyLibertyQueue">
<properties.wasJms priority="1" queueName="MyLibertyQueue" readAhead="AsConnection" timeToLive="60000s"/>
</jmsQueue>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment