This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <dependency> | |
| <groupId>com.ibm</groupId> | |
| <artifactId>com.ibm.mqjms</artifactId> | |
| <version>${webSphereMQVersion}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.ibm</groupId> | |
| <artifactId>com.ibm.mq.jmqi</artifactId> | |
| <version>${webSphereMQVersion}</version> | |
| </dependency> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- WebSphere MQ Connection Factory --> | |
| <bean id="mqConnectionFactory" class="com.ibm.mq.jms.MQQueueConnectionFactory"> | |
| <property name="hostName"> | |
| <value>${queue_hostname}</value> | |
| </property> | |
| <property name="port"> | |
| <value>${queue_port}</value> | |
| </property> | |
| <property name="queueManager"> | |
| <value>${queue_manager}</value> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void sendMessage(final String text) { | |
| jmsTemplate.send(destination, new MessageCreator() { | |
| public Message createMessage(Session session) throws JMSException { | |
| return session.createTextMessage(text); | |
| } | |
| }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public String readMessage() throws JMSException { | |
| String message = null; | |
| Message msg = jmsTemplate.receive(destination); | |
| if(msg instanceof TextMessage) { | |
| message = ((TextMessage) msg).getText(); | |
| } | |
| return message; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git init |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git add [FILENAMES] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git add -A |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git commit -m ["MESSAGE"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch |
OlderNewer