How can I change WebLogic MDB polling frequency?

I have MDB deployed to WebLogic and listening on AQ. Because of SLA, I would like the MDB to poll every 5 seconds or less no matter what. From WebLogic log I could see that the polling frequency varies depending on the load on the queue. The following shows what happens when the MDB is deployed and finds no message in the queue.
5-Feb-2014 4:11:09                    - checks when first deployed
5-Feb-2014 4:11:10        +1        - checks again after on seecond
5-Feb-2014 4:11:12        +2        - checks after two seconds
5-Feb-2014 4:11:16        +4
5-Feb-2014 4:11:24        +8
5-Feb-2014 4:11:39        +15
5-Feb-2014 4:11:54        +15
Every 15 seconds from this on. Once it fetches a message it goes back to every second, two second, four second ...
What can I do to get the desired behavior? I understand what WebLogic is doing but it does not meet the SLA requirement. This is the code for my MDB. Thanks.
public class SlowMDB implements MessageListener {
    @Resource
    private MessageDrivenContext messageContext;
    @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
    public void onMessage(Message message) {
      try {
        System.out.println("SlowMDB:  Message was received " + message.toString());
      } catch (JMSException e) {
          e.printStackTrace();

weblogic-ejb-jar.xml. Note that I added <use81-style-polling>true</use81-style-polling> as per Rosario's suggestion, but I get the same behavior with or without it.
  <weblogic-enterprise-bean>
    <ejb-name>SlowMDB</ejb-name>
    <message-driven-descriptor>
      <pool>
        <max-beans-in-free-pool>1</max-beans-in-free-pool>
        <initial-beans-in-free-pool>1</initial-beans-in-free-pool>
      </pool>
      <use81-style-polling>true</use81-style-polling>
    </message-driven-descriptor>
  </weblogic-enterprise-bean>
</weblogic-ejb-jar>
Also, if I remove TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) from the onMessage method, then I could see that WebLogic (or AQ??) polls every two seconds and it uses a different deque stored procesdure:
Transactional:
     dequeue(ZYGT.MS_MSGREQ_INQ, oracle.jdbc.aq.AQDequeueOptions@1a019d2f, SYS.AQ$_JMS_TEXT_MESSAGE)>
Non transactional:
dbms_aqin.aq$_dequeue_in(queue_name       => ?, subscriber        => ?, msgid             => ?, correlation       => ?, dequeue_mode      => ?, navigation        => ?,
visibility        => ?, wait              => ?, enqueue_time      => ?, state             => ?, out_msgid         => ?, out_correlation   => ?, priority          => ?,
delay             => ?, expiration        => ?, attempts          => ?, exception_queue   => ?, remote_recipients => ?, sender_name       => ?, sender_addr       => ?,
sender_protocol   => ?, original_msgid    => ?, payload_type      => ?, raw_user_data     => ?, object_user_data  => ?, deq_cond          => ?, signature         => ?,
out_sign          => ?, transformation    => ?, delivery_mode     => ?, out_delivery_mode => ?); end; )
with the following parameters
setString(1, MYSCHEMA.MY_QUEUE)
setString(2, null)
setNull(3, -2)
setString(4, null)
setString(26, null)
setObject(5, 3, 4)
setObject(6, 1, 4)
setObject(7, 2, 4)
setLong(8, 120)
registerOutParameter(9, 93)
registerOutParameter(10, 4)
registerOutParameter(11, -2)
registerOutParameter(12, 12)
registerOutParameter(13, 4)
registerOutParameter(14, 4)
registerOutParameter(15, 4)
registerOutParameter(16, 4)
registerOutParameter(17, 12)
registerOutParameter(18, 2003, SYS.AQ$_RECIPIENTS)
registerOutParameter(19, 12)
registerOutParameter(20, 12)
registerOutParameter(21, 4)
registerOutParameter(22, -2)
setObject(23, 1, 4)
registerOutParameter(24, -2)
registerOutParameter(25, 2002, SYS.AQ$_JMS_TEXT_MESSAGE)
setNull(27, 2002, SYS.AQ$_SIG_PROP)
registerOutParameter(28, 2002, SYS.AQ$_SIG_PROP)
setString(29, null)
setObject(30, 1, 4)
registerOutParameter(31, 4)
setLong(8, 0)

Similar Messages

  • How can I change the default  driver to OracleXADataSource in JDeveloper

    Hello,
    How can I change the default oracle driver: oracle.jdbc.OracleDriver to oracle.jdbc.xa.client.OracleXADataSource in JDeveloper Studio Edition Version 11.1.1.0.2, Build JDEVADF_MAIN.BOXER_GENERIC_090328.0229.5205.
    If I modify the file connections.xml from jdeveloper\system\system11.1.1.0.31.52.05\o.jdevimpl.rescat2\connections in the sense that I change the driver class, then in JDeveloper when I test my connection I have this problem: Test failed: oracle.jdbc.xa.client.OracleXADataSource cannot be cast to java.sql.Driver
    Why do I need this XA version of the oracle driver? Well I tried, from a book to reproduce the model of an application: entities, stateless and stateful session beans, mdb, web services and a client to test one part of the model.
    And because of the JMS server I need an XA driver.
    I deployed to the integrated wls 10.3 and when I test my client, if I use the default driver for the connection the an error message appears tell me either to emulate two-phase commit or to use XA driver.
    My application works very well, if I configured in the console of the integrated wls 10.3 a datasource with the same name as my ide/application connection that has for the Driver Class Name: oracle.jdbc.xa.client.OracleXADataSource in the Connection Pool tab.
    Thank you.

    Open DIsk Utility and in the toolbar select Disk Image. The file selector will open and you'll have to do three things: 1) just as with any file, name it and point the file selector to where you want it to be saved, 2) near the bottom you'll see name - type iWork 2013 and 3) below that select the image size. Click on size, choose custom and type 1500 MB then click on the Create button.
    Some time will pass and then you'll see an external disk pop up on your desktop and/or the Finder window sidebar. Drag the three programs into it and eject it like any other external disk. Now delete the programs from your applications window.
    Where ever it was you pointed the file selector to you'll see the file you created. Double click on it and the disk image will mount again.

  • How can I change the setting to one appropriate to java1.2

    Hello.
    I am using WebLogic 4.5.1 .
    and recently started to use JDK 1.2 instead of JDK 1.1.7.
    So, I set [start]-[weblogic]-[Choose1.2JRE] in environment.
    and then, if I execute T3Server, the message of
    "javai.dll class path cannot be found " is displayed and the server is not
    loaded.
    However, javai.dll was in java1.1.X\bin.
    I can assume that a setting is to java1.1.X.
    --> How can I change the setting to one appropriate to java 1.2
    It's my environment
    ClassPath
    .;c:\weblogic\classes;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\license;c:
    \weblogic;C:\weblogic\myserver\clientclasses;C:\weblogic\myserver\serverclas
    ses;C:\weblogic\myserver\servletclasses;C:\weblogic\mssqlserver4\classes;c:\
    weblogic\classes\boot;C:\weblogic\eval\cloudscape\lib\cloudscape.jar;c:\rmi-
    iiop\lib\iioprt11.jar;c:\rmi-iiop\lib\iioprt.jar;c:\rmi-iiop\lib\rmiorb.jar;
    C:\jsdk2.1\runner.jar;C:\jsdk2.1\servlet.jar
    Path :
    %SystemRoot%\system32;C:\jdk1.3bin;c:\weblogic;c:\weblogic\bin;
    c:\;c:\bat;c:\util\;C:\jsdk2.0\bin
    Hyung Gi Min

  • Using a garmin sat nav device, when planning a route on the mac it always defaults to the same far away location as the starting point. How can I change this?

    Whenever I start route planning using Garmin Connect, the map opens at the same distant location every time, by default. How can I change this and make it open at my own location?

    Hello Cgifford,
    Welcome to National Instruments Forums.
    To output your signal to the PFI lines,
    you can use external connectios between OUT0 and PFI lines. You can also use
    the backplane to do so by routing into the same RTSI line.
    1)
    On the SCOPE and FGEN, the name of the
    terminals are actually “PXI Trigger Line x/RTSIx” but on the 6602 you might
    need to route the signal using the property:
    You can also use the DAQmx route signal which perform the same opperation.
    2)
    This will depend on the frequency of
    your pulse train. If this is lower than about 10 ms, then you can probably
    place this on a loop and start and stop the acquisition every time. If the
    frequency is higher than this, you will have to use:
    -       Scripting on the FGEN side (read more)
    -       MultiRecord Fetch (more information in the scope help file
    section “Acquisition Functions Reading versus Fetching”).
    3)
    The short answer is yes. The longer one
    might depend on how tight you need the synchronization to be (us, ns, ps). For
    very tight synchronization, you should look into here.
    Message Edited by Yardov on 06-18-2007 03:14 PM
    Gerardo O.
    RF Systems Engineering
    National Instruments
    Attachments:
    property.JPG ‏7 KB

  • How can I change the palette of a BufferedImage

    How can I change the palette of a BufferedImage ?
    My image uses an IndexColorModel but I want to use a web safe palette.
    I can't see a way to make a setColorModel() to my image.
    Any ideas ?
    Thanks...

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class ICMExample extends JComponent {
        private BufferedImage original, copy;
        private Point mouseLocation = new Point();
        public ICMExample(BufferedImage original, BufferedImage copy) {
            this.original = original;
            this.copy = copy;
            addMouseMotionListener(new MouseMotionAdapter(){
                public void mouseDragged(MouseEvent e) {
                    mouseLocation = e.getPoint();
                    repaint();
        public Dimension getPreferredSize() {
            return new Dimension(original.getWidth(), original.getHeight());
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D) g;
            g2.drawRenderedImage(original, null);
            Shape oldClip = g2.getClip();
            g2.clipRect(0, 0, mouseLocation.x, Integer.MAX_VALUE);
            g2.drawRenderedImage(copy, null);
            g2.setClip(oldClip);
        public static void main(String[] args) throws IOException {
            URL url = new URL("http://weblogs.java.net/jag/Image54-large.jpeg");
            BufferedImage original = ImageIO.read(url);
            JComponent app = new ICMExample(original, makeICMVersion(original));
            final JFrame f = new JFrame("Drag mouse over image");
                f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                f.getContentPane().add(app);
                f.pack();
                SwingUtilities.invokeLater(new Runnable(){
                    public void run() {
                        f.setLocationRelativeTo(null);
                        f.setVisible(true);
        static BufferedImage makeICMVersion(BufferedImage original) {
            int w = original.getWidth();
            int h = original.getHeight();
            IndexColorModel icm = createICM();
            BufferedImage copy = new BufferedImage(w, h, BufferedImage.TYPE_BYTE_INDEXED, icm);
            Graphics2D g = copy.createGraphics();
            g.drawRenderedImage(original, null);
            g.dispose();
            return copy;
        static IndexColorModel createICM() {
            byte MAX = (byte) 255;
            byte[] r = {MAX, MAX, MAX, MAX, 0, 0, 0, 0};
            byte[] g = {MAX, MAX, 0, 0, MAX, MAX, 0, 0};
            byte[] b = {MAX, 0, MAX, 0, MAX, 0, MAX, 0};
            return new IndexColorModel(3, 8, r, g, b);
    }

  • How can i change icmp probing in CSM.

    Hi,
    I have installed fwlb with csm(Active-Standby).
    but I have find the problem.
    CSM use icmp probing (To remote FW alias ip).
    but Fiewall captured the ICMP session and logged it.
    therefore, Many log (icmp probing log) was stored in firewall. Customer required it to reduce.
    In case, Because Alteon switch probed identical Sequence no, ID to Firewall, Firewall captured only one session for identical session.
    How can i change icmp probing option in csm.
    Thanks,

    you can configure the probes parameters like : interval,retries,failed ....
    So you can control the frequency of the probes.
    Regards,
    Gilles.

  • If I chose the wrong folder as defaulf for downloads to go to, how can I change it?

    I use download manager. I hit '''yes''' when asked if I wanted to make the folder shown as the default for future downloads of that type. I did not mean to do that. How can I change the default folder?

    Hi belladonna82,
    You should take a look at the [[Downloads window]] and [[Options window - General panel]] Knowledge Base articles. They will give you all the details you need. Unless you are talking about the default action and not the actual download folder? If so, you should look at [[Options window - Applications panel]].
    Hopefully this helps!

  • How can I change the display of Inbox in my iPad's mail app- so that it takes up the full screen?

    How can I change the display of Inbox in my iPad's mail app- so that it takes up the whole screen, as opposed to just about one third; the other two thirds display the full text of the selected email?

    You can't change the display in the Mail app, if you are holding the iPad in landscape orientation then the left-hand third will be for navigation, and the right-hand two-thirds will be an email. If you hold the iPad in portrait orientation then the navigation section becomes a drop-down section.

  • How can I change the default "from" email account on my iPad/iPhone in IOS 8.2?

    I currently use my phone & pad for business and personal use.  My emails should come from my business account but they're coming from my Yahoo account.  How can I change it without having to manually change each email?  I've checked online but I don't see settings/mail,contacts,calendars/default account in this new revision of software.
    Thanks!

    Hi bschmidt0726,
    Go to "Setting"; scroll down to the 4th box for "iCloud"; You need to turn on you "Mail" option in the "iCloud" settings.
    Then,
    Go into "Settings", scroll down to "Mail, Contacts, Calendars"; on the left panel, scroll down to the 4th box; there you'll find the "Default Account" settings.

  • How can I change an english/american keyboard to a danish one?

    How can I change an english/american keyboard to a danish one on a Macbook Air?

    Apple menu / System Preferences / Keyboard / Input sources.
    Click + (bottom left) and in the pane that comes up, select Danish on the left, and click Add.
    Of course that can only change what the keys actually input, not what is written on the keys. If you wish to change the physical look of the keys as well, get in touch with Apple and ask if they can replace the keyboard.

  • I don't remember my old Apple ID and I closed my email account that I was using for my old Apple ID. Now, how can I change my icloud id on my Ipad. The old icloud id is still on my Ipad.

    I don't remember my old Apple ID and I closed my email account that I was using for my old Apple ID. Now, how can I change my icloud id on my Ipad. The old icloud id is still on my Ipad.

    ChrisJ4203,
    Thank you for the help.  Every app on my phone was downloaded using my old I-tunes ID.  I just hope that they will re-download under my new ID because I still can't change it on my phone.  In order to change to the new ID it says I have to sign out from the old ID and change to the new one.  My problem is that I don't remember my password to be able to sign out from my old ID.  Then the phone says it can change my password through e-mail and I  agree but I never get an e-mail at my old address or the new one.
    BHuyett

  • How can I change a calendar event color?

    Hi,
    Just spent too much time trying to figure this out, but how can I change events colors in my calendar?
    I'm not talking about the color of a calendar, this affects all events, but event per event.
    And I don't want to set multiple calendars.
    One calendar, different events with different colors...
    Please don't tell me that such a basic feature is not available when it is in bad amateur freewares...
    Thanks for any help
    P.S. Please disregard answers like "why don't you want multiple calendars", etc...

    Anyone with a solution for that basic feature?

  • How can I change the background of a running webpage on my own. Example Facebook I want to change its backround color from white to black just in my view not for all

    How can I change the background of a running webpage on my own. Example Facebook I want to change its background color from white to black just in my view, not for all. Cause I really hate some site with white background because as I read for an hour it aches my eyes but not on those with darker background color.

    You can use the NoSquint extension to set font sizes (text/page zoom) and text colors on web pages.
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • How can you change your security question for I tunes?

    How can you change your security question for I tunes?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • I originally set up my apple account by spelling my email address incorrectly.  how can i change it?  it says that i need to verify from the email they sent but the email address is incorrect!

    Help.  I need to change my apple account and don't have access to my old email, how can i change this - how do i verify that it is me.

    You set up email accounts on the iPad in Settings>Mail, Contacts, Calendars>Add Account. You have a choice of some of the most popular email providers in the setup list or you can select Other at the bottom.
    Tap on the provider that is applicable and begin the setup on the iPad.

Maybe you are looking for

  • How to retreive data from disabled iPhone 4

    Hi. I have permanently disabled iPhone 4. it is my wife`s phone who passed away. i need to get photos and videos from the phone. The original computer which i  synced it with doesn't help. I have 2 computer and don't remember which one was that i syn

  • CAn't sync to iTunes 7.4.1

    I just took delivery of my new (older) iPod 80GB video. Brand new from apple online, and so far I can't get it to sync with any more than 15.75GB of my 40+GB iTunes library. I've followed all the advice on the discussion boards here, and spent 90mins

  • Defaulting the mandatory field to space in a flex field - Urgent...

    Hi , I have a flex field which is used to render address based on the country selected ( Country is an LOV..) The flex field details are. Appl Short Name: AR Name: Remit Address HZ Type: descriptive Address Line 1 is mandatory in the flex field confi

  • "Welcome to your new iPhone" screen for activated phone

    Today I had to exchange my iPhone 3G for the second time. That isn't a gripe, I'm thrilled Apple has been so responsive and flexible in working with me. (The issue had to do with a short in the headphone jack that would cause the unit to begin to pla

  • PrintStream to the Windows console

    Hi, I'm printing the copyright char � (Unicode u+00A9) to standard output. This works perfectly in Linux using JDK version 1.5.0_01 and 1.4.2_06 and _01, using either of a UTF-8 and a ISO-8859-1 locale. Unfortunately, when I run the same class in Win