jms

Message recovery in JBoss Messaging

Hi, everyone, We're having a lot of problems with our setup featuring Java 6, JBoss Application Server 5.1.0.GA and JBoss Messaging 1.4.6.GA. Lately there have been a string of server crashes(caused by me and my colleages :-) ) and that has left us with some messages in an inconsistent state(not properly delivered). Normally the JBoss M...

What all functionality are there in queue which can't be achieved by topic??

What all functionality are there in queue which can't be achieved by topic?? ...

using JMS for long running processes?

Hello, Can someone point me to a tutorial or similar code where JMS is used by a web app to execute a long running background process? (instead of using threads), I'm fairly familiar with the concepts of JMS messaging, but never used any JMS API or brokers (i'm looking at learning Apache ActiveMQ) I'd like to be able to: submit a mes...

Transaction Control across multiple JVMs

I have what seems to be a standard java problem: multiple database transactions, in Oracle, that need to all be committed or none. This is complicated by the fact that each process is in a seperate JVM. The modules are connected by JMS queues in a pipeline configuration. The idea is that a series of messages can be passed through the p...

JBoss 5.1 message replication

I have a multi client application with some unique network requirements. We have several server instances running, and each server has several clients. Server A Client 1 Client 2 Server B Client 3 Client 4 I want to put a JBoss 5.1 server on server A and server B with JBoss Messaging configured. Both servers will have the s...

JbossTextMessage Unicode convert failed in Linux

Hello, I'm trying to upload a xml (UTF-8) file and post it on a Jboss MQ. When reading the file from the listener UTF-8 characters are not correctly formatted ONLY in the Jboss (jboss-5.1.0.GA-3) instance running on Linux. For an instance: BORÅS is converted to BOR¿S at Linux jboss instance. When I copy and configure the same jboss ...

ActiveMQ Camel Admin Routes

I have a simple Route written in Java and have the jar file deployed to activemq/lib and updated the activeMQ.xml to look for the route via the package can element. But the route is not showing up in the web admin console... wondering what other steps are involved... public class SampleConnectorRoute extends RouteBuilder { public void...

Would you use pub/sub or queues for long running background processes?

Hello, 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 use JMS for these processes. Once a request arrives, a message is sent to ActiveMQ, there's a listener class that receives those and t...

JMS and JMX tutorials?

Hello friends, i am preparing for an interview which requires a bit hands on JMS and JMX, but i didnt work on these. so need any video tutorial links which can make me understand quickly. thanks. ...

Acknowledge a message from a different Channel/Session in JMS

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 be added back to the queue. Is this possible using JMS( planning to use ActiveMQ as the broker). ...

Cannot GET domain objects from JMS listener

Hi All, In my application I am trying to send e-mails to our customers when some "event occurs" for eg. like when we receive a payment or a new customer sign in... I am successfully able to capture to those events and I am trying to send the mail and here comes the problem I am using JMS to have all this sending mail functionality in t...

Module clustering and JMS

Hi, I have a module which runs standalone in a JVM (no containers) and communicates with other modules via JMS. My module is both a producer in one queue and a consumer in a different queue. I have then need to cluster this module, both for HA reasons and for workload reasons, and I'm probably going to go with Terracotta+Hibernate for cl...

How can I web app poll a queue continously? or does it have to be another service?

If I use a queue in my web application (spring), can I do: while(..) { } To response to new items added to a queue, or does this have to be a seperate service that runs on the server? i.e. this can't be sustained in a web application correct? ...

Embedding ActiveMQ broker in Spring-MVC Tomcat webapp

I have a small Spring MVC webapp (which embeds ActiveMQ) that is designed to run in a local Tomcat, and reliably message to a queue on a remote ActiveMQ. All of that's in place, except for the "reliably". At the moment, if the remote site goes down, the send fails dramatically. My send config: <!-- Connection setup --> <bean id="connec...

How do you publish a JMS topic with Spring JMS?

Hello, I have a component that sends messages to a queue to be handled by another system. It should also publish a topic about job statuses every once in a while. Can I just use the same JmsTemplate used to send to a queue AND to publish to a topic? I created a new topic in ActiveMQ, except that when I send from JmsTemplate a message,...

ActiveMQ Ajax not processing topic messages published by Spring JmsTemplate

Hello, I created a quick web site with ActiveMQ's Ajax javascript message handlers to subscribe to a topic that is published by a JAX-RS/Spring web service. I noticed something rather weird, the ActiveMQ ajax does not call the message handler function if I publish a MapMessage from JmsTemplate, however it does call it if I publish it ...

Migration from javax.jms to jbossMessaging

Hello All, I am working for a migration project in which jms code is written using stadard code javax.jms and running on jboss-3.x. Now we are migrating to jboss-4.3, which support Jboss Messaging(JBM), I want to what kind of changes i have to do in JMS code. Please help me in this Regard. Thanks and Regards, Rahul Aahir. ...

JMS QueueRequestor and deleted Destination

I'm using Activem MQ 5.3.1 My configuration is good for classical async messaging I try to use a QueueRequestor The message is effectively sended, recieved. But when it's time to answer on the temp queue i've got this exception raised javax.jms.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:...... ...

Jboss 5.1 ActiveMQ 5 standalone broker MDB setup

I'm attempting to use the sample broker that comes with ActiveMQ 5 with an MDB deployed on JBoss 5.1 AS. I've deployed the activemq rar to the deploy directory. I've deployed activemq-jms-ds.xml to deploy/messaging which defines my connection factories. I have the broker running on localhost:61616 as defined in the connectionfactory con...

How to setup Topic in HornetMQ on jboss 6

In hornetmq-jms.xml i see <queue name="ExpiryQueue"> <entry name="/queue/ExpiryQueue"> </queue> but how to configure a topic? in jboss 3.2.1 we did it throght jbossmq-destinations-service.xml ...