How to stop a dead message in MDB

I have MDB like the below.
Suppose database fail to insert data but the message still send again again
How to stop message send again again when db exception occur.
How about this property: @ActivationConfigProperty(propertyName = "maximumRedeliveries", propertyValue="0")
Not sure.
Anybody give a hand for help.
Thank in advance
@MessageDriven(mappedName = "jms/aliofiot", activationConfig = {
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue")
public class aliofiotjmsBean implements MessageListener {
@Override
public void onMessage(Message message) {
// call session bean to insert database here
}

Of course, i have try catch on every single part of code.
I thing here is the problem of transaction, if if not success insert into database then rollback and try to re-send the msg again again.
I search on net and see one annotation: @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
after use it with other one: @ActivationConfigProperty(propertyName = "maximumRedeliveries", propertyValue="1")
Then now my system it is OK, but i am not sure what happen in future.

Similar Messages

  • HOW TO STOP THE PROMPTING MESSAGE OF MASTER PASSWORD EACH TIME I OPEN MOZILLA FIREFOX?

    HOW TO STOP THE PROMPTING MESSAGE OF MASTER PASSWORD EACH TIME I OPEN MOZILLA FIREFOX?

    Firefox will ask for the Master Password on startup if it is needed on a page.<br />
    This can be Sync or a web page that is (re)opened automatically and you have saved a name & password for this website.
    You didn't confirm whether you are using Sync or not, so I don't know which of the two would apply.

  • How to stop an error message that pops up every time I open Safari. It reads...Safari 5.1 (v6534.50) has not been tested with the plugin PithHelmet .As a precaution, it has not been loaded. Please contact the plugin developer.

    How do I stop this error message from popping up every time I start up Safari ?
    Error message reads...
    Safari 5.1 (v6534.50) has not been tested with the plugin Pithhelmet 3.0b6 (v 3006)
    As a precaution, it has not been loaded. Please contact the plugin developer.
    I have removed every trace of Pithhelmet, (via spotlight)
    Trashed the preferences for Safari, restarted computer to no avail.
    It just  keeps keepin on.
    Thanks

    In the past I was able to bypass the message by editing the Info.plist file and updating the MaxBundleVersion variable, but not so this time around. As of today the developer seems to indicate there's no immediate fix becuase of how Safari 5.1 handles multiprocess page rendering. Probably best to stay tuned to Mike's website for now.

  • How to stop QuickTime Streaming messages in secure.log?

    The secure.log of the server is flooded with these kind of messages:
    Jan 25 12:13:08 server com.apple.SecurityServer[41]: Succeeded authorizing right 'com.apple.server.admin.streaming' by client '/usr/sbin/QuickTimeStreamingServer' for authorization created by '/System/Library/CoreServices/ServerManagerDaemon.bundle'
    Jan 25 12:13:40: --- last message repeated 13 times ---
    Jan 25 12:13:40 server com.apple.SecurityServer[41]: Succeeded authorizing right 'com.apple.server.admin.streaming' by client '/usr/sbin/QuickTimeStreamingServer' for authorization created by '/System/Library/CoreServices/ServerManagerDaemon.bundle'
    Jan 25 12:15:03: --- last message repeated 7 times ---
    Jan 25 12:15:03 server com.apple.SecurityServer[41]: Succeeded authorizing right 'com.apple.server.admin.streaming' by client '/usr/sbin/QuickTimeStreamingServer' for authorization created by '/System/Library/CoreServices/ServerManagerDaemon.bundle'
    Jan 25 12:15:34: --- last message repeated 3 times ---
    I have tried to adjust the idle time setting in /Library/Preferences/com.apple.servermgrd.plist to 300, the supposed Maximum above which idle time defaults to 60 seconds. In my experience this initially works after which the flooding starts all over. The default interval is also a lot smaller than 60 secs.
    How to effectively eliminate these messages apart from disabling QuickTime Streaming all together?

    I would.  (Ignore it.)  OS X logging has long had this misfeature; various versions of applications have been far too chatty, others have log ominous messages that are harmless, and there's the occasional innocuous-nasty message logged.  
    If this particular message bugs you — I have several similar "favorites" in my own logs — add it onto a grep --invert-match pattern or such, and filter it out of the logs before you review them.  When you're running OS X or another Unix box in production, message filters based on grep or similar are used to reduce the chatter, and also to flag the nasty messages.

  • How to stop duplicate email messages

    I continue to get TWO of every single incoming email.  How do I stop these duplicate email messages?

    good morning beryl
    What email 'provider'? If Hotmail (or other provider), see Csound's 'Helpful' reply in Sent items show twice on MAIL (IMAP) and read on in that thread.
    ÇÇÇ
    EDITbyÇÇÇ

  • How to stop an outgoing message?

    I tried to send an email with a much too large attachement.
    Mail of course couldn't handle it. But, before it gives an error, the program stops. Which means, that the message stays in the outgoing box. And the problem recurs, every time that i open the mail program.

    The next time you open Mail and it tries to send the message, open Activity Viewer (Window --> Activity Viewer). You should get a dialog box with a progression bar and a big red octagonal button (stop). Click the red octagonal button and Mail should immediately stop trying to send the message. Then it should reappear in the Drafts mailbox, and you can delete it from there.
    Chopec

  • How to stop getting text messages intended for another family member?

    Hi,
    I occassionally get a text message intended for another member of my family, and vice versa. When that happens we both get the message, and the other person can then see the rest of the thread. I think the problem is that we share 1 AppleID. If that's the cause I'm not sure how to correct it because we are also sharing all our app, music, and video purchases made with that ID. We are also on the Sprint network, if that is relevant.

    On each device: Settings>Messages>Send/Receive...edit here & just make sure phone number is checked, or that only one person uses the Apple ID. Either that, or you each get separate Apple ID's for iMessage, FaceTime & iCloud. you can continue to use the same ID for iTunes content.

  • How to stop the prompting message of master password when I open firefox when not opening on a site that doesn't use a password?

    Every time I open Firefox it asks for my Master Password. I am not on a site that has a saved password, yet it still asks for it. Sure I can hit Cancel, but continually doing so is a nuisance. It never used to do this in past versions, it only asked for the master password when entering a site with a saved password. Is this a bug? How can I stop this annoying behavior. If needed my Start Page is: www.webcrawler.com.

    Sync will try to connect to the Sync server to look for changes, from other devices that are setup for that account, shortly after Firefox is opened if anything is set to be synchronized, not just tabs. You need to disable Sync from "auto connecting" to Sync, disabling the sync of tabs alone isn't enough.
    http://kb.mozillazine.org/About:config <br />
    Double-click this pref to toggle it, then restart Firefox. <br />
    '''services.sync.autoconnect''' to '''false'''
    Then grab the Sync icon from the Customize Palette and use that to do a manual sync.

  • How to stop iTunes iCloud messages

    Just updated to Maverick OS from Lion. I'm an android phone user so have no need for iCloud. Now every time I open iTunes it comes up with "Your iCloud session has expired. Please login". I heard you could stop this message through Safari but I use Chrome and the message has an iTunes logo in the dialogue box so must be directly associated with iTunes. I've looked through all the settings on iTunes and can't find where to turn off the messages and/or disable iCloud altogether.

  • How to stop receiving spam messages blindly addressed to user "admin"?

    I've done a bit of searching but can't seem to find any relevant posts, so I'm hoping someone can be of help.
    I'm using MacOS X Server 10.2.4. My user account on the server is "alan", and I set it up in Workgroup Manager so that all email addressed to me at "[email protected]" is automatically forwarded to my pacbell.net address. All that is working fine.
    However, when I check my email at my pacbell.net address, in addition to the forwarded mail addressed to "[email protected]", I am also getting a lot of spam addressed to "[email protected]". Evidently, many spammers will just blindly spam "[email protected]" assuming that it will be a valid account. So what appears to be happening is since my user "alan" on the server is also an administrator account, there is some sort of default alias connecting the user "admin" to "alan", which in turn is causing me to receive the spam messages. They must be blind, because I've never used or referenced the address "[email protected]" anywhere.
    So, the big question is --- how can I delink the alias "admin" from "alan"? It does not appear as a shortname in the Workgroup Manager under the user "alan", so I can't delete the alias there. I'm guessing there's probably a file somewhere I need to edit to do this, but can't seem to find it? I would be fine with redirecting mail addressed to "admin" to a null account that doesn't have email active, so those messages will just bounce back to the spammers.
    Alternatively, is it possible to simply reject all mail sent to "[email protected]"?
    Any help is appreciated!
    Many thanks in advance,
    Alan

    David,
    That would make sense, since user "alan" is definitely a member of the group "admin".
    I see that sendmail is installed on the system, though I'm not sure that sendmail is in fact what is running the mail sever (although it could be).
    I discovered this much at least -- the command to start the mail server is:
    /usr/sbin/MailService-autostart on
    So it would seem that "MailService" might be the name of the server app, or something to that effect. If so, how can I modify its configuration files to avert this behavior? Or is there some way to blanket reject all mail send to "admin"? (sorry if I've been repetitive) ...

  • How to stop Acrobat Annoying Message?

    Hi guys,
    That is a minor inconvenience but every time i open Acrobat a message pop up and ask me if i want Acrobat to be my default application. I don't, i rather use Mac PDF Viewer for fast and easy everyday use and Acrobat for special purposes.
    Anyway that i could disable this message?
    Thanks for any info,
    S

    Have you actually click on no?
    Also, go to  find a group of PDF's from  Finder and select 5 or 6.
    Now click on get sumary info in file menu.
    Click on Open With now select desired application.
    then Click on Change all. choose yes or okay.
    You can't do on just one. it changes just the one file. but a series its cahnges the association for all.

  • IPhone 5S - when I tap MUSIC I get message to sign into itunes store, how to stop message

    When I tap MUSIC, on my iPhone 5S I get a popup message to log into iTunes. How to stop the popup message.

    Might be small glitch, try seeing if signing out and signing back in does you any good.
    Settings > iTunes and App Store > Tap on your Apple ID and choose the option "Sign Out".
    Simply go back into iTunes and App Store and re-enter your information make sure you enter the password in its case-sensitive form.

  • How to stop reading foreign queue message from MDB using weblogic 6.1? thanks,

    Hi, I am using weblogic 6.1 to communicate with IBM MQseries foreign
    queue. I use the asychronous way "onMessage()"(properly the only
    known way) to listen the messages from the queue. I like to stop
    receiving messages if my south bound stream has problems and not able
    to process the message, I would like to stop fetching the message with
    my MDB(message driven bean) untill the down stream problem is cleared.
    As weblogic uses container to create the multiple session and
    connections internally, how can I efficiently stop the message
    delivery, do I have to locate all the connections and issue
    connection.stop()for each one, or there is better way to do this.
    Thanks in advance.

    If you never use FaceTime on your Mac, open the FaceTime app on it and sign out. Also, the following instructions are from Connect your iPhone, iPad, iPod touch, and Mac using Continuity - Apple Support
    Turn off iPhone cellular calls
    To turn off iPhone cellular calls on your iPad or iPod touch, go to Settings > FaceTime and turn off iPhone Cellular Calls.
    On your Mac, open the FaceTime app and go to FaceTime > Preferences. Click Settings and deselect the iPhone Cellular Calls option.

  • How to Stop Message Driven Beans to go into an infinite loop

    hi,
    Am kiran peddireddy, have the following problem. When i sent a chunk of 50 messages to the MessageDrivenBean, let us say 25 have passed and at the 26th message there was a problem and could not deliver. so, it throws an exception due this the MDB goes into an infinite loop. Can anyone suggest how to stop the MDB from infinite loop. I need help for this ASAP.
    thanks,
    Kiran Peddireddy.

    To Crackers,
    You have to let the container deal with the message - expire/cancel the message after a certain number of tries. This is easy to manage in the WLS console. Which version of Weblogic has this option? 7.0 or 8.1 ?
    I didnt see this option in Weblogic 7.0!!!!!!
    Corect me if I am wrong.
    Seetesh

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

Maybe you are looking for

  • Upload purchase order

    Hai, how to upload the purchase order when one PO has three line items, another has 100 line items, and so on. can i use BAPI_PO_Create FM for this ? if it possible ,how to use ? Thanks & regards, Manikandan

  • Always have to log in again

    Hi, when working BC in Dreamweaver and Browser simultanously, I have to log in whenever changing the programm. Making a change in DW and going back to the Admins panel in the browser, have to re-log-in. When waiting oder resting for a few minutes, go

  • How to show the pdf file of km in the portal?

    Hi all, I want to create a iView to display the PDF file of KM, how to do it? Thanks

  • IOS 8 safari closes on iPod 5 touch

    I Have a 5th generation iPod. I updated with iOS 8 and now some apps and safari crash when I attempt to use them. Is anyone having similar issues? Is there a fix?

  • Which syntax is correct

    i just want to know which is correct? windows 10.2.0.4 two node rac SCHEMA(ondemandlogs) i had a TABLE(OS_ONDEMAND_LOGS).i just want to know that table indexes i have queried them the out put is as follows can you pls conform me how many indexes for