This discussion is archived
7 Replies Latest reply: Apr 9, 2013 12:13 AM by 992765 RSS

WebLogic JMS error queue

992765 Newbie
Currently Being Moderated
Hello. I have problem after sending message to JMS queue. Message by log file sending is success. But Message don't put to queue and put to error queue.
Message don't put to queue in 25 % cases.

Speak please, what can be reasons what message put to error queue ?
  • 1. Re: WebLogic JMS error queue
    992765 Newbie
    Currently Being Moderated
    Don't can help ?
  • 2. Re: WebLogic JMS error queue
    FabioDouek Journeyer
    Currently Being Moderated
    Hi,

    If you could detail the issue, it might help.
    To be honest, I can't really understand what you are trying to say.

    Regards,
    Fabio.
  • 3. Re: WebLogic JMS error queue
    992765 Newbie
    Currently Being Moderated
    In any jms queue can be configure error queue. In error queue send messages if occur error.
    Thar error types can occur ?

    http://middlewaremagic.com/weblogic/?p=4670

    I don't understand why jms message from time to time sending to error queue...

    Edited by: 989762 on 08.04.2013 1:45
  • 4. Re: WebLogic JMS error queue
    FabioDouek Journeyer
    Currently Being Moderated
    Do you see any exception in the weblogic server logs?
    How are you putting the messages in the queue? OSB? BPEL? Java application?
    Is that a clustered environment?

    Regards,
    Fabio.

    Edited by: Fabio Douek on Apr 8, 2013 11:13 AM
  • 5. Re: WebLogic JMS error queue
    992765 Newbie
    Currently Being Moderated
    any exception NOT for this time...
    JMS putting with java application.

    Code:
    public final static String JMS_FACTORY = "jms.uniqueue.XAConnectionFactory";
    public final static String JMS_QUEUE = "jms.uniqueue.DefaultOutgoingQueue";

    private QueueConnection jmsConnection;
    private QueueSession jmsSession;
    private QueueSender jmsSender;

    TextMessage message = jmsSession.createTextMessage(message);
    try {
    jmsSender.send(message);
    if (log.isDebugEnabled()) {
    log.debug("message SEND");
    }
    } catch (Exception ex) {
    log.error("Can't send message to " + JMS_QUEUE + ": " + ex, ex);
    // TODO do reconnect to jms queue
    }

    Message by log "message SEND" is putted to queue.

    Edited by: 989762 on 08.04.2013 3:37
  • 6. Re: WebLogic JMS error queue
    FabioDouek Journeyer
    Currently Being Moderated
    First fo all, I think you posted this is the wrong forum, as this is pure java/weblogic related.

    Make sure that you are closing the sender, session and connection?
    Are you running this app standalone or from an app deployed in weblogic?

    Regards,
    Fabio.
  • 7. Re: WebLogic JMS error queue
    992765 Newbie
    Currently Being Moderated
    give me please need section link.
    I closing the sender, session and connection in method destroy();

    That class, That is EJB:

    @Stateless(name = "BeanName", mappedName = "ejb.un.BeanName")
    @Local(BeanLocal.class)
    public class BeanName implements ReleaserLocal { 

    @PreDestroy
    public void destroy() {

    try {
    jmsSender.close();
    } catch (Exception ex) {
    }
    try {
    jmsSession.close();
    } catch (Exception ex) {
    }
    try {
    jmsConnection.close();
    } catch (Exception ex) {
    }
    }

    private void sendMessage(String payload, String channel, long qId){
    try {
    jmsSender.send(message);
    if (log.isDebugEnabled()) {
    log.debug("message SEND");
    }
    }


    I running this app from depployed in weblogic.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points