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

  • Home
  • SEARCH
  • 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 3760274
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:26:48+00:00 2026-05-19T10:26:48+00:00

I am using jboss5.1.x, ejb3.0 I have a transaction which goes like this: MDB

  • 0

I am using jboss5.1.x, ejb3.0

I have a transaction which goes like this:
MDB listen to JMS Queue.
MDB takes msg from JMS writing to Database.

in some of the catch clauses i throw “New EJBException(..)”, in order to have rollbacks when specific exceptions occurs.

beside of that I have configured a re-try mechanism, after 3 times the msg going to error queue.

What i wanna achive is:

when Iam having a rollback, i want to increase the current re-try number, so if some1 is observing the database, he/she can see on-line the current re-try number.

the problem is: when I do rollback, so even the “insert_number_of_retry” query is being rolled back itself, which preventing from me to add the current retry number to the database

how can I solve this?

Thanks,

ray.

  • 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-19T10:26:49+00:00Added an answer on May 19, 2026 at 10:26 am

    You can try to execute your logging method inside a separate transaction by annotating it with @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW).

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

Sidebar

Related Questions

I am using jboss5.1, EJB3.0 and standalone java application as a 'subscriber' I have
I am using Jboss5.1.x, EJB3.0 I am into this subject for couple of days
Using jboss5.1.x, ejb3.0 This was driving me crazy for two day now: I am
I am struggling this for a week. using Jboss5.1.x, EJB3.0, quartz1.8 people refer me
I'm trying to implement stateless session bean ejb3 in jboss5 using netbeans6.8 as a
I have a problem when using a mdb as a seam component. In the
I am using restEasy(Restful implementation for jboss) ejb3.0, Jboss5.1.1 AS I did restful service
I have an app., coded with ejb3, jsf and maven, which runs on jboss
I am using Jboss5.1.x , EJB3.0 I am trying to configure Quartz. I get
I am using JBoss5.1.x AS, EJB3.0. I am trying to add a job (using

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.