message « jms « Java Enterprise Q&A





1. Tool for posting test messages onto a JMS queue?    stackoverflow.com

Can anyone recommend a tool for quickly posting test messages onto a JMS queue? The tool should allow the user to enter some data, perhaps an XML payload, and then submit ...

2. JMS message receiver filtering by JMSCorrelationID    stackoverflow.com

How can I instantiate a JMS queue listener in java (JRE /JDK / J2EE 1.4) that only receives messages that match a given JMSCorrelationID? The messages that I'm looking to ...

3. Replacing a message in a jms queue    stackoverflow.com

I am using activemq to pass requests between different processes. In some cases, I have multiple, duplicate message (which are requests) in the queue. I would like to have only one. ...

4. How do you format the body of a JMS text message?    stackoverflow.com

Does everyone just use XML in the message? Are there any good alternatives to XML? If you do use XML, do you define an XML Schema so clients know how ...

5. Is there a way to get the origin IP address from a JMS message?    stackoverflow.com

I have a system in which different server processes are handling requests passed as JMS messages from various clients via a JMS broker. I am trying to identify the source of the ...

6. JMS Message Driven Bean worker synchronization    stackoverflow.com

We are just starting to build our JMS architecture and have the following basic setup:

  1. GLassfish v2.1
  2. MDB listening on a Topic through a TopicConnectionFactory (all on local server)
Now, the MDB spawns a ...

7. Message Queues: Are messages lost on network failure?    stackoverflow.com

I am wondering about the reliabilty of message delivery in messaging systems such as WebsphereMQ or ActiveMQ (used via JMS). As far as I know messages can be buffered if the ...

8. Can I send messages to a JMS queue from outside the app server?    stackoverflow.com

As I understand it, a J2EE container is required to include a JMS provider. Is it possible for a standalone Java application to send messages to a JMS queue provided by ...

9. Do the JMS spec or the various implementations support delivery confirmation of messages?    stackoverflow.com

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 ...





10. Does Pentaho Kettle have a way to accept JMS messages?    stackoverflow.com

Does Pentaho's ETL system, Kettle (http://kettle.pentaho.org/) have a plugin to accept information from JMS messages? I'd like to set up a job that can read messages each ...

11. Sending a message to a full JMS queue    stackoverflow.com

I am writing a Java code that sends messages to a JMS queue. I am doing this by using "QueueSender.send()". The JMS queue itsels is sonicMQ but that's beside the point. My problem is ...

12. How to handle order of messages in JMS?    stackoverflow.com

I am reviewing a client-server application written in Java. The server receives JMS messages and processes them but the messages can come in an unexpected order, and a cancel can arrive ...

13. Message Queue with 'Message Barrier' Feature?    stackoverflow.com

Is there a message queue implementation that allows breaking up work into 'batches' by inserting 'message barriers' into the message stream? Let me clarify. No messages after a message barrier should ...

14. Destroy JMS Message Listener    stackoverflow.com

How to destroy my JMS Message listener ? I tried writing a code to set it to null, but that does not help

15. Which JMS broker implementations allowing resending messages saved in dead message queue?    stackoverflow.com

I wonder, if there JMS broker, that allows administrators to resend (via GUI or any tool) messages, saved in a ded message queue or dead letter queue, after solving the causing ...

16. Available message types in JMS?    stackoverflow.com

This is based on a past exam question. The question is asking to describe the four types of message available using JMS. The problem is it says the four, not just four. ...





17. JMS message. Model to include data or pointers to data?    stackoverflow.com

I am trying to resolve a design difference of opinion where neither of us has experience with JMS. We want to use JMS to communicate between a j2ee application and the stand-alone ...

18. Is it possible to move an MQ message from one queue to another?    stackoverflow.com

I need to move one single message from an MQ queue to another queue. This other queue may already have existing messages in it. Is there a way to do this? ...

19. How can I continue a Drools Flow process when I receive a JMS Message?    stackoverflow.com

I have a very simple flow, a JMS Message starts a process which receives a List of objects. A foreach iterates through this list and sends a JMS Message to component ...

20. (JMS)Does JMSClient which is also producer in some cases recieve its own messages which it sends    stackoverflow.com

(JMS)Does JMSClient which is also producer in some cases recieve its own messages which it sends

21. How to receive multiple messages from an IBM MQ    stackoverflow.com

I'm connecting to an IBM Websphere MQ and currently reading one message at a time using the method receive() from the object: javax.jms.Message; Is there a way to retrieve multiple messages from the ...

22. JMS message re-delivery delay    stackoverflow.com

I have a JMS client that can ssh to remote systems upon receiving a message (and do various things there - not relevant to the question). It is possible that hundreds ...

23. Copy JMS Message properties    stackoverflow.com

Is there an easy way of copying off the properties from one JMS message to another? I can imagine something like this:

private void copyMessageProperties (Message msg1, Message msg2) throws JMSException {
  ...

24. Scheduled Retrying for an associated JMS Message    stackoverflow.com

I have a single threaded message listener that listens for the incoming messages.The received messages are persisted in a database as they are recieved. There is a message A and associated message ...

25. Publishing messages to a JMS server on another machine     stackoverflow.com

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 ...

26. Queue name from poison message - MQ / JMS    stackoverflow.com

I'm developing a solution to retrieve poison messages from a backout queue in Websphere 6.1. My question is: when this msg (ie. TextMessage) is re-queue from a regular queue to backout queue, ...

27. jms message interceptor    stackoverflow.com

Is there anyway to intercept messages going to/from a java app and an activeMQ queue? Any opensource utilities I can avail of? Thanks Damien

28. jms text message encoding    stackoverflow.com

When I create and send a JMS text message, it uses UTF-16 encoding, but i need to encode it in UTF-8. Is it even possible to do in JMS, or should ...

29. when to use synchronic and asynchronic messages in JMS?    stackoverflow.com

I have a question, i was reading a little bit about JMS but I couldn't understand when it's best to use synchronic message over asynchronic and when it's best to use ...

30. Trace where JMS message came from    stackoverflow.com

Is there any way in the javax.jms.Message API to get the information about where the Message came from (from a onMessage(Message msg)) call? I am dealing with a large chunk of new ...

31. How can we know which consumer get the message from queue on JMS?    stackoverflow.com

I would like to know how can we tell which consumer will get the message from queue in case we have multiple consumers at JMS queue? for example, if we have 1 ...

32. Advice on MoM and large messages    stackoverflow.com

I'm designing a system that will use jms and some messaging software (I'm leaning towards ActiveMQ) as middleware. There will be less than 100 agents, each pushing at most 5000 messages ...

33. JMS Message Acknowledgement Timeout?    stackoverflow.com

Does message acknowledgement use a timeout? Is this implementation specific? So for instance a broker delivers a message and never recieves an acknowledgment...period. At what point does the broker decide enough is enough or ...

34. How is it possible to reliably send JMS message? (fail over MessageProducer.send() errors)    stackoverflow.com

Is it possible to reliably send JMS message to the destination? By reliably I mean ensuring that if e.g. MessageProducer.send() call fails for some reason, it will be retried automatically. I ...

35. Java/JMS - Processing number of messages with handling failure scenarios    stackoverflow.com

I have a requirement where I have to process number of messages. These messages will be inserted into a DB table by another process. All I have to do is to ...

36. Jms message listeners implement Runnable    stackoverflow.com

For asynchronous JMS consumers, the standard way of designing the consumer is: 1.Create a MessageConsumer
2.Create a MessageListener & implement onMessage()
3.Register the listener with the consumer Now, in some examples on the ...

37. Delayed messages in JMS queue    stackoverflow.com

I have a question about a delay that happens intermittently in one queue. I'm using JMS over Weblogic 10.0. So, the client sends a message to the server through the queue called ...

38. XMPP vs JMS as a message carrier    stackoverflow.com

I'm considering using either XMPP or JMS as the transport for exchanging messages between software agents. (I'm working with the JADE agent system.) The main problem I need to solve is to ...

39. Sending JMS message using Java    stackoverflow.com

Hi I want to connect and send a JMS message from my JSP to a JMS server which I had intalled as part of Tibco installation. Now by browsing through various ...

40. Test messages onto a JMS queue    stackoverflow.com

Can anyone recommend a tool for quickly posting test messages onto a JMS queue? The tool should allow the user to enter some data, perhaps an XML payload, and then submit ...

41. JMS Custom message ordering    stackoverflow.com

JMS Question:- Is there any way to change the messages order in JMSQUEUE based on custom rule/policy/strategy? Other then FIFO..

42. JMS Message Counter    stackoverflow.com

I would like to display JMS queue statistics on the page where I may present how many messages are in the queues Is there any way to do that in universal way ...

43. Reading a message from a Queue and display it to the user?    stackoverflow.com

I want to know first how many messages are already existing in a Queue. The following class Browser will return the number of messages existing in Queue. Now, I want user ...

44. How to set a JMS message property within JAX-WS handler?    stackoverflow.com

Is there any way to set a JMS message property within a JAX-WS handler? I am trying to set a custom property on the message, to be used by a ...

45. How to guarantee delivery of the Message in JMS    stackoverflow.com

I am using JMS API , i am using

Session sess = connection.createQueueSession(false , Session.AUTOACKNOWLEDGE);
I am creating an Object Message and putting it on the Queue . Please tell me how can ...

46. JMS message - associate with Queue    stackoverflow.com

Having a jms message, which method I can use to get the queue from which it came? I think it should be something like : message.getStringProperty("OriginatingQueue") ?? Thx.

47. JMS - OpenMQ - How to make a broker receive messages from a different maching    stackoverflow.com

The situation is as follows: We have two machines running on an Amazon cloud (both allocated to the same security group), one is Linux and the other is Windows. The Windows machine is ...

48. Convert String to javax.jms.Message    stackoverflow.com

I'm working on a JMS application. I'm facing a scenario where I need to convert an XML in to javax.jms.Message object. Is there any way to do it?

49. Alternative to acking messages from QueueBrowser    stackoverflow.com

I'm relatively new to JMS. I have a requirement as such: events are published to a queue. Each event has a UserID associated with it, and the events for a ...

50. Do selectively dequeued messages stay in FIFO order (MQ)?    stackoverflow.com

Using JMS & WebSphere MQ, if I use a message selector to selectively dequeue, and there are several messages with the same selection criteria, am I guaranteed to dequeue the first ...

51. OracleAQ loses messages?    stackoverflow.com

After successfully sending my message, i'm just browsing for it.. But, i get only the messages which i send @ that time..That is, i don't see any previous messages which i sent ...

52. JMS message format type    stackoverflow.com

We are trying to use JMS to communicate with IMS region. The message reaches IMS and gets dropped since the message is not in the "required" format i.e. MQIMS. How do we ...

53. is IBM MQ Message Segmentation possible using JMS?    stackoverflow.com

Is it possible to implement message segmentation using JMS as it is in using Native IBM API as shown here. One posible solution I have read is message grouping ...

54. Using the message-selector for fetch NON-GROUPED Messages    stackoverflow.com

I need to use an MDB to fetch two kinds of messages of the same queue, one in Groups and the other NOT in groups. I can successfully pick up grouped ...

55. JMS - Sending object message    stackoverflow.com

I want to send object message in jms and getting run time exception. Please suggest me possible solutions. JMS Code:

ObjectMessage objMessage = session.createObjectMessage();
        MessageData data = ...

56. javax.jms.JMSException: MQJMS2002: failed to get message from MQ queue    stackoverflow.com

I have a asynchronous JMS receiver coded thus (obvious details missing):

connection = connectionFactory.createConnection();
connection.setExceptionListener(new ExceptionListener() {
    @Override
    public void onException(JMSException ex) {
     ...

58. JMS and random message content    jmeter.512774.n5.nabble.com

59. JMS Message Class    jmeter.512774.n5.nabble.com

60. JMS P2p: How to set the messages TTL    jmeter.512774.n5.nabble.com

61. JMS send message    jmeter.512774.n5.nabble.com

62. Unable to capture de-queued message from apache active mq using JMS Subscriber    jmeter.512774.n5.nabble.com

Hi All, I am unable to capture de-queued messages which JMS Subscriber de-queues from Active MQ. Active MQ web interface shows that 1 message has been de-queued but I am unable to confirm it from Jmeter. The "listener" I am using is "View Results Tree". Little background, I have an application (say, app 1) which queues a request in Active MQ. ...

63. Unable to receive response message using JMS Point to Point    jmeter.512774.n5.nabble.com

64. JMS (Java Message Services)    coderanch.com

I wrote a simple JMS program, to send a messsage. It works in my pc. Also works in one unix machine. Then I tried on another unix machine. It managed to sent a message. But it 'hangs' when it reaches connection.close(); I have to use Ctrl-C, and it will execute the rest of the statements. Extra information: JMS provider is Broker ...

65. Stuck sending Message to JMS Queue    coderanch.com

I wrote the following code to send a text message to JMS Queue: package com.poc.jms; import java.util.Hashtable; import javax.jms.*; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; public class JMSSender { public JMSSender() { super(); } public static void main(String[] args) { JMSSender jMSSender = new JMSSender(); Context cxt; ConnectionFactory cf; Destination queue; Connection conn = null; Session sess = null; MessageProducer prod ...

66. JMS Replier loops after finished with message    forums.oracle.com

69. Unzipping a gz file that's in a JMS Message    forums.oracle.com

You mean that the JMS message contains data and that data is a zip file? First step 1. Create a zip file. 2. Send it to your code via JMS 3. Extract it 4. Write it to the file system. 5. Compare that with the original. 6. If they are different then you didn't extract it or write it correctly. 7. ...

70. Getting a file name from a JMS message    forums.oracle.com

Hello, I am trying to unzip a jms message file, but in order to unzip it, I have to somehow have the file name in a java input stream. Since there is no message.getFileName method, I really don't know what to do. I am trying to do this in the onMessage method in one an MDB and it is not possible ...

71. JMS Message reading problem    forums.oracle.com

Hi all I have a problem with MQJMS...I am successful in putting the message to the queue and also reading it...but the problem is that i was trying to put a string message in the queue...but i am not able to read the original string from the message.this is the code i used.... Putting the message in the queue String Buffer ...