jms

Choosing embedded EJB 3.x container to run JEE 5 app on Tomcat

I am sorry in advance if my question sounds too generic - I am doing all preliminary research myself but nothing substitutes real experience... My goal is to port a legacy JEE application (pre-EJB 3.x) to Tomcat with embedded EJB container. My choices currently stand as follows: JBoss Embeddable EJB Apache OpenEJB OW2 Consortium EasyB...

Whats the best way to process an asynchronous queue continously in Java?

I'm having a hard time figuring out how to architect the final piece of my system. Currently I'm running a Tomcat server that has a servlet that responds to client requests. Each request in turn adds a processing message to an asynchronous queue (I'll probably be using JMS via Spring or more likely Amazon SQS). The sequence of events is...

JMS rollback

I have a process which involves sending a JMS message. The process is part of a transaction. If a later part of the transaction fails, a part that is after a previous part that sent the message, I need to cancel the message. One thought I had was to somehow set on the message that it is not to be picked up for a certain amount of time, a...

Could JMS with ActiveMQ somehow be using JmDNS?

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 that his logs contain messages from JmDNS. I'm trying to figure out if he's getting this through my plugin or from something else. I thought J...

How to set MQMD ApplicationID field via JMS API?

Hello, I'm using the JMS API to send messages to a Websphere MQ server. The application that pulls the messages i create want's me to set up the ApplicationID field in the MQMD structure to constant value. I could not find a way in the JMS API to access the MQMD structure The question: Is there a way doing this? if yes then how? If no, ...

Apache Camel for Asynchronous Calls

Does it make sense to use Apache Camel for Asynchronous requests? Or should I use simple MoM using a JMS server. There are no Enterprise Integration Patterns that I'll require. Any help would be useful. ...

Unit-Of-Order in WLI JMSControl

Hello guys! One of our clientes is intented to use the Unit-Of-Order Weblogic Server Feature (UOO). Everything is OK using UOO in pure java code for sending JMS Messages with custom UOO Names, as well as propagating the UOO Name in Aqualogic Service Bus from the Proxy Service to a Business Service (both using JMS as the transfer proto...

JMS Messaging Performance: Lots of Topics/Queues vs. Extensive Filtering (Message Selectors)

I'm working on a project that is going to make heavy use of JBoss Messaging (JMS). I'm tasked with building an easy to use wrapper around Messaging for other developers and am thinking about using JMS's Message Selectors to provide a filtering technique to keep unnecessary sending of messages to a minimum. I'm curious if anyone has any e...

Weblogic "Abandoning transaction" warning

We randomly get warnings such as below on our WL server. We'd like to better understand what exactly these warnings are and what we should possibly do to avoid them. Abandoning transaction after 86,606 seconds: Xid=BEA1-52CE4A8A9B5CD2587CA9(14534444), Status=Committing,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds sinc...

Need Help with Java JMS ResourceAllocationException

I am getting the following error: javax.jms.ResourceAllocationException: [C4073]: A JMS destination limit was reached. Too many Subscribers/Receivers for Queue The setup was done in such a way that there is one provider and two consumers. Is the reason this error is happening because it is a queue and it can only have one provide...

How to temporarily disable a message listener

What would be a nice and good way to temporarily disable a message listener? The problem I want to solve is: A JMS message is received by a message listener I get an error when trying to process the message. I wait for my system to get ready again to be able to process the message. Until my system is ready, I don't want any more messa...

Tomcat/BlazeDS/ActiveMQ disconnect problem

We are experiencing disconnects on our Tomcat/BlazeDS/ActiveMQ stack. Although our BlazeDS StreamingAMFChannel is configured with the default idle-timeout-minutes of 0, it seems to timeout after about 30 minutes of idle time (see log). The client does not do any requests during that time and we are also not pushing messages from the Acti...

JMS Durable Subscriber last usage

I have two JMS durable subscribers that seems to no longer be in use. Does any one know of any way to determine when was the last usage of these subscribers. show durable bweston prints the following: Durable Subscriber: bweston Subscription name: bweston Client ID: Topic: aquafirmout.* Type: dynam...

Scalability of J2EE Application. How would you approach it?

I've been working on the solution for financial industry. The main functionality of the application is the ability to load massive input files, digest them, update state in persistent store and generate extracts from persistent store on request. Pretty straightforward. The input files are industry standard formatted XML large (more that...

Parallel processing of JMS messages ?

Is it possible to create a pool of Message Listeners or a Message Driven Beans to process messages from a JMS queue or topic in parallel ? I am using JBoss and JBoss's JMS ...

JMS alternative? something for decoupling sending emails from http reqs

Hi, we have a web application that does various things and sometimes emails users depending on a given action. I want to decouple the http request threads from actually sending the email in case there is some trouble with the SMTP server or a backlog. In the past I've used JMS for this and had no problem with it. However at the moment f...

Using JMS, is there any way to store messages on intermittently disconnected clients and forward them to a broker when a network is available?

I am considering an architecture where I have clients that are intermittently connected to a network. I would like to store messages created on these clients in a JMS queue when the network is not available and have these forwarded to a central message broker when the clients are on the network. (The user has control over the network, e....

Use of ajax to call JMS

Hi I have the followig code: page1.jsp The ajax function called on click of button function ajaxFunction() { var xmlHttp; xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) { alert("Data loaded"); } } xmlHttp.open("GET","page2.jsp",true); xmlHttp....

JMS Topic Creation in JBoss 5 AS

In Jboss 4, when I deployed an ear with an MDB for a topic that had not been specified in the deployment descriptors, the server would automatically create the topic (after posting a warning saying that topic didn't exist). In Jboss 5, it doesn't seem to automatically create the topics anymore (errors out instead). Is there a configurat...

ActiveMQ message grouping performance

Has anyone used the Message Grouping feature in ActiveMQ? http://activemq.apache.org/message-groups.html This would be a really useful feature for a project I'm working on, but I'm curious how well this feature scales and performs. In our system, we would need to group messages into groups of about 3-5 messages, so we would be continu...