activemq

ActiveMQ - is it possible to acknowledge single message in CLIENT_ACKNOWLEDGE mode

风流意气都作罢 提交于 2019-12-08 20:00:31
According to http://docs.oracle.com/javaee/6/api/javax/jms/Message.html#acknowledge() A client may individually acknowledge each message as it is consumed, or it may choose to acknowledge messages as an application-defined group (which is done by calling acknowledge on the last received message of the group, thereby acknowledging all messages consumed by the session.) How can I do it in ActiveMQ? I was unable to make it work. here is example with ActiveMQ client, import javax.jms.Connection; import javax.jms.JMSException; import org.apache.activemq.ActiveMQConnectionFactory; import org.apache

activemq

做~自己de王妃 提交于 2019-12-08 18:08:27
3.1下载、安装JDK1.6 从官方网站下载JDK1.6以上版本,如jdk-6u4-windows-i586-p.exe。双击执行安装过程,安装到诸如C:\Program Files\Java\jdk1.6.0_10的路径下。 3.2配置Java环境 在桌面上找到我的电脑,右击鼠标选择->属性,->高级->系统变量在系统变量里点击新建,在变量名填写:JAVA_HOME,在变量值填写诸如:C:\ProgramFiles\Java\jdk1.6.0_10的JDK安装路径(部署需要jdk1.6及以上)。 然后配置path。在环境变量里找到path。点击编辑。在变量值里添加“%JAVA_HOME%\bin;。注意新添加的字串和已有字串使用半角分号;分割。 最后配置classpath。其值为 .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar (注意这里需要增加半角句号.来表示当前路径。) 3.3验证Java环境 以上三个变量设置完毕,则按“确定”直至属性窗口消失。验证安装是否成功:打开“开始”菜单->“运行”,输入入“cmd”,进入dos系统界面。然后输入“java -version”,回车执行。如果安装成功。系统会显示诸如java version jdk"1.6.0"的界面 3.4安装ActiveMQ服务器

JMS message size

被刻印的时光 ゝ 提交于 2019-12-08 17:18:45
问题 I'm currently working on bandwidth limiting feature (don't ask me why, its not my decision) for application which use JMS (Spring framework JMS and Active MQ namely) to sending messages with payload between server and clients. I found lot of throttling methods to limit incoming JMS messages (but none of them based on actual bandwidth load), however I didn't find any possible way to limit outgoing message flow. So I decided to write Leaky bucket algorithm on my own. Is there some way how to

How can I change default port number of Activemq

走远了吗. 提交于 2019-12-08 15:55:39
问题 I am using Windows 7 OS. I downloaded apache-activemq-5.8.0.zip from these Link and extracted in C:\Users\Infratab Bangalore\Desktop\Queueing\apache-activemq-5.8.0 directory. While Activemq initialization time I read Pre-Installation Requirements concept from these Link. I already installed apache-maven-3.0.5 in my system.For my conformation I run the following command in my system. mvn -version I am getting the following message,So Maven is installed successfully. Apache Maven 3.0.5

ActiveMQ web Console not starting up after upgrade

徘徊边缘 提交于 2019-12-08 12:25:02
问题 I am Upgrading ActiveMQ 5.11.1 to 5.14.1. When start the ActiveMQ, it shows that it is started in the console as below. activemq console Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@2b0de40c: startup date [Fri Nov 18 07:43:43 IST 2016]; root of context hierarchy INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[/home/rajesh/workspace/portalTrunk/testArea/jms_store] INFO | KahaDB is version 6 INFO | JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:43026

How to properly stop camelContext from being killed in a standalone application

泄露秘密 提交于 2019-12-08 12:23:05
问题 To create a Camel application which consumes from ActiveMQ's queue, I wrote a standalone Camel application following this tutorial: http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html The difference was The Main class from camel-spring used instead of camel-core: My Main class: try { Main main = new Main(); main.setApplicationContextUri("conf/spring-context.xml"); main.run(); } catch (Exception ex) { LOGGER.error(String.format(DifClientConstants.ERROR_START_CLIENT,

How to hide the Tabs in Hawtio? Also, how to stop the default landing on ActiveMQ after connecting to remote server?

非 Y 不嫁゛ 提交于 2019-12-08 12:15:36
问题 I have 2 questions here: 1. How to hide unwanted Tabs in the Tab navigator of Hawtio? There are other tabs on home page as well as Connection page of Hawtio. I want to remove few and keep only my custom tabs. 2. By default, after connecting to remote server, it lands on Active MQ page. Here, I want it to land on my custom plugin html. I know the URL which is being hit for landing on ActiveMQ page. But I want to figure out from where it is being hit. If not that, I want to find out how can I

PHP Stomp client library for ActiveMQ + WebSockets

99封情书 提交于 2019-12-08 10:28:09
问题 I've installed ActiveMQ with WebSocket support and I'm able to get the JS demo working. The issue that I'm facing right now is that the PHP Stomp library won't work with the WebSocket URI so when I try: $stomp = new Stomp('ws://localhost:61614'); I get: Connection failed: Invalid Broker URI scheme Any thoughts on how I can send messages via PHP? Am I looking at this from the wrong angle. Should I try regular PHP socket functions to connect to ActiveMQ ? Thanks. 回答1: Yes, from PHP you should

Consumer's selector issue on activeMQ

余生长醉 提交于 2019-12-08 10:17:39
问题 The scenario:I send fifty thousand messages to the queue named JUST.CN. And seting one message propertyString "myfilter='abc'" every 1000 message.Now I create consumer with the same selctor to consume messages.However the comsuming rate is very slow especialy after 30000 messages.I cant change default configuration in activeMQ. The Core Code is below: IDestination destination = SessionUtil.GetDestination(session, "JUST.CN"); IMessageProducer producer = session.CreateProducer(destination);

ActiveMQ does not stop subscription when flex client disconnects

那年仲夏 提交于 2019-12-08 10:17:28
问题 I'm using activeMQ 5.3 to send messages to a flex client via blazeds 3.2. When the client connects for the first time, I can see the subscriptions to the activeMQ broker being made. However, after I kill the browser that runs the client the subscriptions remain open even though no messages are being consumed anymore. This finally results in an out-of-memory of the web server. From the logs it looks like Blazeds is unsubscribing from the feeds. Shouldn't blazeds stop the subscription when