Persistent Messages, What heppens if a system is started!

Hi,
I am new to JMS and trying to understand. I have a Web Service that put messges on a queue. Now on the consumer side I have a Message Driven Bean. What if my MDB is not available and the WS puts some messages in a queue. The messages are still in a queue but not consumed as MDB is not available. Now I restarted the whole system and server and redeployed the MDB but I don't see any messages being consumed by MDB even though there are some messages that are put by Web Service before starting the System. Are the messages lost if in a queue but not yet consumed and a system or server is restarted.
How can I make the messages available in a queue all the time even after a restart. Here is a snippet of code that ques the messages.
InitialContext context = new InitialContext();
QueueConnectionFactory fac = (QueueConnectionFactory)context.lookup("jms/MainQueueConnectionFactory");
QueueConnection conn = fac.createQueueConnection();
QueueSession session = conn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
Queue que = (Queue)context.lookup("jms/MainQueue");
QueueSender sender = session.createSender(que);
MapMessage message = session.createMapMessage();
message.setString("Subject","subject");
message.setString("Content","Content");
sender.send(message);If messages gets lost if the system or server is restarted then what's the point of Persistent Messages. Any help is appreciated.
Thanks

How do I set it never to expireBy setting the message time-to-live to zero. This can be done on the message and possibly on the connection factory. I'm pretty sure the default is zero anyway, but couldn't find this in the spec - http://java.sun.com/products/jms/docs.html
I believe all the messages are by default persistentThis depends on your JMS Provider. See you providers docs for how to configure for persistent messaging.
Where exactly in queue definition any small sampleAgain this depends on your JMS provider. I don't have experience of your app server so I can't provide and example - sorry.

Similar Messages

  • Help! a persistent message locks up Network in System Preferences

    I allowed an application (EyeFi Manager, which controls those cool SD WiFi cards) to get a Airport password from the keychain. Maybe it changed other things too, but now, whenever I try to access Networks in SysPrefs, I get a little window that says "Your network preferences have been changed by another application." Uh, o.k. But clicking "OK" doesn't clear it--it pops right back. I have to force quit, and thus, cannot access my Network pane at all. And I need to do that!
    This is a Mini core solo, running Tiger, and a snow base station.
    Airport does work, but this is driving me crazy.
    How can I restore sanity?

    Hi Jon, and a warm welcome to the forums!
    To stop the pop-up, Go to System Preferences: Security. Check the box next to "Require password to unlock each secure system preference." Then lock Security.
    Try this cure for Security update...
    http://discussions.apple.com/thread.jspa?threadID=1730909&tstart=0

  • By the today e-received updates for Adobe Photoshop Elemenst 12.1 and Adobe Premiere Elements 12.1 I got this error messages: Failure code = U44M1P2003. What to do? System = Window7 64bit.

    By the today e-received updates for Adobe Photoshop Elemenst 12.1 and Adobe Premiere Elements 12.1 I got this error messages: Failure code = U44M1P2003. What to do? System = Window7 64bit.

    Sometimes the Adobe servers used for the updates can get busy and it’s necessary to try a couple of times. Also make sure you don’t have a firewall which may be blocking the connection. It sometimes helps to temporarily disable internet security/anti-virus software. Because the Organizer is shared by both programs it often helps to do the PSE update first, followed by the PRE update in that order.
    Select the 12.1 update for PSE from the updater dialog and ensure everything else is unchecked.  Quit PSE and PRE if you have it running and then start the update.
    If PSE updates properly to 12.1 repeat the process for PRE.

  • I am trying to download itunes and I get this message: Service apple mobile device failed to start. Verify that you have sufficient privileges to start system services??? what do I do?

    i am trying to download itunes and i get this message: service apple mobile device failed to start. verify that you have suffient privileges to start system services. what do i have to do?

    Hi txatxo
    Thanks for using Apple Support Communities.  You may need to restart the Apple Mobile Device Service.  This article has instructions for doing this:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/ts1567
    If that doesn't resolve the issue, I would recommend trying a thorough uninstall and reinstall of iTunes as described here:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    Cheers,
    - Ari

  • On trying to install iTunes got the following message:  Service "Apple Mobile Device" failed to start.  Verify that you have sufficient privileges to start system services."  Would not let me finish install.  What should I do?

    Question:  on trying to install iTunes got the following message:  "Service 'Apple Mobile Device' failed to start.  Verify that you have sufficient privileges to start system services.  I am this computer's administrator.  What should I do now?

    The most complete instructions for resolving the issues with the new iTunes is in the user tip: https://discussions.apple.com/docs/DOC-6562

  • HT1926 When I attempt to load Itunes I get the message "Service 'Apple Mobile device' failed to start. Verify that you have sufficient privileges to start system." What does this mean?

    When I attempt to install Itunes on Windows 7, I get the message "Service 'Apple Mobile Device' failed to start. Verify that you have sufficient privileges to start system services." What does this mean?

    So many people are having this problem! Doehunter's instructions here worked for me!  Hope this helps. https://discussions.apple.com/message/23824640#23824640

  • HT1414 In updating my iTunes,I got a message "Service Apple Mobile Device failed to start. verify that you have sufficent priviliges to start system services". Cant figure out what to do

    In updating my iTunes,I got a message "Service Apple Mobile Device failed to start. verify that you have sufficent priviliges to start system services". Cant figure out what to do

    So many people are having this problem! Doehunter's instructions here worked for me!  Hope this helps. https://discussions.apple.com/message/23824640#23824640

  • What does this mean? Server Message: Unable to load server - system error code: 0x80080005, CO_E_SERVER_EXEC_FAILURE: Server execution failed.

    This is the error that we get when we run the Tag File.
    ERROR 04/16/2004 02:26:15 PM Server ERROR from Server: National Instruments.OPCLookoutDrivers. Status: -196608, Server Message: Unable to load server - system error code: 0x80080005, CO_E_SERVER_EXEC_FAILURE: Server execution failed.
    What does it all mean?

    ACRE,
    this looks like the Industrial Automation OPC Server (Lookout OPC) is not correctly installed or configured and therefore the DSC Tag Engine - as OPC client - cannot launch the OPC server correctly.
    Two checks I have in mind.
    - Installation check: Check if the Industrial Automation Server is installed and configured correctly and that you will have a .lpd file as default. Could it be that the .lpd file is corrupted? BTW - what kind of protocol are you using and did you configure aliases for the LPD object? A good resource on checking the configuration might be the online help of Industrial Automation Server (Lookout Protocol Drivers) or the link penDocument>How Do I Configure My Devices with Lookout Protocol Drivers?
    - Access rights, COM/DCOM problems: Can you launch the OPC Server with another OPC client? Is your OPC server running locally? If you don't know how to check on this I found a good KB Tools for Troubleshooting OPC Interface Problems E.g. can you access it with Server Explorer?
    Last question... did you encounter this problem recently while it was working before? What changes have been done on your system?
    Let us know if you have some questions and I hope some of the links help you further troubleshooting this issue.
    Roland

  • Hi there i just am in the process of ordering creative cloud and i went to press the confirm button with all my details in and then a message came up saying ' Payment System Unavailable' Just wondering what i do?

    Hi there i just am in the process of ordering creative cloud and i went to press the confirm button with all my details in and then a message came up saying ' Payment System Unavailable' Just wondering what i do?

    I am encountering the same problem and I can not find the answers.I don't know what to do anymore.I am in Japan and i tried to call the numbers provided and it is in japanese.I can't understand..I hope someone here would help us.

  • I'm trying to install iTunes on my pc and i get the error message "Service Apple Mobile Device Failed to Start.  Verify you have sufficient privileges to start system services

    I'm trying to install iTunes on my pc and I get the error message "Service Apple Mobile Device Failed to Start.  Verify you have sufficient privileges to start system services.
    What do I need to do to get iTunes to install?

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Cannot install itunes  I get a message that apple mobile device failed to start..  verify that you have sufficient priveliges to start system services

    cannot install itunes  I get a message that apple mobile device failed to start..  verify that you have sufficient priveliges to start system services

    Hello, Edward. 
    Thank you for visiting Apple Support Communities.
    I think the best option would be to completely uninstall all components of iTunes in the order specified of the article below.  Once this is done attempt to install iTunes again.
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/ht1923
    If the issue persists, try the steps in the article below.
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/ts1567
    Cheers,
    Jason H.

  • I have logic pro, soundtrack pro will not open i get an error message what do i do? i cant find the receipts ive checked my library am i looking in the wrong place?

    I have logic pro, soundtrack pro will not open i get an error message what do i do? i cant find the receipts ive checked my library am i looking in the wrong place?

    I get the same kind of thing..
    I'm on osx 10.7.2 and once I click the soundtrack pro icon I get an error message. I had problems with logic pro & my digi002r soundcard midi drivers but now is fixed (using a midi adapter).
    here is the code:
    Process:         Soundtrack Pro [1705]
    Path:            /Applications/Soundtrack Pro.app/Contents/MacOS/Soundtrack Pro
    Identifier:      com.apple.soundtrackpro
    Version:         3.0.1 (960)
    Build Info:      SoundtrackProProject-9600000~277
    Code Type:       X86 (Native)
    Parent Process:  launchd [140]
    Date/Time:       2011-10-18 13:12:05.201 +0200
    OS Version:      Mac OS X 10.7.2 (11C74)
    Report Version:  9
    Interval Since Last Report:          195725 sec
    Crashes Since Last Report:           3
    Per-App Crashes Since Last Report:   2
    Anonymous UUID:                      23728D81-590B-4C3A-8C67-1709945CD132
    Crashed Thread:  0
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Application Specific Information:
    dyld: launch, loading dependent libraries
    Dyld Error Message:
      Library not loaded: /Library/Application Support/ProApps/*/ProFX.framework/Versions/A/ProFX
      Referenced from: /Applications/Soundtrack Pro.app/Contents/MacOS/Soundtrack Pro
      Reason: image not found
    Binary Images:
        0x1000 -   0x7f7ff8  com.apple.soundtrackpro (3.0.1 - 960) <77CF322B-8BBE-AAEA-173F-75A237035319> /Applications/Soundtrack Pro.app/Contents/MacOS/Soundtrack Pro
      0x947000 -   0x94bfe6 +STPInterleave (??? - ???) <E87D1F34-6D97-63DB-454C-CF3D1B03F8E5> /Applications/Soundtrack Pro.app/Contents/Frameworks/STPInterleave.framework/Versions/A/STPInterleave
      0x952000 -   0x98ffff  com.apple.vmutils (4.2.1 - 107) <43B3BFA5-8362-3EBD-B44B-32DCE9885082> /System/Library/PrivateFrameworks/vmutils.framework/Versions/A/vmutils
      0x9a9000 -   0x9f5ffb  com.apple.audio.midi.CoreMIDI (1.8 - 42) <CBD34EBC-0FFD-34B4-B55A-BE1F61EF4BD8> /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI
      0xa18000 -   0xc3eff7  com.apple.prokit (7.1.1 - 1511) <498819A4-1BDD-3671-8796-E11865BCFBCE> /System/Library/PrivateFrameworks/ProKit.framework/Versions/A/ProKit
      0xd49000 -   0xd49fff  com.apple.iokit.dvcomponentglue (2.0.7 - 2.0.7) <1CFA5944-AB33-3A41-B4D2-4A624A514C0D> /System/Library/Frameworks/DVComponentGlue.framework/Versions/A/DVComponentGlue
      0xd4d000 -   0xd54fff  com.apple.AEProfiling (1.2 - 22) <43A46C32-8E13-82DD-8AF1-2A40690BF810> /Applications/Soundtrack Pro.app/Contents/Frameworks/AEProfiling.framework/Versions/A/AEProfiling
      0xd5e000 -   0xd6dfff  com.apple.AERegistration (1.2 - 77) <5D18C47F-6F9E-0C4C-8875-24A14A97186D> /Applications/Soundtrack Pro.app/Contents/Frameworks/AERegistration.framework/Versions/A/AERegistration
      0xd81000 -   0xd83fff  com.apple.ExceptionHandling (1.5 - 10) <6CA9446C-7EF9-35EE-BDF2-AA8D51E93E9E> /System/Library/Frameworks/ExceptionHandling.framework/Versions/A/ExceptionHand ling
      0xd89000 -   0xe49fff  com.apple.omf_framework (1.1.0 - 1.0) <ED5F21BC-18CD-D7F7-3D2E-F7F856BC0D40> /Applications/Soundtrack Pro.app/Contents/Frameworks/OMF.framework/Versions/A/OMF
    0x11000000 - 0x1102afeb  com.apple.proapps.ControlSurfaceSupport (2.0 - 68) <BD914236-49D8-9C9A-E8D6-CBC1738850B3> /Applications/Soundtrack Pro.app/Contents/Frameworks/ControlSurfaceSupport.framework/Versions/A/ControlS urfaceSupport
    0x8fe88000 - 0x8feba9c7  dyld (195.5 - ???) <134323A7-49DC-3A9D-ACFD-32FAD0FD6BA2> /usr/lib/dyld
    0x90840000 - 0x90992fff  com.apple.audio.toolbox.AudioToolbox (1.7.1 - 1.7.1) <7646E131-08EE-3D72-ADA2-4A61C562B36E> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x90993000 - 0x90993ff2  com.apple.CoreServices (53 - 53) <7CB7AA95-D5A7-366A-BB8A-035AA9E582F8> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x91e60000 - 0x92036fe3  com.apple.CoreFoundation (6.7.1 - 635.15) <AC9F6462-6315-3D89-8075-D048DB4DBF7E> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x924a8000 - 0x92509ffb  com.apple.audio.CoreAudio (4.0.1 - 4.0.1) <089D78E0-46A6-38DB-9545-7F35CC815939> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x93281000 - 0x9328ffff  com.apple.opengl (1.7.5 - 1.7.5) <81166D23-DE8E-3938-AAD3-29B1FA5E446E> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x93331000 - 0x93331fff  com.apple.vecLib (3.7 - vecLib 3.7) <8CCF99BF-A4B7-3C01-9219-B83D2AE5F82A> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x93332000 - 0x93493ffb  com.apple.QuartzCore (1.7 - 270.0) <0916DA83-6400-3FEA-BC53-5F4BA4D126EC> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x94326000 - 0x9436dfff  com.apple.SystemConfiguration (1.11.1 - 1.11) <CA6CE2B6-DC18-31FF-9668-70BB2FD8D7BB> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x94420000 - 0x946a5fe3  com.apple.QuickTime (7.7.1 - 2306) <F8C64DC4-3FE4-3A06-B10B-59E7F3BA6FDD> /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x97dd0000 - 0x98082ff7  com.apple.security (7.0 - 55010) <BE0350C5-5221-3BFF-B674-646AB1BA0F2E> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x99d12000 - 0x99d76fff  com.apple.framework.IOKit (2.0 - ???) <D14460ED-2B6C-375D-B3A4-B8C82E922666> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x9adc8000 - 0x9adc8fff  com.apple.audio.units.AudioUnit (1.7.1 - 1.7.1) <2E71E880-25D1-3210-8D26-21EC47ED810C> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x9aef1000 - 0x9aef1fff  com.apple.Carbon (153 - 153) <6FF98F0F-2CDE-3888-A304-4ED447D24CE3> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x9b2ec000 - 0x9b2ecfff  com.apple.Cocoa (6.6 - ???) <650273EF-1ABC-334E-B745-B75AF028F9F4> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    Model: iMac12,1, BootROM IM121.0047.B0A, 4 processors, Intel Core i5, 2.5 GHz, 4 GB, SMC 1.71f21
    Graphics: AMD Radeon HD 6750M, AMD Radeon HD 6750M, PCIe, 512 MB
    Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x02FE, 0x45424A3231554538424655302D444A2D4620
    Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x02FE, 0x45424A3231554538424655302D444A2D4620
    AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x9A), Atheros 9380: 4.0.58.4-P2P
    Bluetooth: Version 4.0.1f4, 2 service, 18 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: WDC WD5000AAKS-402AA0, 500,11 GB
    Serial ATA Device: HL-DT-STDVDRW  GA32N
    USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfa100000 / 3
    USB Device: USB to Serial-ATA bridge, 0x04fc  (SUNPLUS TECHNOLOGY CO., LTD.), 0x0c25, 0xfa120000 / 6
    USB Device: iLok, 0x088e, 0x5036, 0xfa130000 / 5
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8215, 0xfa111000 / 7
    USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x850b, 0xfa200000 / 2
    USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfd100000 / 2
    USB Device: UM-2G, 0x0582  (Roland Corporation), 0x0106, 0xfd140000 / 5
    USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd120000 / 4
    USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403, 0xfd110000 / 3
    FireWire Device: Digi 002Rack, Digidesign, 400mbit_speed
    thanks everyone
    e

  • HT1420 Trying to get latest version of Itunes and keep getting message that Apple Mobile Devices failed to start, do I have authorization. I am only user.  I have uninstalled old version of ITunes, becuase I kept getting errors. What do i do?

    Last time I opened ITunes, was told I did not have latest version and proceeded to download new version.  As it was loaded, keep getting message that Apple Mobile Devices failed to start, verify that I have sufficient privileges to start system services.  I am the only user on the computer and in household. I have tried installing several timees and keep getting same message.
    What should I do?

    Hey CarleneS,
    First, I would try the steps in here:
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    http://support.apple.com/kb/TS1567
    If you end up having to remove and reinstall iTunes, make sure you follow all of the steps in this link:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    This section contains information that might help your situation, as the order and manner which you uninstall has an effect on the outcome:
    Use the Control Panel to uninstall iTunes and related software components in the following order and then restart your computer:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Important: Uninstalling these components in a different order, or only uninstalling some of these components may have unintended affects.
    Let us know if following that article and uninstalling those components in that order helped the situation.
    Welcome to Apple Support Communities!
    Regards,
    Delgadoh

  • Error message : Info Idoc missing ;database system

    I am  trying to load the data from database system  oracle ,the data was successfully loaded into psa , but can’t able to load the data into ods from psa .
    Data in psa is all green without any errors , as  info idocs are missing its not letting  to load data manually from psa to ods ,
    I try to reload  but coming up with same error
    Next day problem was fixed automatically, I want to know what is the exact reason for this problem  and  how can  next day  it fixed automatically

    Error message : Info Idoc missing ;database system
    I need the solution urgently, please help

  • What is the Three System Landscape in SAP

    Hi All,
    Please explain me What is the Three system Landscape in SAP.
    Thank you very much,
    Kavya.

    1.  Database Layer
    The database layer consists of a central database system containing all of the data in the R/3 System. The database system has two components - the database management system (DBMS), and the databse itself. SAP does not manufacture its own database. Instead, the R/3 System supports the following database systems from other suppliers: ADABAS D, DB2/400 (on AS/400), DB2/Common Server, DB2/MVS,INFORMIX, Microsoft SQL Server, ORACLE, and
    ORACLE Parallel Server. The database does not only contain the master data and transaction data from your business applications, all data for the entire R/3 System is stored there. For example, the database contains the control and Customizing data that determine how your R/3 System runs. It also contains the program code for your applications. Applications consist of program code, screen
    definitions, menus, function modules, and various other components. These are stored in a special section of the database called the R/3 Repository, and are accordingly called Repository objects. You work with them in the ABAP Workbench.
    2.  Application Layer
    The application layer consists of one or more application servers and a message server. Each application server contains a set of services used to run the R/3 System. Theoretically, you only need one application server to run an R/3 System. In practice, the services are distributed across more than one application server. This means that not all application servers will provide the full  range of services. The message server is responsible for communication between the application servers. It passes requests from one application server to another within the system. It also contains information about application server groups and the current load balancing within them.  It uses this information to choose an appropriate server when a user logs onto the system.
    3.  Presentation Layer
    The presentation layer contains the software components that make up the SAPgui (graphical user interface). This layer is the interface between the R/3 System and its users. The R/3 System uses the SAPgui to provide an intuitive graphical user interface for entering and displaying data.  The presentation layer sends the user’s input to the application server, and receives data for display from it. While a SAPgui component is running, it remains linked to a user’s terminal
    session in the R/3 System.
    REWARD POINTS IF HELPFUL
    Message was edited by:
            vijay kamath

Maybe you are looking for