jms

JMS CreateQueue Question

Hi, I have a general question about the JMS createQueue method. In WebSphere MQ is this method used as an alternative to the JNDI lookup? I was thinking that I could dynamically create a queue. Is this possible? Thank you. ...

Do the JMS spec or the various implementations support delivery confirmation of messages?

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 spec or impl) way for the Producer to be notified that Consumer1 has read his message, but Consumer2 has not? This would, in fact, mirror the Read Notification ...

JMS queue in Weblogic10 EJB2 session bean able to send but not to receive

I try to receive a JMS message in an EJB2 (legacy sucks ;-) stateless session bean, in weblogic 10.0.1, with bean managed transactions. Queue definition from jms folder looks like <uniform-distributed-queue name="ReqQueue"> <default-targeting-enabled>true</default-targeting-enabled> <delivery-params-overrides> <delivery-mode>Non...

How to connect to a Weblogic JMS queue using t3s?

I want the last of these lines in a standalone application to pass with no exceptions thrown: Properties props = new Properties(); props.setProperty("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory"); props.setProperty("java.naming.provider.url", "t3s://localho...

Efficient way of reading BytesMessage in JMS

I want to take the data from a BytesMessage and pass is to a class that will de-serialize it. I'm running some tests to see if using Hessan for serialization is any better than Java Serialization. The Hessan classes take an InputStream to read from. The BytesMessage has no getInputStream() method so I thought I'd write a wrapper aroun...

Is there an equivalent of JMS in .NET?

Is there an equivalent of JMS in .NET? ...

JMS architectural problem?

Greetings, In the application that I am working on, I have a long-running process (DNA analysis). Users can send requests, and I am thinking of queuing the requests in a JMS queue, then processing the requests in the queue accordingly. Then, the result is emailed to the particular user. However, an admin should be able to change the ...

notification about new subscriber joining to jms topic

is it possible to get kind of notification on the message producer side, that new subscriber joined to the topic? In particular, is it possible with JBoss Messaging? ...

JMS client does not receive messages

I am using Glassfish JMS. I am able to add messages to a queue. I can see the messages using the QueueBrowser object. However the MessageConsumer (nor the QueueReceiver) cannot receice any message and return null. Message expiration is set to 0 and I remember to open the connection. Any ideas? Here is the code: Session session ...

IBM MQ Message Listener

Hi does anyone know how to create a message listener using IBM MQ? I know how to do it using the JMS spec but I am not sure how to do it for IBM MQ. Any links or pointers are greatly appreciated. ...

WebSphere MQ Message Listener Threads

Hi, I am trying to figure out how WSMQ handles message listeners and threads. If I have one instance of a message listener, and have many queues, does each listener create a new thread for each queue? Or will there be one thread for the listener? Any insight will greatly help, thank you. ...

JMS Topic message size

Our application uses a topic to push message to a small set of subscribers. what sort of things should i look for when modeling a jms message with respect to the size of the actual message to be pushed. Are there any known limits or is application server specific? Any best practices or suggestions on this topic (pun unintended)? ...

WSMQ Queue Limit

Hi, is there a limit on how many queues I can have open within a single connection and single session? I can currently open up 128 queues and send messages to them. If I try to open up 129 I get the following error... Thanks Error: com.ibm.msg.client.jms.DetailedResourceAllocationException: JMSWMQ2008: Failed to open MQ queue 'TestQ...

JMS setTimeToLive

I'm using JMS topic to publish messages. And on the message producer I'm setting setTimeToLive.I'm expecting the messages to be deleted after 16 hours. But even after 16 hours the message is still there in DB as well as in topic. Any thoughts on this? Am i missing something? private static final long DEFAULT_TIME_TO_LIVE = 16 * 60 * 60 ...

WebSphere MQ Low Latency Messaging - Does it have a JMS (or JMS like) API?

We are currently using IBM MQ via JMS, but seem to be pushing through more messages than it can handle - strangely, the problem seems to be intermittent. The messages are prices and thus dont need to be guaranteed, just need to be sent quickly. As IBM have a Low Latency product, I am wondering if that is perhaps the better solution - b...

How can a .Net application become a subscriber to a JMS (ActiveMQ) topic?

Please lay out the various ways for a .Net application to become a JMS (ActiveMQ) topic subscriber. Detailed and production-quality solutions would of course be best. ...

How can I implement JMS MessageListener?

I tried to implement MessageListener, but it dosen't work, but when I use MessageListner, it doesn't work. So what should I do that MessageListener starts working, I'm using jboss 4.02. recv.receive(); // This works recv.setMessageListener(new ExListener()); // This doesn't work public static class ExListener implements Messa...

How to create a temporary jms queue with jboss?

I need to create temporary queues on fly. How is that possible? ...

How to "copy" a JMS message to 2 destinations?

I have a requirement that a single JMS message sent by a client must be delivered reliably (exactly-once) to two systems. These 2 systems are not HA-enabled, so the best suggestion that I came up with is to: create single queue where client posts to set up two "intermediate" queues use a custom "DuplicatorMDB" that will read messages f...

How to create a temporary jms queue and connect to it by name?

I need to create a temporary queue for responses, but I need to know if it is possible to connect to temporary queue without sending response queue object via setJMSReplyTo method of message, because replying thread doesn't get that object at all. ...