jms

How can I set the 'runas' userid for an MDP?

I'm using a DefaultMessageListenerContainer to consume a JMS message and then invoke a bean that extracts the user-id from SecurityContextHolder.getContext().getAuthentication().getPrincipal() before inserting a record into the database. The user-id is null as you would expect because there is no authenticated principal. Is there a n...

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

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

JMS Selector Issues

I am using ActiveMQ as my JMS Provider. I have 3 consumers and one producer. One consumer has a selector so that it does not recieve messages not meant for it. However, the message count at Broker does not seem to decrease when 2 consumers process and acknowledge the messages. ...

How to receive multiple messages from an IBM MQ

Hi, 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 queue in one go? Many thanks, G. ...

Is there a performance difference between creating startup queues vs dynamic queue in ActiveMQ?

Most of the examples that I seem to run into are using dynamic queues instead of queue defined during activemq startup (see activemq.xml file). Is there a significant degradation in performance if I use dynamic queue generation? ...

Directory polling to JMS Queue

Is there a open source message broker out there which allows you to configure a file directory as a source, and it will automatically poll this directory for NEW files and send it to a JMS Queue? I heard IBM Message Broker can do this, is there a open source alternative? ...

J2EE Submit a form and leave background process working ??

Hello I need to generate a report with java (exporting data from oracle) that can take several minutes, by the amount of data involved, so when I submit my form the screen freezes until it ends. How can I generate the report in a background process, so that the user can continue browsing? JMS? How can i do this with JMS? (Any example ...

JMSException [C4036] when reading messages.

Hi, I get the following exceptions from my java code, and I've no idea why. .javax.jms.JMSException: [C4036]: A server error occurred. at com.sun.messaging.jmq.jmsclient.ProtocolHandler.writePacketWithAck(ProtocolHandler.java:307) at com.sun.messaging.jmq.jmsclient.ProtocolHandler.acknowledge(ProtocolHandler.java:1593) at com.sun.messa...

JMS transport v/s MQ transport

hi, I am using Oracle Service Bus(OSB) as the MOM, and the destination URI is a IBM MQ queue. I just want to know which would be the preferred transport. OSB provides 2 adapters for the same, JMS adapter and MQ adapter for transport. Does any one knows what are the PROS and CONS of the same. TIA ...

Spring batch JMS writer/reader example

Anybody know of a good resource for a detailed (more so than the Spring Batch docs) look at the uses of JMS Item Writer/Reader in Spring Batch? Specifically, and because I'm being tasked with trying to reuse an existing system whose only interface is asynchronous over a queue, I'm wondering if the following is possible: Step 1: read so...

Threads and Jms Transaction

I am stuck in the following scenario.Please advice me on this There is an inbound Queue There is an Main thread running(We are not using JMS Listener ) and picking a message from the queue and process the message and start another sub thread to process again. Now the problem is How can i handle the transaction in the main thread and su...

InstantiationError on HornetQDestination with JBOSS/HornetQ

When trying to connect to a remote JBOSS+HornetQ, we are getting the error in the subject. We can connect to a remote HornetQ on a different machine with no trouble. We are using HermesJMS to try and make a JNDI connection to the JBOSS server and we are able to create the JNDI context, but not attach to any topics/queues/etc. We are u...

How should we use clientId and subscriptionName in annotations for multiple durable subscriber MDBs?

We are implementing an events framework within our application using a JMS topic with multiple durable subscribers as MDBs (EJB 3.0). Each subscriber will use message selectors to determine which messages it is interested in. How should we specify clientId and subscriptionName values in @ActivationConfigProperty annotations? My current ...

Spring with JMS

Guys Please advice me on this http://www.coderanch.com/t/505387/Spring/Jms-Transaction-Threads#2281111 Cheers Dominic ...

What is Foreign JMS provider? What is the typical role of Weblogic in a JMS application?

Currently I am working on a JMS application. But I use plain JMS API and Property file for configurations. My application is running in Weblogic and connects to MQ series server of my client. Recently I got to know I can use Weblogic for JMS configurations. Please explain. What is "Foreign JMS provider"? Is Weblogic also a JMS serve...

Spring, JndiTemplate externalizing provider URL

Hi, My project requires the Initial Context Factory and the provider URL to be loaded from a properties file. Here is my Spring configuration <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate" lazy-init="true"> <property name="environment"> <props> <prop key="java.naming.factory.initial">${ini...

JMS / MQ confidentiality between clients

I'm designing a system where one server must send messages to lots of independent clients. The clients doesn't know about each other and should not be able to consume, peek or in any other way acquire knowledge about each others messages. I therefore wonder if JMS / ActiveMq have the ability to control which clients get which messages? ...

JMS message re-delivery delay

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 of such messages will arrive in a short period of time which need to be processed ASAP. However, it is also possible that certain remote systems are not available when the...

Why should I use JMS and not RMI+Queue?

At the moment I am using RMI or hessian library to communicate between my server and clients (via a LinkedBlockingQueue). Now I read about JMS which could be used in this area too. Is this correct? If yes, would you mind to give me a simple list of advantages/disadvantages, because it seems to be a pretty complicated and 'fullblown-enter...

Is JMS suitable for an online game?

I'd like to throw together a small game and put it online. It would be multiplayer (ideally it would be MMO, but it's a side project, so I'll settle for MO hehe), the content is rather unimportant. I'm planning on writing the game (server and client) in Java. I'm considering options I have for getting information around reliably. Will J...