ibm-mq

How to handle Container Managed,Auto Acknowledge, Transaction Not Supported, MDB exception for message redelivery

不羁的心 提交于 2019-12-12 01:51:27
问题 I got a MDB - EJB 2.1, WebSphere 7 version Container Managed and Auto Acknowledged Transactions marked as Not Supported Now how do I handle exceptions in a way that the message will be preserved during exception and redelivered later? I tried to throw runtime exception from the catch block inside my MDB onMessage method. But that seems to stop the MDB Listener which is unexpected. I cannot call context.setRollBackOnly() as there is no transaction. 回答1: RuntimeException should be fine. Check

Migrating from jboss AS5 to JbossAS6.1

痴心易碎 提交于 2019-12-12 00:08:33
问题 I am migrating the JBOSS AS from 5 to 6 and endup with some errors Caused by: javax.jms.InvalidDestinationException: MQJMS2008: failed to open MQ queue at com.ibm.mq.jms.MQQueueServices.getQueueOpenException(MQQueueServices.java:412) [:6.0.0.0 - j000-L050519.1 ] at com.ibm.mq.jms.JMSServicesMgr.getQueueOpenException(JMSServicesMgr.java:120) [:6.0.0.0 - j000-L050519.1 ] at com.ibm.mq.jms.MQSession.createQReceiver(MQSession.java:6000) [:6.0.0.0 - j000-L050519.1 ] at com.ibm.mq.jms

Permanent JMS Connection failure but no error

戏子无情 提交于 2019-12-11 22:52:24
问题 I have 3 servers - 2 servers running identical spring integration applications and 1 websphere MQ server. Both applications connect to the same topic. After what seems like an unpredictable amount of time (sometimes hours, sometimes days) both applications stop receiving messages. This failure occurs on both applications at approximately the same time. The applications require a restart in order to recover. Both applications have the following config: <bean id="jmsInputFactory" class="com.ibm

Java program MQ 7 connection issue

三世轮回 提交于 2019-12-11 20:17:16
问题 I am trying to connect to the MQ7 Server below is the code : Hashtable props = new Hashtable(); // Change the host name to your host name. Leave it as it is if // queue manager is on the same machine props.put(CMQC.HOST_NAME_PROPERTY, serverConfig.server); props.put(CMQC.PORT_PROPERTY, serverConfig.port); props.put(CMQC.CHANNEL_PROPERTY, serverConfig.sChannel); qMgr = new MQQueueManager(qManager, props); System.out.println("Queue Manager : "+qMgr+" null"); int openOptions = MQC.MQOO_INPUT_AS

LASTMOVE loop is not working

别等时光非礼了梦想. 提交于 2019-12-11 19:19:29
问题 my xml looks like - <ItemMaster> - <ItemMasterHeader> + <ItemID> + <ItemStatus> + <UserArea> - <Classification Type="HOMOLOGATION CLASS"> - <Codes> <Code>E</Code> </Codes> </Classification> + <Classification Type="LP"> + <Classification> - <Classification Type="BRAND"> - <Codes> <Code>002</Code> </Codes> </Classification> Yhe full xml is here http://www.speedyshare.com/MgCCA/download/ItemMaster-2.xml I need to fetch the value of Classification with attribute TYPE= "BRAND" but with below code,

IBM MQ fetch LGETTIME using Java

独自空忆成欢 提交于 2019-12-11 19:14:05
问题 I am trying to fetch Current Depth, Last Puttime & last get time using java from IBM Mq's to monitor queue performance. I was able to fetch LPUTTIME & current depth using below code. I am using MQMESSAGE browse api. But i am having hard time to fetch the LGETTIME (Last message get time)- last message that was processed out of queue. Because MQMESSAGE browse has nothing like Last get time. Any help regarding this ???? public int depthOf(String queueName) throws MQException { MQQueue queue =

Can't connect to IBM MQ Channel from .net core client

孤人 提交于 2019-12-11 18:29:49
问题 I have configured ssl for queue manager name "QMA" and channel named "QMACLCHL". Just set certificate label and chipher name. For queue manager also set the key store path (default value). In that directory generated .kbd file and stashed password file. By commands like these: cd /var/mqm/qmgrs/QMA/ssl runmqakm -keydb -create -db key.kdb -pw ********* -stash runmqakm -cert -create -db key.kdb -label certqma -stashed -size 2048 -sigalg SHA512WithRSA -dn CN=QMA runmqakm -cert -extract -db key

DB2+IBM MQ; enable_MQFunctions = Error — while connecting to database

别来无恙 提交于 2019-12-11 17:35:23
问题 I build docker's image containing IBM MQ 9.1, DB2express-c 9.7 + ubuntu 16.04 64bit. I want to enable MQ functions(sending msg to queue) on my Db2 database. But when I used enable_MQFunctions than I got this error: *** Error -- while connecting to TEST Make sure that user(db2inst1) and password(pass) are valid and that the DB2 instance has started. *** enable_MQFunction finished with error Database, user, pass are all okey. And i Don't understand than before this command w/o problems

Cannot sent message to ibm mq after building the jar

℡╲_俬逩灬. 提交于 2019-12-11 16:38:32
问题 1)When I run the app in idea it works. public class Sender { private MQQueueConnectionFactory cf = new MQQueueConnectionFactory(); private MQQueueConnection connection = null; private MQQueueSession session = null; private Queue queue = null; private MQQueueSender sender = null; private TextMessage message = null; public void send(String msg) throws JMSException { cf.setHostName("host"); cf.setPort(port); cf.setQueueManager("manager"); cf.setChannel("channel"); cf.setTransportType

Program to create a connection and access IBM MQ 7

我怕爱的太早我们不能终老 提交于 2019-12-11 14:56:59
问题 I have two programs First Program : qManager = serverConfig.qMgr; queueName=serverConfig.qName; this.serverType=serverType; //Factory Settings MQEnvironment.hostname =serverConfig.server; MQEnvironment.port = serverConfig.port; // MQEnvironment.channel = serverConfig.sChannel; MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES);//Connection // Create a connection to the queue manager //qMgr = new MQQueueManager(qManager); Second Program : InitialDirContext ctx = null;