jbossmq

Reconnecting JMS listener to JBossMQ

We have a Java listener that reads text messages off of a queue in JBossMQ. If we have to reboot JBoss, the listener will not reconnect and start reading messages again. We just get messages in the listener's log file every 2 minutes saying it can't connect. Is there something we're not setting in our code or in JBossMQ? I'm new to JMS s...

JBoss 4.0.5 MDB Configuration

This one is beating me, and I have not been able to figure it out ... So here it goes. I want to add a Message Drive Bean to my app which is packaged as a .ear file Following the documentation I've created a jboss.xml and a ejb-jar.xml, which I tried to put on the META-INF and the root and on the WEB-INF but I just don;t see it working ...

How to configure startup sequence of JBoss services (JmsActivation)

When I deploy my application on JBoss 5 the EJBs are created before the QueueService is started. Creation of Message Driven beans now fails miserably because the queues are not yet available: 17:11:29,151 INFO [EJBContainer] STARTED EJB: ..... 17:11:29,266 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI: ....

How to resend a message from the JBoss 4.2.2 message queue after retry expired

Is there a way to resend expired messages in a JBoss 4.2.2 message queue? The issue is they exceeded their retry amounts, but now the problem is fixed, so is there a way to resend them? In JBoss 3 they were just text files that you could move around. Now that it is stored in a database, how can you do it? ...

How to create a Topic Connection Factory with clientId in JBoss 4.2.1-GA

I need to create a durable subscription to a topic in JBoss 4.2.1-GA. In order to do this I need to create a connection to the topic using a connection factory that has a specific clientId value associated with it. I know it can be done by configuring a Connection Factory in JBoss using xml but I can't find any examples that work for me...

How can I test a JBossMQ JMS Queue with JMeter

I'd like to use JMeter test that I can send a message to a JBossMQ (JBoss 4.2.3 JMS Queue). If I get that far then I will be able to build some load and other tests. JBoss is pretty much straight out of the box and is a server called servername. Since there are some queues set up by default, lets use Queue A which according to ${JBOSS_H...

JBoss Messaging per EAR configuration

I'm using JBoss Messaging 1.4.3.GA (inside JBoss AS 5.1.0.GA). I'm packaging the definitions of my queues inside my EAR using an mbean. This means applications can define and use queues without having to change our company's stock JBoss installation. Is it possible to configure message persistence on a per application basis (inside the ...

How to initialize ConnectionFactory for remote JMS queue when remote machine is not running?

Using JBoss 4.0.5, JBossMQ, and Spring 2.0.8, I am trying to configure Spring to instantiate beans which depend on a remote JMS Queue resource. All of the examples I've come across depend on using JNDI to do lookup for things like the remote ConnectionFactory object. My problem is when trying to bring up a machine which would put messag...

JMS message to remote server

I need to send a message to a remote server's queue (running "JBoss MQ") so that it can process the message and act on it. Properties properties = new Properties(); properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces"); p...

clear jBoss DLQ

hi, Does anyone know how to clear DeadLetterQueue from jBoss? When i start jBoss, it is waiting 4 minutes at: 12:09:06,281 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' and other 4 min at: [DLQ] () Bound to JNDI name: queue/DLQ a...

Can I use JBoss MQ on JBoss 5? If so, how?

I have an application that was written on JBoss 3.2.5 and I am tasked with migrating it to JBoss 5. I am unable to deploy the application because it relies on JBoss MQ, which I read has been replaced by JBoss Messaging. Is there any way I can get the app to work on JBoss 5 without making any code changes? Config changes are OK. ...

Using JMS or ThreadPool to send email messages

Hi everyone, I will like to know: I have a scenario. If a user adds a product to the system (I'm developing), there's a listener that sends a notification to the user's client base notifying of a new product added by the user. I've read this thread and (seeing I've never used JMS nor ThreadPool before) I was wondering whether I should...

How to connect JMS queues from JBOSS 4 and 5?

I have a server on which a Jboss 4.2.2 and a Jboss 5.1.0 runs. The problem is that a 3rd party is not able to upgrade its application to Jboss 5.1.0 in the near future, for us it is a simple matter. Unfortunately we need to send and receive some JMS messages from the third party app running on Jboss 4.2.2. What is the easiest way to ena...