jboss-mdb

When is messaging (e.g. JMS) an alternative for multithreading ?

I work on a data processing application in which concurrency is achieved by putting several units of work on a message queue that multiple instances of a message driven bean (MDB) listen to. Other then achieving concurrency in this manner, we do not have any specific reason to use the messaging infrastructure and MDBs. This led me to th...

Dynamically creating asynchronous message queues in Java

I need to create asynchronous message queues dynamically in Java. My use case is sending email via multiple SMTP servers: I need to enforce that emails to the same SMTP server are processes sequentially, but emails to different SMTP servers may be processed concurrently. I've used JMS in the past, but as far as I can see it only allows f...

JBoss Error in ejb-jar.xml for Message Driven Bean TextMDB: expected one res-ref-name tag

I've copied and pasted the example ejb-jar.xml and jboss.xml file from http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch6.chapt.html#ch6.mdbejbjar.ex and I'm receiving the following error when JBoss attempts to deploy it: ERROR [ScannerThread] deployment.MainDeployer (MainDeployer.java:943) - Could not create deployment: file:/...-ej...

How can we have JBOSS MDB retry its connection if it fails at startup?

Hello all. We have a server app that is deployed across to server machines, each running JBOSS 4.2.2. We use JBOSS messaging with MDBs to communicate between the systems. Currently we need to start the servers in a very specific order so that JBOSS can connect properly. If a server starts and doesn't see its resources it never tries agai...

Maximum number of messages sent to a Queue in OpenMQ ?

I am currently using Glassfish v2.1 and I have set up a queue to send and receive messages from with Sesion beans and MDBs respectively. However, I have noticed that I can send only a maximum of 1000 messages to the queue. Is there any reason why I cannot send more than 1000 messages to the queue? I do have a "developer" profile setup fo...

JBoss MQ tutorial

I'm looking for a JBoss MQ tutorial (on JBoss Tools) so that I can write an MDB and a client. I can find only JBoss Messaging. ...

Jboss Startup error

Hi. On an existing application I am trying to startup the JBOSS server and I get following error. Unfortunately I do not know clearly as yet, what all has been configured and is being used on this jboss. For now; I quickly want to get the error sorted out. If looking at the stack trace, you can suggest what kind of configuration is mi...

How to reference an embedded JCA resource adapater

For our current J2EE project based on JBoss, we need to interface with a remote system using message driven beans and a JCA resource adapter provided as a RAR file by a third party. I would like to package and deploy the entire project as an EAR file to our JBoss server. Most notably, the RAR file should be embedded within the EAR file a...

Problem in creation MDB Queue connection at Jboss StartUp

I am not able to create a Queue connection in JBOSS4.2.3GA Version & Java1.5, as I am using MDB as per the below details. I am putting this MDB in a jar file(named utsJar.jar) and copied it in deploy folder of JBOSS, In the test env. this MDB works well but in another env. [ env settings and jboss/java ver is same ] it is throwing erro...

MDB listening a Topic in JBoss 5.1

Hi, I have a topic configured correctly like this, in jboss 5.1: <mbean code="org.jboss.jms.server.destination.TopicService" name="jboss.messaging.destination:service=Topic,name=GreetingsTopic" xmbean-dd="xmdesc/Topic-xmbean.xml"> <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer </depends> <d...

How to auto create a JMS topic/queue on JBoss in a portable and per-application way?

It's simple: I have an MDB and an EJB that sends messages to a topic (or queue). JBoss complains that the topic is not bound to the JNDI context. I want to have the topic/queue to be automatically created at best, or at least to have a standard way to define it, per application (say, in ejb-jar/META-INF) this question and this blogpost...

Message driven bean not responding until client method is complete

Hi, I have a MDB deployed on Jboss 4.2.2 and a client on the same server that produces messages and expects a reply from the MDB via a temporary queue created before the message is sent. When I run the client, I see that it creates the message, puts it in the queue and waits for the reply (no problem so far) ... but when I check in the...

PHP ODBC MDB Access on a Cloud Server

Hey! Hopefully quick question.... I have a .MDB file stored on my webserver and I'm trying to connect to it. I have no way of "registering" it with a name in ODBC. Is the only way to connect to it by specifying the absolute page of the .mdb file? $mdbFilename = "./db/Scora.mdb"; $connection = odbc_connect("Driver={Microsoft Ac...

problem with seam and mdb on jboss5.1

I have a problem when using a mdb as a seam component. In the bean I inject some other seam somponents. The problem is that when the server restart after a crash and the mdb is deployed it starts reading the messages but seam is not initialized yet and I got an exception(listed above). If i start the server whith the queues empty and su...

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...

Custom error que

Hi all, I`am using jboss-5.0.0.GA-jdk6. Ive implemented a JMS que, and MDB which listens to it.(so far so good) What im trying to achive is: after 3 attempts of errors, instead of sending the error msg to DLQ, i wanna send it to a new custom Error Que which I want to define, so I can handle the errors in that que the way I want. any i...

JBoss Messaging and Thread Priority

I'm using JBoss 5.1.0 GA together with JMS. I have two message-driven beans. Could someone explain the threading model to me? For example, does each MDB have a separate thread pool? Do they share a global pool? ...