Skip to content

Instantly share code, notes, and snippets.

View albuquerquev's full-sized avatar

Vijay Albuquerque albuquerquev

View GitHub Profile
@albuquerquev
albuquerquev / springjms_wsmq_1.xml
Created March 31, 2011 08:43
Connecting To WebSphere MQ Using Spring JMS And Maven Post - WebSphere MQ Dependencies In Maven (http://goo.gl/KQ2rh)
<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>
@albuquerquev
albuquerquev / springjms_wsmq_2.xml
Created March 31, 2011 09:11
Connecting To WebSphere MQ Using Spring JMS And Maven Post - Spring Configuration (http://goo.gl/KQ2rh)
<!-- 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>
@albuquerquev
albuquerquev / springjms_wsmq_3.java
Created March 31, 2011 09:16
Connecting To WebSphere MQ Using Spring JMS And Maven Post - Sending A Message (http://goo.gl/KQ2rh)
public void sendMessage(final String text) {
jmsTemplate.send(destination, new MessageCreator() {
public Message createMessage(Session session) throws JMSException {
return session.createTextMessage(text);
}
});
}
@albuquerquev
albuquerquev / springjms_wsmq_4.java
Created March 31, 2011 09:18
Connecting To WebSphere MQ Using Spring JMS And Maven Post - Receiving A Message (http://goo.gl/KQ2rh)
public String readMessage() throws JMSException {
String message = null;
Message msg = jmsTemplate.receive(destination);
if(msg instanceof TextMessage) {
message = ((TextMessage) msg).getText();
}
return message;
}
@albuquerquev
albuquerquev / quick_start_git_1
Last active December 11, 2015 07:08
A Super Quick Start To Git Post - Create A New Repository (http://goo.gl/0w7ei)
git init
@albuquerquev
albuquerquev / quick_start_git_2
Created January 18, 2013 11:08
A Super Quick Start To Git Post - Add Files To The Staging Area (Specific Files) (http://goo.gl/0w7ei)
git add [FILENAMES]
@albuquerquev
albuquerquev / quick_start_git_3
Created January 18, 2013 11:12
A Super Quick Start To Git Post - Add Files To The Staging Area (All Files) (http://goo.gl/0w7ei)
git add -A
@albuquerquev
albuquerquev / quick_start_git_4
Created January 18, 2013 11:16
A Super Quick Start To Git Post - Check The Current Status Of The Repository (http://goo.gl/0w7ei)
git status
@albuquerquev
albuquerquev / quick_start_git_5
Created January 18, 2013 11:17
A Super Quick Start To Git Post - Commit Staged Files Into The Repository (http://goo.gl/0w7ei)
git commit -m ["MESSAGE"]
@albuquerquev
albuquerquev / quick_start_git_6
Created January 18, 2013 11:19
A Super Quick Start To Git Post - List All Of The Branches In The Repository (http://goo.gl/0w7ei)
git branch