jms

ActiveMQ JMS XA Atomikos - Transaction not started error

廉价感情. 提交于 2019-12-24 02:12:40
问题 The situation is we want to use XA transactions to coordinate activity between ActiveMQ and Hibernate (Sql Server 2008). We are using: Spring 3.0.5 Hibernate 3.6.2 ActiveMQ 5.5.0 Atomikos 3.7 We are seeing the following errors getting generated in the log file related to the transaction has not been started. These are always related to JMS. Transaction '[ID]' has not been started. These are getting generated into the logs all the time. The issue is more complicated in that we have 3 web

Do the JMS spec or the various implementations support delivery confirmation of messages?

亡梦爱人 提交于 2019-12-24 02:06:56
问题 Lets say Producer sends a message to the JMS Topic "news". Consumer1 reads the message, but Consumer2 is offline so he hasn't read the message yet. Is there any build-in (to the spec or impl) way for the Producer to be notified that Consumer1 has read his message, but Consumer2 has not? This would, in fact, mirror the Read Notification of an email. Clearly you could implement this by having each Consumer send an acknowledgement, but I'm looking for something already a part of JMS or a JMS

IBM MQ - how to connect to Queue manager with multiple connections names ( one is fail over)

时光毁灭记忆、已成空白 提交于 2019-12-24 01:24:42
问题 I am quite new to IBM MQ's. Mine is a multi-instance queue manager. One instance is like fail-over. How can I connect to them even if one of is down. I am not sure whether my terminology is right or not? I am trying to connect using below example now https://raw.githubusercontent.com/ibm-messaging/mq-dev-samples/master/gettingStarted/jms/JmsPutGet.java 回答1: Instead of populating WMQ_HOST_NAME and WMQ_PORT populate WMQ_CONNECTION_NAME_LIST with a comma separated list that is in the format

WebSphere Camel JMS, spring, taskExecutor, haninging Threads

試著忘記壹切 提交于 2019-12-24 00:58:41
问题 I'm trying to integrate Camel with WebSphere. It is working fine, for all but one thing. The scenario looks like: JMS (WMQ) -> routing/transformation -> BEAN (which does a JPA (OpenJPA1.2/DB2) commit). To be able to plug into WAS transaction manager and mangaed threads, I'm inserting the work manager as taskExecutor in camel: <!-- Selected parts of the spring config --> <tx:jta-transaction-manager/> <bean id="wasTaskExecutor" class="org.springframework.scheduling.commonj

How to set MQMD ApplicationID field via JMS API?

孤街浪徒 提交于 2019-12-24 00:43:49
问题 I'm using the JMS API to send messages to a Websphere MQ server. The application that pulls the messages I create want me to set up the ApplicationID field in the MQMD structure to constant value. I could not find a way in the JMS API to access the MQMD structure The question: Is there a way doing this? if yes then how? If no, then is my only option is to use the MQ java API, instead of JMS API? 回答1: As of v7.0, you can read all the MQMD fields as JMS message properties and can set many of

Overwriting Transaction Timeout set by WebSphere?

╄→гoц情女王★ 提交于 2019-12-24 00:34:34
问题 I am currently in a project where we have a method that is called to generate a report and then return it to the client side. The whole process works something like this: [[Application]] --> [[JMS]] --> [[DB Server]] However, our WebSphere has a global setting where Transaction Timeout is set to 2 minutes, and Maximum Transaction Timeout is set to 5 minutes. This has caused us some problems because some of our reports take longer than 2 minutes, and as such, the connection is dropped at the

JMS client app Error. Failed to connect using URL <t3://localhost:7001>

旧城冷巷雨未停 提交于 2019-12-23 21:04:43
问题 I'm writing client application on C# to connect to my local JMS (Weblogic Server 12c). I try to use sample code from here http://docs.oracle.com/cd/E15523_01/web.1111/e13746/app_examples.htm#JMSDN180 But on line context = ContextFactory.CreateContext(paramMap); I have error: An exception of type 'WebLogic.Messaging.Transport.TransportException' occurred in WebLogic.Messaging.dll but was not handled in user code Additional information: Failed to connect using URL t3://localhost:7001 may be I

Synchronous request-reply pattern in a Java EE container

做~自己de王妃 提交于 2019-12-23 19:36:00
问题 I am looking to implement an synchronous request-reply pattern using JMS inside a Java EE container. The sequence would be something like this Browser makes a request to web application for data. This is a blocking request (say on thread T1). The web app needs to connect to a remote web service to fulfill the above request. So it forms a request and places it on a queue (with a reply-to queue also declared). The remote service processes the requests and places the response on to the reply-to

How do I delay JMS Message sending?

不问归期 提交于 2019-12-23 16:07:37
问题 How do I delay JMS Message sending or proceed uncertain time? I am using Weblogic, as you know, after JMS sending, the receiver will process the message asynchronously, but, at this time or sometimes the external resource are not ready for the receiver, therefore, I want to have some check logic to delay send or process the message. I guess for example: I put the message into pending queue then frequently check the resource availability, once it is then send or proceed the message? Do

An error has occurred with the WebSphere MQ JMS connection

旧巷老猫 提交于 2019-12-23 12:44:29
问题 Getting below error with MQ(Message Queue), how to resolve this? Message : com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ1107: A problem with this connection has occurred. An error has occurred with the WebSphere MQ JMS connection. Use the linked exception to determine the cause of this error. Caused by [1] --> Message : com.ibm.mq.MQException: JMSCMQ0001: WebSphere MQ call failed with compcode '2' ('MQCC_FAILED') reason '2009' ('MQRC_CONNECTION_BROKEN'). Caused by [3] --> Message : com