jms

Apache Camel - Build both from and to endpoints dynamically

霸气de小男生 提交于 2020-01-04 07:11:50
问题 I have a camel route which processes a message from a process queue and sends it to upload queue . from("activemq:queue:process" ).routeId("activemq_processqueue") .process(exchange -> { SomeImpl impl = new SomeImpl(); impl.process(exchange); }) .to(ExchangePattern.InOnly, "activemq:queue:upload"); In impl.process I am populating an Id and destination server path . Now I need to define a new route which consumes messages from upload queue ,and copy a local folder (based on Id generated in

Apache Camel - Build both from and to endpoints dynamically

谁说我不能喝 提交于 2020-01-04 07:11:08
问题 I have a camel route which processes a message from a process queue and sends it to upload queue . from("activemq:queue:process" ).routeId("activemq_processqueue") .process(exchange -> { SomeImpl impl = new SomeImpl(); impl.process(exchange); }) .to(ExchangePattern.InOnly, "activemq:queue:upload"); In impl.process I am populating an Id and destination server path . Now I need to define a new route which consumes messages from upload queue ,and copy a local folder (based on Id generated in

com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ0018: Failed to connect to queue manager 'xxx' with connection mode 'yyy' and host name 'zzz'

筅森魡賤 提交于 2020-01-04 05:46:11
问题 JMS app requires seven parameters to make successful SSL connection with MQ series given here, https://github.com/ibm-messaging/mq-tls-ssl-wizard/blob/master/com.ibm.mq.ssl-wizard/src/tlswizard/samples/SSLSampleJMS.java I am trying to interpret these parameters, Conname- the connection name of the server queue manager in the same format as the CONNAME parameter on the MQSC DEFINE CHANNEL command, but without the port specified. I guess this is host name Port - the connection port of the

HornetQ OutOfMemory on startup with big journal

不问归期 提交于 2020-01-04 04:24:09
问题 Using: HornetQ 2.0.0.CR2 Default configurations for the stand-alone/non-clustered server. When I try to startup the server with a big journal (> 1Gb), I got a OutOfMemory exception: [main] 12:59:43,505 INFO [org.hornetq.integration.bootstrap.HornetQBootstrapServer] Starting HornetQ Server [main] 12:59:44,526 INFO [org.hornetq.core.server.impl.HornetQServerImpl] live server is starting.. [main] 12:59:44,532 WARNING [org.hornetq.core.server.management.impl.ManagementServiceImpl] It has been

Is JavaEE really portable?

跟風遠走 提交于 2020-01-04 03:01:20
问题 I'm just implementing a JavaEE assignment I was given on an interview. I have some prior experience with EJB, but nothing related to JMS and MDBs. So here's what I find through the numerous examples: application servers bind their topics and queues to different JNDI names - for example topic / queue , jms the activationConfig property is required on JBoss, while in the Sun tutorial it is not. after starting my application, jboss warns me that my topic isn't bound (it isn't actually - I haven

深入浅出JMS(二)--ActiveMQ简单介绍以及安装

跟風遠走 提交于 2020-01-03 20:07:01
现实的企业中,对于消息通信的应用一直都非常的火热,而且在J2EE的企业应用中扮演着特殊的角色,所以对于它研究是非常有必要的。 上篇博文 深入浅出JMS(一)–JMS基本概念 ,我们介绍了消息通信的规范JMS,我们这篇博文介绍一款开源的JMS具体实现——ActiveMQ。ActiveMQ是一个易于使用的消息中间件。 消息中间件 我们简单的介绍一下消息中间件,对它有一个基本认识就好,消息中间件(MOM:Message Orient middleware)。 消息中间件有很多的用途和优点: 1. 将数据从一个应用程序传送到另一个应用程序,或者从软件的一个模块传送到另外一个模块; 2. 负责建立网络通信的通道,进行数据的可靠传送。 3. 保证数据不重发,不丢失 4. 能够实现跨平台操作,能够为不同操作系统上的软件集成技工数据传送服务 MQ 首先简单的介绍一下MQ,MQ英文名MessageQueue,中文名也就是大家用的消息队列,干嘛用的呢,说白了就是一个消息的接受和转发的容器,可用于消息推送。 下面进入我们今天的主题,为大家介绍ActiveMQ: ActiveMQ 简要概述ActiveMQ Apache ActiveMQ ™ is the most popular and powerful open source messaging and Integration Patterns

Publishing messages to ActiveMQ using Gatling

和自甴很熟 提交于 2020-01-03 18:58:21
问题 I have been using Gatling to publish messages to ActiveMq server. I get "java.lang.SecurityException: Invalid username: null or empty" tho I use valid username and password. Here is my test code and the exception were thrown. Any inputs on how to fix this will be of help. import io.gatling.core.Predef.Simulation import io.gatling.core.Predef._ import io.gatling.jms.Predef._ import io.gatling.core.config.Credentials import org.apache.activemq.ActiveMQConnectionFactory import org.apache

How are Websphere MQ messages stored to allow persistence?

青春壹個敷衍的年華 提交于 2020-01-03 18:01:21
问题 Are Websphere MQ messages stored in a database or filesystem? Can I configure it to use MySQL? 回答1: WebSphere MQ persistence is always a local filesystem for distributed platforms. On the mainframe there is the possibility of using a DB2 database in a Sysplex with a Coupling Facility but for everything else it is a filesystem. Also, there is no local persistence for WebSphere MQ clients. Only the queue manager will persist messages. In the WebSphere family, WebSphere Application Server's

How are Websphere MQ messages stored to allow persistence?

跟風遠走 提交于 2020-01-03 18:01:08
问题 Are Websphere MQ messages stored in a database or filesystem? Can I configure it to use MySQL? 回答1: WebSphere MQ persistence is always a local filesystem for distributed platforms. On the mainframe there is the possibility of using a DB2 database in a Sysplex with a Coupling Facility but for everything else it is a filesystem. Also, there is no local persistence for WebSphere MQ clients. Only the queue manager will persist messages. In the WebSphere family, WebSphere Application Server's

Spring 4 CachingConnectionFactory with JMS 2.0 doesn't properly cache Producers

ε祈祈猫儿з 提交于 2020-01-03 08:49:11
问题 We just upgraded to Spring 4 and JMS 2.0. We are using a CachingConnectionFactory and a JmsTemplate to publish messages and noticed that when publishing to a destination, the first attempt works and then further attempts to publish to the same destination cause the following exception: Caused by: javax.jms.IllegalStateException: The producer is closed Everything worked fine with Spring 3.2 and JMS 1.1 so I did some digging to see what the problem was and it seems the issue is in the