Message Driven Bean Not Picking Up Messages From Queue For Processing (Doc ID 1085516.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version: 10.1.3.4.0 and later   [Release: AS10gR3 and later ]
Information in this document applies to any platform.

Symptoms

MDB based application is successfully deployed to OracleAS / OC4J 10.1.3.4 but doesn't receive messages sent as follows:

InitialContext context context = new InitialContext();
QueueConnectionFactory qcf = (QueueConnectionFactory)context.lookup("jms/QueueConnectionFactory");
Queue queue=(Queue)context.lookup("jms/ccQueue");
QueueConnection conn = qcf.createQueueConnection();
conn.start();
QueueSession session1 = conn.createQueueSession (
true,
Session.AUTO_ACKNOWLEDGE
);
QueueSender sender = session1.createSender(queue);
HashMap hmFinalDTO = new HashMap();
hmFinalDTO.put("type","NewCarList");
hmFinalDTO.put("DTO",hmlistDTO);
ObjectMessage outMessage = session1.createObjectMessage(hmFinalDTO);
sender.send(outMessage);
System.out.println("object put in queue");

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms