How to change the delay for a specific message

Hi,
I need to change the delay for an specific message, So how can I consume message by JMSCorrelationID which is enqueued with delay?
I am using Java and Oracle.JMS classes.
This a sample code of the deque method
public BasicAQData dequeue(int insId)
try
     String usr = dbUtil.getCurrentUser();
     AQjmsStreamMessage stream_message = null;
     int id = 0;
     int priority = 0;
     int destino = 0;
     String selector = null;
     String instanceId = String.valueOf(insId);
     BasicAQData dd = new BasicAQData();
     queue = q_sess.getQueue(usr, queue_name);
     selector = "JMSCorrelationID = '"+instanceId+"'";
     receptor = q_sess.createReceiver(queue, selector);
     stream_message = (AQjmsStreamMessage)receptor.receive(sleeptime);
     if (stream_message == null) return null;
     id = stream_message.readInt();
     priority = stream_message.readInt();
     destino = stream_message.readInt();
     stream_message.clearBody();
     dd.setId(id);
     dd.setPriority(priority);
     dd.setDestino(destino);
return dd;
It returns the desired message if that is available; however it returns null if the message was enqueued with delay and isn4t still available.
Thanks in advance.

Hi Glenn,
Messages enqueued with a delay can be dequeued by specifying message id. In your example,
you can dequeue the message with message_id, change the delay and enqueue the message again.
Thanks,
Brajesh.

Similar Messages

  • I cannot find how to change the language for labels in a quiz

    I cannot find how to change the language for labels in a quiz

    You have to be aware that this will only change labels if you edit before adding quiz slides: Preferences, Quiz, Default Labels. You will have to edit the labels, choosing another language will not change them automatically.

  • How to change the Icon for a JFileChooser ?

    Has anyone figured out how to change the icon for an instance of JFileChooser from the coffee cup to something else?
    I'm on 1.4
    Thanks,
    Ken

    Never mind. I figured it out.
    You have to use an instance of JFrame in the call to showXxxxDialog(Component c). Set the icon of the JFrame to what you want the JFileChooser's icon to be.

  • How to change the color for HTML words in JEditorPane?

    Hi Sir,
    In the JTextPane , we could change the word's color by using:
    Style style = doc.addStyle("test",null);
    StyleConstants.setForeground(style, Color.red);
    doc.setCharacterAttributes(10,20,syle,true);
    we can change the text into red color,which range is from 10 to 30.
    But how to change the color for HTML words in JEditorPane?

    Hi,
    you can use an AttributeSet to apply the foreground color. Let's say, doc is a HTMLDocument, then SimpleAttributeSet set = new SimpleAttributeSet();
    doc.getStyleSheet().addCSSAttribute(set, CSS.Attribute.COLOR, "#0D0D0D"); would apply a color to a given AttributeSet. The AttributeSet with your color then can be applied to a selected range of text in a JEditorPane by   /**
       * set the attributes for a given editor. If a range of
       * text is selected, the attributes are applied to the selection.
       * If nothing is selected, the input attributes of the given
       * editor are set thus applying the given attributes to future
       * inputs.
       * @param editor  the editor pane to apply the attributes to
       * @param a  the set of attributes to apply
      public void applyAttributes(JEditorPane editor, AttributeSet a) {
        ((HTMLDocument) editor.getDocument()).getStyleSheet().addCSSAttribute(set, CSS.Attribute.COLOR, "#0D0D0D");
        editor.requestFocus();
        int start = editor.getSelectionStart();
        int end = editor.getSelectionEnd();
        if(end != start) {
          doc.setCharacterAttributes(start, end - start, a, false);
        else {
          MutableAttributeSet inputAttributes =
            ((SHTMLEditorKit) editor.getEditorKit()).getInputAttributes();
          inputAttributes.addAttributes(a);
      } Ulrich

  • How to change the Schedule For settings for an object

    Hi All,
    do you know how to change with BO Enterprise SDK Java the schedule settings for an object?
    I mean these settings that can be changed manually In the Objects management area of the CMC, selecting a report object, Schedule tab, Schedule For link:
    - Schedule only for myself
    - Schedule for specified users and user groups
    Rest of settings can be managed with ISchedulingInfo, but I don´t know how to change the "Schedule for" property.
    Should I use other SDK?
    We have Webi Documents, BOXIE R2 SP2
    thanks,
    regards,

    Hi,
    I think I´ve solved it,
    we can use
    ISchedulingInfo.getMultiPassObjects()
    that returns a java.util.Set of user/usergroup IDs on the schedule for multipass.
    and then we can work with this Set (adding or removing users and groups).
    Setting manually to "Schedule only for myself" in the CMC is the same that removing all the elements from the getMultiPassObjects() set.
    thanks,

  • How to change the language of administrator system message in outlook

    I wonder where is the option which changes the language of the text
    related
    to : Your mailbox is over its size limit send by the system
    administrator ?
    Some mailboxes get this message in French and other in
    English ?
    Is anyone can help me ?
    I work with French Outlook 2003 sp2 and
    English Exchange server 2000 sp3
    I try to change the regional setting on the
    server but nothing has changed.
    Thanks,

    Hi,
    Please refer to this duplicate thread below:
    http://social.technet.microsoft.com/Forums/en-US/5afe1e1a-82a9-445f-bcce-a76173ceb6bb/how-to-change-the-language-of-administrator-system-message-in-outlook?forum=outlook
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How do I change the genre for a specific song?  In the past, I just had to double click on the genre field entry.  That no longer works.

    How do  change the title of a song or its genre?

    You should be able to edit any of a song's metadata elements (including title and genre) using right-click > Get Info.  In the new iTunes 12 dialog, the Genre field should allow you to type in a genre or select from a dropdown (which offers a combination of iTunes' built-in genres + those you've defined yourself):
    If you SHIFT right-click > Get Info you can also access the "old style" dialog and enter the genre there.
    Are you unable to enter the genre, or having done so is the value held by iTunes not being updated?  If the latter, then you may have an issue with the permissions on your media files or the files may be set to read-only.

  • How do I change the text of a specific MESSAGE field for a specific Alert

    I want to change the text for the "Message" field (10.2.0.5 OEMGC) for the "Blocking Session Count" alert that shows up in Notifications.
    Does anyone know where the text is stored? I do not find it in Preferences>Rules in the Console nor in any obvious views or tables in the OMS.

    What is the Agent version monitoring the Database for which this alert is raised?
    You need to apply the fix for Bug : 9110313 to the Agent on the database machine.
    Refer to Note 9110313.8: Bug 9110313 - Metric clear alerts reported when warning and critical threshold are crossed

  • How to change the icon for a shortcut on the desktop

    I created a shortcut on the Desktop (dragging a safari url-icon to the desktop) but the icon showing is a safari icon.
    The website has a specific icon, as displayed as the first item (icon) on the url bar in front of the website-URL.
    I located the specific icon on the website (favicon.ico), opened it and copied the icon (copy paste).
    Then I opened the properties screen for my shortcut (at the Desktop) (control click on link) .
    Now I am supposed to copy the new icon (from my Clipboard)  into the properties of the Desktop URL, but how do I do that?

    You can change the favicon for a folder but not  a specific Safari url.
    Click a clear space on your desktop then go to the Finder menu and click File > New Folder
    Move Safari url shortcuts to that folder.
    Then copy and paste the icon for the folder.

  • How I change the icon for iTunes songs?

    When I drag iTunes songs onto my desktop the icon is white with a gray iTunes icon. How can change this icon for all of my iTunes songs?

    Thanks Patrick. I used Control-Click on the actual audio file on my desktop opened the Show View Options menu and turned off the icon preview option. That changed my icons from gray with a white background to red with a white background which is exactly what I wanted.  You pointed me in the right direction. Appreciate it.

  • How to change the icon for print dialog?

    Hello,
    I have a JTable, and with the print() method, I'm able to bring up the Print dialog and successfully print the contents of the table. Example:
    myTable.print( JTable.PrintMode.FIT_WIDTH, myHeaderFormat, myFooterFormat );This works great, but one small detail I'd like to change is the icon in the top-left corner of the dialog. The icon is currently the default Java coffee cup icon, while the rest of my application uses my custom icon. I couldn't find any documentation in the API or tutorials that Java has listed which shows how to change the icon, so I'm not even sure if it's possible (but why shouldn't it be?).
    My question is this: Is it possible to change the default icon in the print dialog? Or do I have to either make my own print dialog somehow, or use a third-party print dialog?
    Thanks

    tjacobs01: Appreciate the assistance (despite your sass). I've already searched the API, tutorials, and this forum. I'm already well aware of the setIconImage() method for JFrame -- after all, that's how I set the icon for my other frames as I previously mentioned. However, I want to set the icon for the print dialog called from the print() method of JTable.
    How would I use setIconImage() for the print() method of JTable? The print() method returns a boolean value, not a JFrame, so I'm just not sure how to implement what you're saying.
    Thanks

  • How to change the width for adf shuttle without modify the skin file

    Dear Professionals
    I haven an ADF Shuttle component in my jsp screen , How can i change the width for the two boxes without modify the skin files.(I know i can do that by skin but what i want to change one shuttle just in one screen not change all shuttles on other screens).
    Regards
    Wish79

    Okay, I didnt try with the trinidad selectmanyshuttle, but this worked for me on the af:selectmanyshuttle..
            <af:selectManyShuttle label="Label 1" styleClass="mycustcss">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>
            <af:selectManyShuttle label="Label 1">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>        And in my css file, I have
    af|selectManyShuttle.mycustcss::content { width: 800.0px;}
    The first selectManyShuttle came up very wide and the second one came up in the default width..
    Julian.

  • How to change the width for af:selectManyShuttle by skins

    i need to change the width for selectManyShuttle by skin i can do that by change the width for .AFFieldText but this method change the all select* and textfiled width,so i just want to change the width for selectManyShuttle component.
    and i hope to know how to change the header color for selectManyShuttle ,the default color for it is green.

    Thanks ,It is working
    Could you please tell me how to change the header text color for af:selectManyShuttle
    Regards
    Wish79

  • How to change the icon for 'windows group' in Java 1.6 [Windows XP] ?

    Hello,
    I was wondering if there is a possibility to change the icon for 'windows group' in Java 1.6...
    I'm using Windows XP SP2. Now the windows from my Java 1.6 application are grouped with the standard Sun icon [screen below] on the group.
    http://img382.imageshack.us/img382/8995/iconbl1.png
    I would like to change the icon for my own. Is there a way to do that ?
    Please help.

    Whichever icon I use for the main frame (I tried few), after grouping the main frame and other sub-frames the icon is changed to standard 'Java Sun' icon as you can see in the screenshot from my first post. The problem occurs only when frames are grouped, when the are separated in the task bar their titles and icons are ok...
    So how can I change the icon/title for the group only (for Java 1.6 in Windows XP) ?

  • How to change the server for the existing project in netbeans5.5?

    we r using netbeans5.5 with visual we pack.
    In netbeans for the project properties>run it is not giving in the list box it is only showing sun java system applicationn server 9.
    the remaining servers like tomcat and jboss which we have it is not showing .How to get the remaining options?
    please let me if any of you know

    Do not cross post same questino across different forums.
    Changing the SID for existing SAP systems
    Markus

Maybe you are looking for

  • Windows 7 very slow on 2012 MacBook Pro?

    When I first got my MacBook Pro in September 2012, I installed Windows 7 on it. I was really impresed how fast and smutch it was, but then after couple of weeks I deleted it. Now I installed it again and it got really slow. I have to wait like 5 seco

  • Using photo shop and muse together. mock up to final design

    Hi as .you know from me asking a million questions. i just heard that photo shop can be used as a mock up for web design.  from this video i saw.  i am wondering should this be the work flow that i should be using instead of just jumping into muse li

  • Redundent Namespace Problem

    I am working on creating SOAP messages by using my own serialization for non-built-in type on WLS 8.1 SP4. I followed the specs by implementing the following methods. public void serialize(Object obj,XMLName name,XMLOutputStream writer,SerializationC

  • To retrieve data and display using tcode

    Respected Gurus, Can anybody guide me for the scenario: 1) to develop the ztable  ,the entries/fields in ztable are some user built and some taken frm SAP standard tables(Mseg,Makt,Lfa1 or more). 2) i have to fill the table using tcode. 3) also to di

  • Accessing Record Store from another MIDlet.

    I have made a midlet that creates a record store.After that I have created another midlet that want to acces te recordstore. I always get an error : Cannot find record store file ! I have tried to add the 2 midlets in 1 jar each in a seperate directo