Retaining in the queue

Hi,
My MDB reads the message from the queue and invokes a session bean for some operation. My problem is, if the operation in session bean fails, the message in the queue should not be deleted. For Eg. MDB reads the message in the queue and passes to the session bean. session bean inserts the message received in the database. If the database is down at that moment, can the message in the queue be retained? Rather put back in the same position?
Advance Thanks.

Thats what transactions are for :). Just use XA to ensure that the consumption of the message and any other operations (such as JDBC operations) are atomic. On a rollback messages are redispatched a number of times.
http://activemq.org/Should+I+use+XA
James
http://logicblaze.com/
Open Source SOA

Similar Messages

  • Does QueueSender send same object multiple times to the Queue

    Hi ,
    Does the QueueSender sends the same message object multiple times to the queue ?If so then the same will be send multiple times right. why do the client retain same object for long time if the expiry time is 0, Please some one help on this .
    Thanks
    Maruti

    Little_Pale_Face wrote:
    Michel,
    Just to clarify, I can drag duplicates to an album but it only appears once - so it's not actually adding to the album. The question, as I understand it, is that PSE doesn't warn you whereas it use to in PSE 3..
    Ok, that clear now.
    If I remember correctly, the format of the database for PSE was changed around version 4. So the error message that Beachcomber was seeing may have been generated by the old database system.
    Version 4 used Microsoft Access as the database engine, not sure about version 5. Anyway I am sure that from version 6, the sqlite database engine was used.

  • Media Encoder CC won't import a JPEG sequence to the queue

    I am running Media Encoder CC 7.2.2.29 (64-bit) on OSX 10.9.4.
    I have a JPEG sequence GoPro timelapse image sequence that I want to encode into a video clip. All files have a .jpg extension. They are 4000x3000 and have an RGB color space. The Color profile is SRGB IEC61966-21. All images are 3.9MB.
    According to the ME help I should do the following.
    To add an image sequence, choose File > Add Source. In the Open dialog box, choose the first file of the image sequence. Enable the  Sequence Import checkbox for your file type, and then click the Open button.
    I follow the instructions and select the first image in the sequence. The "JPEG File Sequence" checkbox is active and I check it and click the Open button. The dialog disappears and nothing happens. There are no warnings.
    How does one get JPEG sequences to import to the queue?
    Please advise.
    -Travis

    Yes, import into premiere work fine. The nice part about using AME directly is you don't have to have to create a project or use an old one every time you want to crunch a timelapse. Also, AME has this nice feature where it will autoname the output file IMG[FirstStill]-[LastStill] (ie IMG[GP001234-GP001297]). This was helpful because GoPros change the first number in the sequence every time you stop and start time lapse.

  • Backing Up and Restoring the Message Store v.s. the queue

    Hello,
    We are running iPlanet 5.2 Messaging Server and need to migrate to another (duplicate) 5.2 Messaging Server. We have all the software installed and the LDAP user accounts created. Now we just need to move the existing mail from one server to the other.
    I found the Backing Up and Restoring the Message Store section in the Admin Guide says to back up and restore your data, Messaging Server provides the imsbackup and imsrestore utilities.
    However I am wondering about the Queue?
    Under <instance>/imta/queue
    What is the difference between the Message Store
    and the Queue? Can I just backup and restore the Queue using tar or cpio?
    Thanks in advance for any advice.
    Regards,
    Tim

    Hello,
    We are running iPlanet 5.2 Messaging Server and need
    to migrate to another (duplicate) 5.2 Messaging
    Server. We have all the software installed and the
    LDAP user accounts created. Now we just need to move
    the existing mail from one server to the other.
    I found the Backing Up and Restoring the Message
    Store section in the Admin Guide says to back up and
    restore your data, Messaging Server provides the
    imsbackup and imsrestore utilities.
    However I am wondering about the Queue?
    Under <instance>/imta/queue
    What is the difference between the Message Store
    and the Queue? The Message Store is where messages get delivered to, so you can read them.'
    The queue is where messages are temporarily stored, pending delivery to wherever they go.
    You can use tar, cpio, or what have you for the queue. Stop the server first. . .
    You then just restore the files to the new server. No need to restart or anything like that. Just dump the files in, and run
    imsimta cache -sync
    to tell the MTA to re-read the queue.
    Can I just backup and restore the
    Queue using tar or cpio?
    Thanks in advance for any advice.
    Regards,
    Tim

  • We need to open the connection each time you read a message from the queue?

    Hi
    I have a doubt regarding my queue read data that contains those I create a session and connection.
    Whenever I do this or you can create a connection and get all data from the queue and then close the connection and session
    eg. I have 1000 files in the queue and I read all files but without creating a session and a connection every time you get a single figure, this can be done?
    I read the 1000 files without having close the session or the connection
    thanks for the help.

    I answered myself.
    No need to open a connection and a session each to be read from a data queue to extract the entire contents of the queue with only one session and open a single connection.

  • How to get the job logs from sm35 by using the queue id and session name?

    hi all,
    can any one please let me know how to read the job log from sm35 by using the session name and queue id. i have the job name and job count but is it possible to download the job log by using the queue id and session name.
    FYI..
    i want to read this job log and i want to send it to an email id.
    -> i am using the job_open and submitting the zreport via job name and job count and then i am using the function module  job_close.
    but this is not working in my scenario i have the queue id and session name by using this two i want to get the job log is there any function module available or code please provide me some inputs.
    thanks in advance,
    koushik

    Hi Bharath,
    If you want to download it to the local file then you can follow the instructions in the below link.
    How to download Batch Input Session Log?
    Regards,
    Sachin

  • How to cancel printing jobs that are in the queue? Model is : HP Laserjet 3055

    I wanted to print a 200 page book from my laptop, so I pluged in the printer to the laptop and pressed print on laptop. Then immediately decided not to print it, so I pressed cancel on printer. But the job has not been canceled at all. Every time I try to print something the it always starts with the job I wanted to cancel in the beginning. And on the laptop the message block asks if I wish to add to printing queue. 
    I would like to cancel the job that is sitting in the queue on the printer for good, if anyone can advise please help me, very desperate!!!
    Thank you 
    Robertha
    This question was solved.
    View Solution.

    Hi Robertha,
    Open the printers folder, and then double click on the printer. Click printer, and then cancel all documents.
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • What happens to messages after its gone from the queue?

    Hi all,
    just wondering if anyone knows what happens after a Message leaves Message Queue?
    Our scenario is this:
    Hybrid configuration With Exchange online and Exchange 2013 server.All MX records Points to Our on prem server,but Messages sends directly from Exchange online.
    We had one user where remoutrouting address was incorrect,but it is now correct and external mailflow is working again.Seems like old Messages are not delivered,only New ones.
    Wondering if its possible to resend those Messages from the Queue or logs?
    thanks!
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you. Thank you! Off2work

    Hi ,
    If you run the command Get-TransportPipeline | ft -au , we can able to know what will happen to the messages when it enters it to the transport pipeline.
    Note : Above command output will give you a similar and in-depth back end view of telnet session that happens during the message transport.
    if we don't have the proper route for any of the destination domain then those messages will get queued in exchange till the message expiration time , whereas messages to the domains which has proper route defined in exchange send connector will reach the
    destination domain.In case if the message expiration time is crossed for an particular message then the exchange server will drops the message and send an NDR to the sender mailbox.
    In your case ,In you have any of those messages on the queues we can able to deliver those messages to the destination recipient.In case if the sender has received the NDR due to incorrect recipient address then the final chance would be re sending that
    message again to the recipient from sender's mailbox.
    Thanks & Regards S.Nithyanandham

  • Can't drag files into the queue window on some computers

    For some reason, on my new desktop and my laptop. I cannot drag files into the Queue window in Media encoder. I  have tried dragging avi's, wav, and mp4. As the files I am dragging hover over the queue window, my mouse turns into the "circle with a line through it" pointer and I cannot add the files that way. I can click the plus sign and then browse to its location to add. I just want to have my drag n drop feature working again... Any ideas why i can on some computers and not others?
    I did try running media encoder as administrator. All my computers are running windows 8.1.

    do you have source patching turned on for audio?

  • Messages are not dequeing from the Queue

    I am using Oracle Advanced Queueing.
    PL/SQL API for enqueue
    JMS API for Dequeue Messages asynchronously (register listener and using onMessage())
    It is multi consumer queue.
    The program used to work fine. Now, it has stopped. Now, we can enqueue as
    many messages as we want. The subscriber does not recieve any messages. BUT,
    once we disconnect subscriber and connect again, the subscriber gets all the
    messages in the queue. You can repeat this N times.
    I sent this java program and sql scripts to Oracle support and they ran it successfully in their environment. So it appears to be some weird environment problem.
    Question:
    Did anybody have problem like this?
    Does anybody have any ideas about what to check in Oracle/Java client environment?
    We use Java SDK 1.2.2, thin JDBC drive and Oracle 8.1.7
    Thanks for reading this message.
    Vlad.
    null

    EMON is running:
    oracle 1105 1 0 Apr 28 ? 0:03 ora_emn0_wmdev
    And there are two trace files, but nothing interesting inside (they don't change when I run java client):
    -rw-r--r-- 1 oracle dba 107 May 2 18:01 PLSExtProc_agt_5404.trc
    -rw-r--r-- 1 oracle dba 107 May 2 18:06 PLSExtProc_agt_7021.trc
    PLSExtProc_agt_5404.trc
    Remote HO Agent received unexpected RPC disconnect
    status 1003: ncrorpi_recv_procid, called from horg.c
    PLSExtProc_agt_7021.trc
    Remote HO Agent received unexpected RPC disconnect
    status 1003: ncrorpi_recv_procid, called from horg.c
    null

  • Packages in the queue don't exist in the tp buffer

    Hello
    Please could you help us???. We have import packages SAPKINBC9A, but we have a problem, because we obtein error  Packages in the queue don't exist in the tp buffer, what do we make for this packages exists in the buffer??
    Thanks

    Hello
    Please could you help us???. We have import packages SAPKINBC9A, but we have a problem, because we obtein error  Packages in the queue don't exist in the tp buffer, what do we make for this packages exists in the buffer??
    Thanks

  • TS3147 Since my last update for Mac OS X Lion 10.7.5 I have been unable to print to either my HP or Lexmark printers!  Everything is connected but I get an "idle" message in the queue.  I have "Reset printer system" and re-added these printers. No luck. H

    Since my last update for Mac OS X Lion 10.7.5 I have been unable to print to either my HP or Lexmark printers!  Everything is connected but I get an "idle" message in the queue.  I have "Reset printer system" and re-added these printers. No luck. Help?

    Hello,
    It isn't the fw in Network you want o use or look at, that's for something completely different.
    My first suspect is the Power Adapter on the LaCie has gone.
    At the Apple Icon at top left>About this Mac, then click on More Info, then click on Hardware>Firewire, what is listed there?
    Reset the Firewire bus
    If your Firewire or USB isn't recognizing any device.  A solution which has worked for some whose hard drive became invisible in 10.4 was simply to follow these four steps to reset the Firewire/USB bus:
    1. Shut the machine down.
    2. UNPLUG the power lead to the computer and any firewire/USB drive or devices.
    3. leave it for 10 minutes.
    4. Connect back up and reboot.
    http://www.macmaps.com/firewirebug2.html

  • MessageDriven Bean problem.Working but the queues r not getting cleared

    I have written a simple message driven bean.It just sends a message to an another queue myadapterqueue
    on getting a message .
    It is working. But the problem is if I restart my application server then it again reads the messages which had been sent to it earlier.Also the queue size is
    not getting to 0 bytes after it has consumed messages.
    My application server is JBOSS2.4.3
    I think I have to specify some attributes in the
    descriptor files.But how??????????????
    Here is my code
    import java.util.*;
    import javax.ejb.*;
    import javax.jms.*;
    import javax.naming.*;
    public class MyMessageBean implements javax.ejb.MessageDrivenBean,javax.jms.MessageListener
         private QueueConnection connect=null;
         private QueueSession session=null;
         private QueueSender sender =null;
    private Queue sendQueue=null;
    private MessageDrivenContext ctx = null;
         public void setMessageDrivenContext(MessageDrivenContext mdc){
              System.out.println ("In setMessageDrivenContext--------------");
              this.ctx=mdc;
         public void ejbCreate(){
              try{
                   System.out.println ("Message bean Created--------------");
                   InitialContext jndi=new InitialContext();
                   QueueConnectionFactory queueFactory=(QueueConnectionFactory) jndi.lookup("ConnectionFactory");
                   connect=queueFactory.createQueueConnection();
                   session=connect.createQueueSession (true,Session.AUTO_ACKNOWLEDGE);
                   System.out.println ("After session creation--------------");
                   sendQueue=(Queue)jndi.lookup("queue/myadapterqueue");
                   System.out.println("************ queue/myadapterqueue");
              sender=session.createSender (sendQueue);
              System.out.println ("Before Connection start--------------");
              connect.start();
              }catch(javax.jms.JMSException jmse){
                   System.out.println ("In ejbcreate exception-------------------");
                   throw new javax.ejb.EJBException();
              }catch(javax.naming.NamingException jne){
                   System.out.println ("In ejbcreate exception-------------------");
                   throw new javax.ejb.EJBException();
         public void ejbRemove(){
              try{
              System.out.println("ejbRemove done");
              connect.close ();
                   this.ctx=null;
              }catch (javax.jms.JMSException jmse){
                   System.out.println ("In ejbremove exception-------------------");
                   System.out.println("ejbRemove excetion");
                   throw new javax.ejb.EJBException();
         public void onMessage(Message msg){
              try{
              this.sender.send (msg);
              this.session.commit();
              System.out.println(" Message");
         }catch(javax.jms.JMSException jmse ){
              jmse.printStackTrace();
    here are my descriptors
    ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar>
    <ejb-jar>
    <enterprise-beans>
    <message-driven>
    <ejb-name>MyMessageBean</ejb-name>
    <ejb-class>MyMessageBean</ejb-class>
    <transaction-type>Container</transaction-type>
    <message-driven-destination>
    <destination-type>javax.jms.Queue</destination-type>
    </message-driven-destination>
    </message-driven>
    </enterprise-beans>
    </ejb-jar>
    and the correspong xml file for the application server here is jboss.xml
    ?xml version="1.0" encoding="UTF-8"?>
    <jboss>
    <enterprise-beans>
         <message-driven>
              <ejb-name>MyMessageBean</ejb-name>
              <configuration-name>Standard Message Driven Bean</configuration-name>
              <destination-jndi-name>queue/MyMessageBeanQ</destination-jndi-name>
         </message-driven>
    </enterprise-beans>
    </jboss>

    it is unclear whether you are commiting on the first queue or second one.
    but it appears like you have created a transactional problem across the two queues. although you commit on the first queue, this commit is not extended to the second queue.
    things will be fine unless you get an exception of shutdown.
    if you shut your message provider down first then you cannot send the message to the second queue. (assuming that queue 2 is also on the same server)
    if you shut your MB app server down then you may be in the middle of accepting a onMessage callback from the first queue.
    do you have another MB that registers this one as a listener, or are you infact sending a message back onto the same queue...
    public void onMessage(Message msg){
    try{
         this.sender.send (msg);
         //your server may shutdown here and leave messages on the first queue. and send extra messages on the second.
            this.session.commit();
            System.out.println(" Message");
    } catch(javax.jms.JMSException jmse ){
            jmse.printStackTrace();
    }

  • Messages stuck in the queue... how do I make them to be processed again?

    Hi,
    I'm new to SAP PI and kinda confused with queues.
    I have file -> bpm -> file scenario and there was an error in mapping within bpm process.
    When I went to qRFC Monitor (smq2), I see that in XBQO$PE_WS90000002 queue,
    there's an error, 'Permanent error in BPE inbound processing'... which is expected.
    Now, I run the interface scenario again several times but they don't get processed
    but stuck in the same queue. At this stage, I didn't know what to do...
    I thought by deleting the error message, other messages will be processed...
    I deleted the error message but the other messages are still in the queue...
    I have two questoins.
    1. What is the best way to handle an error in the queue... can I just delete it? or is there a better way to handle an error in the queue?
    2. After deleting the queue, what should I do to make the other messages to be processed again...
    Thank you.
    -Won

    Hi Won,
    There are programs for restarting the LUW entries:
    programs
    · RSARFCRD: tRFC Monitor (transaction SM58)
    · RSARFCSE: Restart an LUW (background job)
    · RSARFCEX: Restart tRFC LUWs (background job)
    · RSQOWKEX: Restart QOUT qRFC LUWs
    · RSQIWKEX: Restart QIN qRFC LUWs
    · RSARFCSE: Delete an LUW (background job)
    · RSARFCER: Delete various LUWs
    Also, check the url:
    http://help.sap.com/saphelp_nw04/helpdata/en/25/bcfa40badbf46fe10000000a1550b0/content.htm
    Hope this helps.
    Regards,
    Sushama

  • Officejet 6500 and word 2007 ctrl-p never prints just sits in the queue

    just set up an officejet on a windows XP machine...and oddly, word 2007 won't print if i select file->print OR ctrl-P.
    clciking the tiny printer icon to prit without a dialog box works fine.
    but if i want just page one i can't do that from that click.
    other applications seem to print fine.
    when ctrl-P is plressed and ok selected on the following dialog box a print job appears in the printer queue and reads "spooling" but never comes out of the printer.
    i altered the print queue to not spool and instead the job reads "printing" and never appears.
    if i quit word with a job in the queue word gives me a warning that quitting word will cancel the printing jobs. and quitting word does just that, the jobs are removed from the queue.
    ...and just to be clear i can print fine if i click on the one click printing icon in the icon bar directly above the document and below the menu bar.
    what's the fix for this?
    thanks!

    Well...the 'solution' I received from HP Support was to add a new printer (Deskjet 990C) and make it the default printer. Once I did that, all printing issues went away. The tech person did say there were some compatability issues between the Officejet 6500 printer and Vista, but would not elaborate.

Maybe you are looking for

  • Error Message in portal application.log

    Hi all, There are error messages continually been written to application.log. Here is the path. $ORACLE_HOME/j2ee/OC4J_Portal/application-deployments/portal/OC4J_Portal_default_island_1/application.log We couldn't find out what's wrong. Portal Versio

  • "File could not be used" message in i-tunes

    When I try to play a particular song on the computer (a dell using Windows XP) in i-tunes, the song wil not play and there is an "!" to the left of the name of the song and the following message: "The Song _______could not be used because the origina

  • TS1368 do not have write access to itunes folder

    When trying to buy a song from the itunes store, I receive the message "You don't have write access to your itunes Media folder or a folder within it. Change permissions (in Explorer) and then choose Store > check for aviaiable downloads. I have purc

  • Separate itune libraries on 1 mac computer

    I am wanting 2 separate itunes libraries on my computer or something similar, where files are separate and using my music group won't interfere with using my wife's.  Can someone help? I have tried numerous suggestions that I "googled" but none seeme

  • Help needed with String formatting

    Hi there, I have this string /C:/Documents%20and%20Settings/sickboy/workspace/Take%20A%20Note/bin/deployment/TOC.htmlI managed to get the last field with this file = ViewClass.getEditorPane().getPage().toString().substring(ViewClass.