Showing posts with label ibm mq. Show all posts
Showing posts with label ibm mq. Show all posts

Wednesday, May 3, 2017

How to solve IBM MQ NoClassDefFoundError over jms configuration?

I f you are using IBM MQ jars to development, you must carry about jms specification you are using, sometimes not all distributions is not used over application instend of that the following error can occurs:

java.lang.NoClassDefFoundError: com.ibm.mq.internal.MQCommonServices
...

The solution is to use jms.jar and part of the jars inside IBM MQ distribution as example like:
  • com.ibm.mq.jar
  • com.ibm.mq.jmqi.jar
  • com.ibm.mq.headers.jar
  • com.ibm.mq.commonservices.jar

Best Regards,

Friday, March 3, 2017

An utility for connecting with IBM MQ

There is a utility provided by IBM which allow you connection between queue manager, it is called RFHUtil and it could be download from here:

http://www-01.ibm.com/support/docview.wss?uid=swg24000637

To connect you must declare some enviroment variables like this one:

MQSAMP_USER_ID=<USERNAME>
MQSERVER=<QUEUEMANAGER.NAME>/TCP/<IP>(<PORT>)

You must run rfhutilc.exe after setting this variables.

Important links:

Tuesday, August 23, 2016

How to configurate Remote Queue Manager for IBM MQ?

After having configured IBM MQ(1), we need to following next steps:
  1. Create Queue Manager with Permit a standby instance and Create server-connection channel.
  2. Permit Listen on port number with a adecute number.
  3. After Queue Manager create we need to create Channel with server connection channel
  4. Add MCA user id to Queue Manager Channel, example "mqm"
  5. Remove permisions from channel: 
 
We will have configurate a remote Queue Manager.

Import links:

Wednesday, June 8, 2016

How to install Websphere Message Broker 7 and Websphere Message Queue 7 on Windows?

There is such a difference installing WMB 7 and WMQ 7 on Windows than Linux or Unix, here is a short tutorial going through next to next that is a short description of what should happen instead  of Linux or Unix where you have care of library of operating system:

http://codefixes.blogspot.mx/2016/05/missing-libraries-on-installation-of.html

In other cases in previous you must care of creating mqm group like version 6.X and asign these group to the users but in next versions you skip these creations.


Best regards,

Sunday, June 5, 2016

How to install IBM Message Queue 7.5 on Ubuntu 16.04?

Guia rápida de instalación IBM Message Queue 7.5 on 16.04

0. Instalables (IBM MQ 7.5)
http://www.ibm.com/developerworks/downloads/ws/wmq/

1. Prerequisitos:
1.1. Instalar JDK 6
En el siguiente enlace se puede encontrar una guia rapida para su instalación:
http://codefixes.blogspot.mx/2015/09/how-to-install-jdk-on-ubuntu-14.html
1.2. Verificar permisos de sudo
#Agregar usuario al siguiente archivo
/etc/sudoers

# User privilege specification
root    ALL=(ALL:ALL) ALL
newuser ALL=(ALL:ALL) ALL


1.2. Configurar el equipo con variables necesarias

1.2.1. Add the following lines to sysctl.conf file:
 user-vbox:~$ sudo gedit /etc/sysctl.conf

#################################
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.shmmax = 268435456
kernel.sem = 500 256000 250 1024
 

fs.file-max = 524288
kernel.sem = 500 256000 250 1024
net.ipv4.tcp_keepalive_time = 300

#for ibm mq 9, posible values are 0,1,2
vm.overcommit_memory=2
#################################



user-vbox:~$ sudo sysctl -p


1.2.1. Add the following lines to limits.conf file:

user-vbox:~$ sudo gedit /etc/security/limits.conf

#################################
mqm             hard   nofile        10240
mqm             soft    nofile         10240

################################# 

1.2.1. Install required tools 

user-vbox:~$ sudo apt-get install rpm
user-vbox:~$ sudo apt-get install linux-headers-$(uname -r)

user-vbox:~$ sudo apt-get install pax

2. Instalación del producto
2.1. Colocarse en la ruta del instalable
user-vbox:~$ chmod 755 MQ_7.5.0.2_TRIAL_LNX_ON_X86_64_ML.tar.gz
user-vbox:~$ tar -xzvf MQ_7.5.0.2_TRIAL_LNX_ON_X86_64_ML.tar.gz
user-vbox:~$ cd MQServer
user-vbox:~$ sudo ./mqlicense.sh


2.1. Instalar cada archivo rpm en el siguiente orden recomendado
################################
################################

2.2. Verificar la instalación ejecutando  el siguiente comando
user-vbox:~$ su mqm -c "/opt/mqm/bin/mqconfig"
user-vbox:~$ sudo ./setmqinst -i -p /opt/mqm
 
2.2.1. Modificar contraseña de usuario mqm
user-vbox:~$ sudo passwd mqm

################################################
2.2.1. Asignar permisos a usuarios para crear objetos dento IBM MQ


user-vbox:~$ sudo addgroup <usuario-aplicativo> mqm
# Permiso para el usuario de message broker 
user-vbox:~$ sudo addgroup <usuario-aplicativo> mqbrkrs
# Agregar usuario, requiere reinicio de sesion user-vbox:~$ sudo usermod -a -G groupName <usuario-aplicativo>

2.2.2. Load the environment variable for MQ using setmqenv
$. /opt/mqm/bin/setmqenv


3. Desintalar IBM MQ
 
################################################

rpm -qa | grep MQSeries

#REMOVE INSTALLATION
sudo rpm -e MQSeriesExplorer_dev-8.0.0-4

################################################3



4. Enlaces importantes





Best regards,