Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7690701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:27:23+00:00 2026-05-31T20:27:23+00:00

I am using MDBs deployed on WAS 61. I have a queue (X) and

  • 0

I am using MDBs deployed on WAS 61. I have a queue (X) and a backout queue (Y). When the MDB listening on X fails to process the message, and EJB exception is thrown, the transaction rolls back and I put the original message on the backout queue.
backout queue (Y) has its own MDB which picks up the message and sends to support team in email. So far so good.

Now support team would be helped a lot if in addition to the message in the email, they can also see the exception that was thrown by the EJB. Because looking at just the message ,it is not possible to figure out what went wrong. Is there way to add the exception to the original message before putting it in backout queue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:27:24+00:00Added an answer on May 31, 2026 at 8:27 pm

    ObjectMessage
    :

    An ObjectMessage object is used to send a message that contains a
    serializable object in the Java programming language (“Java object”).
    It inherits from the Message interface and adds a body containing a
    single reference to an object. Only Serializable Java objects can be
    used.

    You can create a class implementing Serializable interface & can have proper attributes to hold the exception details. Then by setting this object in ObjectMssage you can put it in queue.

    objectMessage.setObject(object);  //-- Setting serializable object
    

    At receiver end, this object can be obtained from the message & exception details can be retrieved form it accordingly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today if we build an application using the JMS API (using MDBs as message
I'm occasionally getting the following EJB exception across several different message driven beans: javax.ejb.EJBException:
Using online interfaces to a version control system is a nice way to have
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using android 2.3.3, I have a background Service which has a socket connection. There's
I need to write a Message Driven Bean. I'm using JBoss IDE 1.5. I
Using MVC2 I have an AJAX form which is posting to a bound model.
I'm having problems advising MDBs with default interceptors in Websphere 7.0 AS. I have
I have an application containing 4 MDB's each of which receives SOAP messages over
I would like to have an advice for this issue: I am using Jbos

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.