jms

Configuring a 'retry delay' in MQ Series

I'm hoping someone can help me - I'm using JBoss 5.1 and MQ Series 7 in an EJB / JMS based application. I have several message driven beans in my application, each listening on an MQ Series message queue. When an error is encountered during the processing of a message, I need to be able to configure a 'retry delay', so that mq series w...

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

Can I send messages to a JMS queue from outside the app server?

As I understand it, a J2EE container is required to include a JMS provider. Is it possible for a standalone Java application to send messages to a JMS queue provided by the container? If so, how do I access the JNDI lookups from outside the container? (I am trying this with Geronimo if it makes any difference, but I am hoping there is a...

Why is my JNDI lookup for a QueueConnectionFactory returning null?

I am trying to look up a QueueConnectionFactory and Queue via Geronimo's JNDI. The Queue gets returned fine, but the QueueConnectionFactory lookup always returns null. It doesn't throw a NamingException, which is what I'd expect if the JNDI name was incorrect. Can anyone see what I'm doing wrong? The test code below outputs: true fals...

How to find long running transactions in Websphere MQ Series?

In a J2EE environment the MQ server log shows the following: Process(954584.5) User(mqm) Program(amqzmuc0) AMQ7469: Transactions rolled back to release log space. .... While increasing the logfile size/space might be a temporary solution, the definitive solution must be to identify the culprit process/queue that causes this long transa...

Simple JMS Clients on OS X

I haven't touched any J2EE stuff in years and I need to whip up a quick JMS client for a demo. I'm using Eclipse, on OS X and I can't even get started because I can't seem to figure out how to get the required libraries. This is supposed to be a simple stand alone application (not running in a container) that pulls messages from a top...

How do I migrate JBoss 4.0.5 JMS configuration to JBoss EAP 4.3?

I have a J2EE application running on JBoss 4.0.5 which makes use of custom JMS queues and topics. The configuration for these is in XML files in the deploy\jms directory. JBoss Enterprise Application Platform 4.3, however, does not have a jms directory in this location. What do I have to do to migrate my existing JMS configuration files...

Websphere MQ using JMS, closed connections stuck on the MQ

I have a simple JMS application deployed on OC4J under AIX server, in my application I'm listening to some queues and sending to other queues on a Websphere MQ deployed under AS400 server. The problem is that my connections to these queues are terminated/closed when it stays idle for some time with the error MQJMS1016 (this is not the p...

JBoss: Adding JMS resources to JBoss 4.3

Hey everyone, I am having trouble understanding where to define the JMS resources that are needed by the JMS queue implementation in JBoss. Currently the code that I'm dealing with works on WebLogic, and I'm trying to migrate it over to JBoss 4.3 eap. In weblogic, there is a jms.xml file that defines the JMS resources and JNDI lookup ...

How to receive what was sent by convertAndSend?

I'm reading Spring Framework reference, chapter about JMS integration. There are some examples for sending text messages and asynchronously receiving them (by listeners). And there is also an example for JmsTemplate function convertAndSend which converts given object to a message. The reference says: By using the converter, you and y...

diffrence between jboss.jms and jboss.mq ?

Whats is diffrence between classes org.jboss.jms.server.destination.QueueService and org.jboss.mq.server.jmx.Queue? ...

PL/SQL function in Oracle cannot see DBMS_AQ

I have problem with Oracle 9.2 and JMS. I created PL/SQL routine to send XML text (from file or CLOB) to queue, but this routine do not compile. My code looks like (filling message omitted): create or replace procedure jms_test(msg varchar2) is id pls_integer; message sys.aq$_jms_stream_message; ...

Oracle: problem with constructing JMS message

After some struggle with Oracle Advanced Queuing and dbms_aq package I encountered another issue. I copied code from Oracle tutorials but when I compile this code: create or replace procedure jms_test(msg varchar2) is id pls_integer; message sys.aq$_jms_stream_message; enqueue_options dbms_aq.en...

J2EE Download Link

Hi, I know this is a stupid question and I really have been looking around for a few hours... but how can I get J2EE? I would like the j2ee and j2eeadmin tools. What do I download I have downloaded and installed the jdk-6u16-windows-i586 (Java SE Development Kit 6u16 for Windows) Can someone point me in the right direction? Thanks....

How to enqueue long text into Oracle JMS?

I have problem with sending long messages to Oracle JMS. My queue was created with: dbms_aqadm.CREATE_queue_table( queue_table => 'QUEUE_TABLE_TEST', queue_payload_type => 'SYS.AQ$_JMS_MESSAGE'); sys.dbms_aqadm.create_queue( queue_name => 'QTEST_OUT' , queue_table => 'QUEUE_TABLE_TEST' , queue_type => sys.dbms_aqadm.NO...

Ensuring serial processing of JMS messages in an OC4J cluster

We have an application that processes JMS message using a message driven bean. This application is deployed on an OC4J application server. (10.1.3) We are planning to deploy this application on multiple OC4J application servers that will be configured to run in a cluster. The problem is with JMS message processing in this cluster. We...

Why is JMS not included by default in JDK ?

JMS API is not part of JDK 6 as JDBC is. Why is JMS not a part of JDK? Is it because is very old with no progress? ...

Async / Enterprise Messaging for PHP Apps

What messaging platform would be the best choice for asynchronous message queuing (publish, consume) between PHP and Java apps? I have looked at RabbitMQ, ActiveMQ, OpenAMQ, Tibco Rendezvous, and Websphere MQ. Persistence is required. I love the idea of AMQP and using an open protocol, but I've heard of stability issues with RabbitMQ, wh...

Creating TemporaryQueues

Hi, I have tried to create and use a TemporaryQueue in JMS. My producer succeeds but my consumer fails at this like, with the following error. I understand that this question may require the full code, but it is very lengthly and I am sure no one wants to sort though that. However, if the answer is not so obvious from what I have give...

JMS createQueue Trouble

Hi I am having trouble using the createQueue in JMS. I can create a queue successfully but right after I try to do the following and it fails. Any ideas? Thanks. QueueSender mySender = mySession.createSender(myQueue); With the error: javax.jms.InvalidDestinationException: CWSIA0062E: Failed to create a MessageProducer for queue://...