openmq

Spring JMS Session Issue When Using Open MQ

|▌冷眼眸甩不掉的悲伤 提交于 2020-02-25 05:43:32
问题 I'm using spring-jms-3.0.6.RELEASE and open MQ. Any ideas on why the below exception would be raise? 2012-05-02 17:56:18,420 [stuJmsContainer-803059] WARN org.springframework.jms.listener.DefaultMessageListenerContainer - Setup of JMS message listener invoker failed for destination 'TestQ' - trying to recover. Cause: MQRA:CA:createSession failed-Only one JMS Session allowed when managed connection is involved in a transaction web.xml: <context-param> <param-name>contextConfigLocation</param

Spring JMS Session Issue When Using Open MQ

天大地大妈咪最大 提交于 2020-02-25 05:41:06
问题 I'm using spring-jms-3.0.6.RELEASE and open MQ. Any ideas on why the below exception would be raise? 2012-05-02 17:56:18,420 [stuJmsContainer-803059] WARN org.springframework.jms.listener.DefaultMessageListenerContainer - Setup of JMS message listener invoker failed for destination 'TestQ' - trying to recover. Cause: MQRA:CA:createSession failed-Only one JMS Session allowed when managed connection is involved in a transaction web.xml: <context-param> <param-name>contextConfigLocation</param

How to send multiple JMS messages in blocks (each in a new transaction)

99封情书 提交于 2019-12-13 04:57:45
问题 My Java EE 6 Web application has reached the maximum number of JMS messages that can be sent in a single transaction and I need to do it in several transactions. What would be the best way of doing this when transactions are managed by the container? Is it OK to use the same MessageProducer across different transactions (using an EJB method annotated with @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) ) I'm using Glassfish v3 and OpenMQ. The problem with the maximum number of

How to create a jms Topic and TopicConnectionFactory programmatically?

霸气de小男生 提交于 2019-12-12 07:14:38
问题 Anyone know if you can create a topic and its connection factory programmatically? Currently I use the glassfish admin utility to create my topic and its connection factory. If I can't create it in code does glassfish/openmq have a default topic and conn factory I can use? 回答1: If you only want to circumvent creating the resources manually in the admin you can simply deploy them with the file "glassfish-resources.xml" (GF 3.1, see http://docs.oracle.com/cd/E18930_01/html/821-2417/giyhh.html).

Receiving OpenMQ messages in Delphi [closed]

和自甴很熟 提交于 2019-12-11 23:18:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I need to make a communication between Glassfish server and Delphi. I need to recieve messages from it. As i found Glassfish uses OpenMQ broker. First, i found jms library for delphi. I found there just JMS interface. And found there SonicMQ JMS implemantation. But as i found, SonicMQ and OpenMQ - different

Publishing messages to a JMS server on another machine

只愿长相守 提交于 2019-12-11 11:32:57
问题 I need to publish messages to a topic on a JMS server running on a different machine. The server on the remote machine is Glassfish v3 (OpenMQ). From reading other posts here, I think I need to tell the remote broker to accept JMS messages from a different IP than his own i.e not localhost. Actually, I'd like that remote broker to accept message from remote as well as the local machine. Problem is, I can't figure out how to configure the remote machine's embedded broker, OpenMQ. I think it is

Accessing OpenMQ remotely

心不动则不痛 提交于 2019-12-06 07:22:45
I installed openMQ locally and it works fine. I used the following code to get the QueueConnectionFactory using a JNDI lookup. Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.fscontext.RefFSContextFactory"); env.put(Context.PROVIDER_URL, "file:///C:/objectstore"); Context ctx = new InitialContext(env); QueueConnectionFactory myFactory = (QueueConnectionFactory) ctx.lookup("MyQueueConnection"); The above returns me the connection factory from where I also access the replyQueue and requestQueue . This is how I setup the queues imqobjmgr add -l

How to create a jms Topic and TopicConnectionFactory programatically?

我们两清 提交于 2019-11-30 12:59:27
Anyone know if you can create a topic and its connection factory programatically? Currently i use the glassfish admin utility to create my topic and its connection factory. If i can't create it in code does glassfish/openmq have a default topic and conn factory i can use? If you only want to circumvent creating the resources manually in the admin you can simply deploy them with the file "glassfish-resources.xml" (GF 3.1, see http://docs.oracle.com/cd/E18930_01/html/821-2417/giyhh.html ). You need an admin-object-resource like this one (for a topic): <admin-object-resource enabled="true" jndi