jms « activemq « Java Enterprise Q&A





1. javax.jms does not exist - compiling activemq examples    stackoverflow.com

I'm trying to compile the examples that come with activemq in apache-activemq-5.1.0\example\src\ TopicPublisher.java, CommandLineSupport.java on compiling thru netbeans it has some referencing problems saying javax.jms does not exist. I've tried the j2ee.jar, openjms, sun jms ...

2. Simple Routing of TCP Endpoints in activemq whats wrong?    stackoverflow.com

I am trying to get a simple demo started with ActiveMQ that will demonstrate a TCP to TCP route. I am coding the endpoints and routes in a camel context in ...

3. ActiveMQ: Issue with queue lookup    stackoverflow.com

I've set up a queue by configuring it in activemq.xml (ActiveMQ version 5.2.0) as described in the documentation.

<destinations>
    <queue physicalName="FOO.BAR" />
    <queue physicalName="DUMMY" ...

4. Could JMS with ActiveMQ somehow be using JmDNS?    stackoverflow.com

I maintain an Eclipse plugin that uses JMS (via the ActiveMQ implementation) to send and receive messages from queues maintained by a hard-coded broker on another machine. One of my user reports ...

5. In-process ActiveMQ producer/consumer example?    stackoverflow.com

I'm investigating using ActiveMQ as an embedded in-process message queue in my application, but I'm a bit stuck on how I go about starting such an application up. I envision it like ...

6. Anyone using multicast with ActiveMQ    stackoverflow.com

I'm having trouble setting up multicast transport using ActiveMQ. I noticed with version 5.2 there is a bug that prevents it from even building the correct factory (fixed in 5.3). The ...

7. ActiveMQ: how to dequeue older messages?    stackoverflow.com

I'm learning how to use ActiveMQ and now we are facing the following problem. Suppose that I have a topic named topic.test on ActiveMQ which have two subscribers. In a given moment, I ...

8. Using the Log4J JMSAppender with ActiveMQ    stackoverflow.com

I am trying to produce a proof of concept shipping logging from Log4J through JMS using the log4J JMSAppender. I have tried ActiveMQ and the example supplied with it. I have ...

9. How can one use activemq not locally?    stackoverflow.com

I can't understand how to use ActiveMQ not locally.
Suppose I have 2 machines, which need to exchange some messages.
On the on machine I start ActiveMQ broker:

> ~/bin/activemq
and use something like: ...





10. ActiveMQ JMS ping    stackoverflow.com

Apache Activemq 5.2.0 My application listens to messages on three topics and sends messages on 2 topics. When my application is "webping"ed, I want to check if these topics are alive. I ...

11. How do you scale your ActiveMQ vertically?    stackoverflow.com

Can somebody share an experience concerning scaling vertically the ActiveMQ? I'm particularly interested how performance is affected by:

  • NIO transport
  • option org.apache.activemq.UseDedicatedTaskRunner
  • disabling tightEncoding in OpenWire
  • using various type of Message Stores (including KahaDB)

12. Using JMS or ThreadPool to send email messages    stackoverflow.com

I will like to know: I have a scenario. If a user adds a product to the system (I'm developing), there's a listener that sends a notification to the user's client base ...

13. Writing a JMS Publisher without "public static void main"    stackoverflow.com

Every example I've seen on the web, e.g. http://www.codeproject.com/KB/docview/jms_to_jms_bridge_activem.aspx, creates a publisher and subscriber with a public static void main method. I don't think that'll work for my web ...

14. What is the best way to reject messages with the same body in AMQ queue?    stackoverflow.com

I have a single AMQ queue that receives simple messages with string body. Consider I'm sending CLSIDs as message bodies. CLSIDs could be not unique, but I'd like to reject all ...

15. Unit testing with JMS (ActiveMQ)    stackoverflow.com

How to do unit testing with JMS ? Is it some de-facto for this ? I googled something - Unit testing for JMS: http://activemq.apache.org/how-to-unit-test-jms-code.html - jmsTemplate: activemq.apache.org/jmstemplate-gotchas.html - mockRunner : mockrunner.sourceforge.net/ Do you have ...

16. Why is ActiveMQ TextMessage padded with spaces to fill in 1000 bytes?? How to optimize it?    stackoverflow.com

I had a look via WireShark what's happening under the hood when ActiveMQ "/examples" producer sends messages and it revealed that every TextMessage shorter than 1000 bytes is padded with spaces ...





17. ActiveMQ : dead letter queue keeps my messages order    stackoverflow.com

I use ActiveMQ as a broker to deliver messages. Theses messages are intented to be written in a dabatase. Sometimes, the database is unreachable or down. In that case, I want ...

18. Would you use pub/sub or queues for long running background processes?    stackoverflow.com

I have a webservice which receives requests to perform some data transfer operations within an Oracle database (such transfer operation takes about 30mins to 2 hours). I designed the webservice to ...

19. Acknowledge a message from a different Channel/Session in JMS    stackoverflow.com

I need a message to be Acknowledged in a different Session than the one it is created in. If the consumed message is not ACKed in a given time, it should ...

20. ActiveMQ + REST + Java environment creation    stackoverflow.com

I got several questions regarding this issue 1) ActiveMQ after installed and started also starts Jetty? Jetty is running on port 80? (the environment where my application is going to be installed already ...

21. How to use an external instance of ActiveMQ with OpenEJB?    stackoverflow.com

how can I configure OpenEJB to work with an external instance of ActiveMQ? We already tried the configuration on this link http://openejb.apache.org/3.0/jms-resources-and-mdb-container.html but it did'nt work at all. What should we ...

22. Other than ActiveMQ JMS providers with OpenEJB - possibly external    stackoverflow.com

We are in the process of testing OpenEJB solution that embeds ActiveMQ 4.1.1. We observe various problems with messaging (bugs, performance, stability). One option is to upgrade to just released OpenEJB ...

23. Problem with starting ActiveMQ 5.4.1    stackoverflow.com

I am developing a web application that will use ActiveMQ. I downloaded the Unix version from website and ran on my Mac. It was working fine(I can oen the web console and ...

24. how to run activemq using ant    stackoverflow.com

I am new to Apache Activemq.I am using apache-activemq-5.1.0. I need to run Activemq using ant.How should i do this.Any help is greatly Appreciated.

25. ActiveMQ and JMS : Basic steps for novice    stackoverflow.com

Hi all please give some basic about ActiveMQ with JMS for novice. And configuration steps also.

26. What is your experience with the ActiveMQ reliability using the latest version 5.4.2?    stackoverflow.com

I am evaluating Message Queues to use and it seems ActiveMQ is the most popular, however I can't but notice the various comments around the web about reliability and the queue ...

27. Configure a JMS (ActiveMQ) queue so that it only contains the last message    stackoverflow.com

We have quartz process that polls a ActiveMQ JMS queue. We know that we could get several messages a minute would like to only respond to the most current message at ...

28. Avoiding duplicated messages on JMS/ActiveMQ    stackoverflow.com

There's a way to suppress duplicated messages on a queue defined on ActiveMQ server? I tried to define manually JMSMessageID, (message.setJMSMessageID("uniqueid")), but server ignores this modification and deliver a message with built-in ...

29. Sending message to ActiveMQ over internet    stackoverflow.com

I want to implement messaging over internet. But didn't have IP Public yet. So I want to ask any one here about sending message to ActiveMQ using JMS over internet? Could It ...

30. Preservation of exception cause when redelivering failed activemq jms messages processed by Mule ESB    stackoverflow.com

I have built several Mule processes that consume messages from jms queues (ActiveMQ). Whenever a Mule component throws an exception, the transaction that consumes the messages rollback and the message gets ...

31. Sending StreamMessage from CMS to JMS    stackoverflow.com

I am trying to send an ActiveMQ StreamMessage from a C++ (CMS) client to a Java (JMS) client. However, the Java client is unable to correctly read the values from ...

32. ActiveMQ MUltiple subscriptions freezes application    stackoverflow.com

I have an application which tries to subscribes to a lot of different topics. The server side publishes a lot of messages through these topics and as soon as the application starts ...

33. Automatically remove inactive durable consumers in ActiveMQ    stackoverflow.com

For example, we have a durable topic consumer and some broker for that topic. As far as I understand that broker will continue to store every message (within some limits) even ...

34. Sending JMS message over corrupted network    stackoverflow.com

I am performing some simple tests with ActiveMQ to see how it performs on a non stable network. The first test consists in a producer that sends messages to a remote ...

35. How can I protect credentials that are part of a message payload?    stackoverflow.com

We're using a messaging queue (JMS / ActiveMQ) in an application that is facilitating communication between client applications and a server application. The username and password for the user trying to ...

36. Long traitement in a onMessage() : How to handle ? I want this method to be called by a thread    stackoverflow.com

I do some heavy traitement at reception of JMS message, with high risk of timeout. whole point of using JMS for me is to allow this kind of ...

37. How can I iterate through a large ActiveMQ queue?    stackoverflow.com

I have a queue containing almost 250,000 messages. I'd like to iterate through the messages without removing them. I've used QueueBrowser for this, but it makes only the first 200 elements ...

38. How is ordering preserved in ActiveMQ?    stackoverflow.com

I have set up an application to listen to an ActiveMQ topic. Here's the way I have configured it:

<jms:listener-container connection-factory="jmsFactory"
    container-type="default" destination-type="durableTopic" client-id="CMY-LISTENER"
    acknowledge="transacted">
 ...

39. How to set up a dead letter queue for each durableTopic?    stackoverflow.com

I have set up an application to listen to an ActiveMQ topic. Here's the way I have configured it:

<jms:listener-container connection-factory="jmsFactory"
    container-type="default" destination-type="durableTopic" client-id="CMY-LISTENER"
    acknowledge="transacted">
 ...

40. Cache,Acknowledged, and Prefetch limit    stackoverflow.com

Scenario:

  1. I'm using Apache Activemq 5.5.0
  2. Let's say I have 1500 messages in a queue (test.testQ). For the first 1499 messages, I set message.setStringProperty("type","0"). For the last message (1500th), "type" string property ...

41. how to apply pagination , sorting and searching on activemq message object properties    stackoverflow.com

we've an uphill task to to paginate,sort and search activemq-5 queues messages' message object properties as there can be thousand of messages, to increase the performance we want server side ...

42. JMS Message Consumption    stackoverflow.com

I am not sure what happens in the below scenarios, it would be of great help if someone explains it. Producer (P) sends messages M1, M2 , M3 , M4 , M5, ...

43. Erratic javax.jms.JMSException: Peer disposed    stackoverflow.com

I have a erratic problem with Java JMS. For moments works fine, but throws the following exception erratically and cut the execution. It is important to note that this occurs without stopping the ...

44. protocol buffer as message over active Mq    stackoverflow.com

i am designing an app that has multiple components , mainly written in java and python. i am thinking of using "JMS-Active MQ" as Message Oriented Middleware for components and ...

45. ActiveMQ journal log size    stackoverflow.com

I'm running ActiveMQ 5.3.0 (yup, gonna upgrade to 5.4.2, or even 5.5.0 soon) with KahaDB persistence adapter. It has 7 queues which are most of the time empty, that is, once ...

46. ActiveMQ: Configure per-destination policy in Java (total ordering)    stackoverflow.com

I have an ActiveMQ embedded broker, along with a number of Topic clients. Everything is currently configured in Java (rather than XML). I want to configure total ordering of ...

47. JMS and ActiveMQ, how to receive notification on disconnect?    stackoverflow.com

I'm using JMS to talk to ActiveMQ. I had to disable failover for ActiveMQ, because I need to handle it myself. So instead of using : failover//tcp//localhost:61616 I ...

48. problem with Logback.XML and api    stackoverflow.com

I just made an API abstraction above logback in order to add specific functions in this api i have all logback functions (juste overrided with no changes) and add some other ...

49. Object with collection containing Serializable, non-primitive objects can't be set as ActiveMQ ObjectMessage    stackoverflow.com

I'd appreciate any help on this... I have an Object I'm trying to send in a JMS ObjectMessage by calling setObject. This Object contains a HashMap content as well as some other ...

50. Can JMS message-queue be used in this context for my use case?    stackoverflow.com

I'm new to message queue system and read a bit about JMS in particular. This question was also helpful in understanding better about ...

51. Maximum number of JMS Queues    stackoverflow.com

We have an application that has 1) a custom server (conventional ServerSocket) that responds to 2) Java SWING applications/applets running on client desktops. We have more than 140 such custom servers ...

52. Any simple way to get the queue length of the ActiveMQ?    stackoverflow.com

I am wondering hwo to retrive the queu length of the ActiveMQ using Java?

53. Network of Brokers - ActiveMQ - Any other alternatives?    stackoverflow.com

We are setting up a pool/Network of ActiveMQ brokers. The issue we are having is that every broker instance should know who else is on the network. i.e we need to ...

54. how can the MessageListenerContainer listen the message asynchronously?    stackoverflow.com

Is there any long-lasting TCP connecton be set up? Any TCP port be open for this to work?

55. Why does ActiveMQ Message server requires JDK, Not JRE?    stackoverflow.com

ActiveMQ Message broker requires Java JDK (not the Java runtime JRE). Does anyone know why? Thank you.

56. How JMS Relates to Service Buses    stackoverflow.com

I'm trying to wrap my brain around JMS and have been reading up on some very helpful sources and examples. I'm now trying to see the "big ...

57. Suggest a messaging product with Caching support for latest version of each message    stackoverflow.com

I am looking forward for a messaging product which can fulfil following use case.

  1. Publisher can publish messages over a topic.
  2. Whenever a consumer subscribes to a topic, he should first ...

58. Active MQ - HelloWorld example exception    stackoverflow.com

I'm trying to run the hello world example found here I added activemq-all-5.5.1.jar to the libraries already It builds successfully with the following warning

warning: [options] bootstrap class path ...

59. Which ADDITIONAL .jars do I need to work with JMS Apache ActiveMQ?    jmeter.512774.n5.nabble.com

> Which ADDITIONAL .jars do I have to copy to work with JMS Apache ActiveMQ? > > I found only a rather old list on a web page which is outdated and which contains some .jars for Geronimo. > I am not using using Geronimo. So at least these .jars should not be necessary. > > I was ...

60. Which messaging system to use? (ActiveMQ, Sun JMS etc)    coderanch.com

Hi all, I wanted to use some messaging system and I am not sure which one to use. Can you suggest some? Below is the page I am looking at for options, http://en.wikipedia.org/wiki/Java_Message_Service Here are my requirements, 1. I want to use free package 2. I don't know the traffic requirements yet on my application 3. I want to have it ...

61. Defrence between JMS and ActiveMQ    forums.oracle.com