MDB - Restricting to one bean at a time

I have an application that sends out a bunch of messages to a JMS queue. I need an MDB (Message Driven Bean) to act on the message - but in a serial fashion - i.e. only one message should be processed at a time - the rest of the messages remain in the JMS queue until the processing of the current message is complete - i.e. multiple MDB should not be spawned concurrently to process multiple messages to the queue.
I need to do this because my task is resource intensive and need MDB because my process needs to be asynchronous.
I can't process more than one message at a time concurrently due to resource issues.
Any ideas/tricks to get this to work. Appreciate any input you may have.
Thanks!

You just declare you MDB to have a single instance in the pool. I beleieve this is specified in the app server descriptor for the MDB.

Similar Messages

  • How to configure my MDB serve only one message at a time?

    Hi All,
    I have requirement where I need to develope a MDB iin weblogic. This MDB has to serve only one message at a time. If the send second message is sent while the first one is running the second message has to sit in queue and start processing once the first message is finished.
    Is there any way to configure via annotations or in weblogic server settings ?
    Any help would be really appreciated...
    Thank you,
    K.

    Here is my client code to send the message
    Connection connection = null;
    javax.jms.Session session = null;
    MessageProducer producer = null;
    try
    connection = lpConnectionFactory.createConnection();
    session = connection.createSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE);
    // Create a MessageProducer from the Session to the Validation Queue
    producer = session.createProducer(myQueue);
    ((WLMessageProducer)producer).setUnitOfOrder();
    // Create a message
    ObjectMessage message = session.createObjectMessage();
    message.setObject(params);
    message.setStringProperty(MyServiceConstants.OPERATION, operation);
    // Send the message to the queue
    producer.send(message);
    finally
    if (producer != null)
    producer.close();
    if (session != null)
    session.close();
    if (connection != null)
    connection.close();
    Following is the weblogic-ejb-jar.xml
    <?xml version="1.0"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC
    "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN"
    "http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd">
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>TestMDB</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>
    </message-driven-descriptor>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>

  • How do I purchase my entire wish list instead of one song at a time.

    how do I purchase my wish list all at one time like I used to. Now it seems I have to purchase each song which is a step backward.

    You don't think we've all done that?.............numerous times!
    Ever since this change came out I sent feedback the very next day and several times since.
    We've had iTunes updates since and Apple just doesn't seem to think it's a big deal.
    Why would they get rid of it to begin with?
    I don't purchase a can of beans, one bean at a time.

  • Restricting one consolidation at a time

    Hello
    Is it possible to restirct running one consolidation at a time?
    We had an instance when one person ran a consolidation, and during the consolidation, another person ran it.
    Usually consolidation takes 5 hours, but due to the disturbance, it took 16 hours!!!!
    Thanks a lot
    Lilach

    Hi there,
    Depending on the version you are HFM has a variable that allows you to define the number of the concurrent consolidations. In version 11.1.2.3, the variable is MaxNumConcurrentConsolidations. Try to download and read the document: Oracle® Hyperion Financial Management, Fusion Edition, April 2013, Performance Tuning Guide.
    If you are not familiar with these attributes, it would be better to discuss the issue with a person that has experience in HFM performance tuning.
    Regards,
    Thanos

  • Master_detail for more than one record at a time

    Hi,
    How can i display master_detail records for more than one records at a time, for example, i have two tables A and B , A has username and role and B has username and profile. here i wanted to display 10 users at a time on my 6i form with username, role and profile.
    i have created a master-detail relation ship with these tables when i'm executing F8 on blcok A , it displays 10 records on BlockA but, only one at a time on block B, how can i display all corresponding records on block B at a time.
    Thanks for your help.Bcj

    Thanks Roberts, that was realy informative due to some doubts i would like to confirm my requirements , i have two blocks A and B and each master record has only one detail record. but i wanted to display at least 10 master_detail relationships(records) on the form at a time, i would like to know is it possible to do without creating any table or view for example,
    data in table A,
    username role
    AAA R1
    BBB R2
    CCC R3
    data in table B,
    username profile
    AAA P1
    BBB P2
    CCC P3
    i wanted to display it on form like below,
    username role profile
    AAA R1 P1
    BBB R2 P2
    CCC R3 P3
    Also would like to know that how can i select data from dba_users, any restriction is there on forms 6i, i can select it on sqlplus.
    Thanks Again, Bcj

  • Login on one machine at a time

    Hey,
    We are in the middle of setting up a HomeSync solution in our office. My question is, is it possible to ensure that a user is only logged in to one computer at a time.
    If a user is already logged in, can it prevent it from logging into another machine?

    Workgroup Manager has an option to restrict user(s) to a single login. While Workgroup Manager is not available for Yosemite and Server 4.0 you can still run it on a Mavericks machine to manage a Yosemite server.
    Be careful though as there has been a bug around which may still affect Yosemite where AFP sessions are not properly terminated when a user logs out, this might prevent a legitimate new login by a user.

  • How to configure my JMS QUEUE serve only one message at a time?

    Hi All,
    I have requirement where I need to develope a JMS QUEUE in weblogic. This MDB has to serve only one message at a time. Is there any way to configure via annotations or in weblogic server settings ?
    Any help would be really appreciated...
    Thank you,
    K.

    I'm not aware of any way to configure the max pool size via annotations, you might try posting to the EJB newsgroup (please post back the answer). Of course you can set the size via an EJB descriptor, as per the MDB chapter of the Performance and Tuning guide in the edocs.
    By the way, if you have ordered message processing requirements, I highly recommend taking a look at the WebLogic JMS "Unit-of-Order" (UOO) feature as per the UOO chapter of the JMS programmer's guide. For a variety of reasons, the UOO features is often, by far, the best option for handling such requirements. If this feature applies to your use case, then there would be no need to force single threaded message processing in some sort of manual fashion (the feature enforces this for you).
    Tom

  • Force oraclexe to only display one page at all times

    <pre>Hallo everyone. In oracleXE,when logged in , if you have the same page open in two or more browser windows . the pages change session state.
    This is normal behaviour but for my requirements this could be dangerous (a user thinking he has submitted some information when actually he has submitted the information set in session state by the other page).
    How can you restrict/force OracleXE to show only one page at all times?.
    Or, how can you restrict Oraclxe so that certain pages can be shown in only one browser window at a time</pre>

    Hallo Dietmar,
    The page that i use,uses a view with instead of triggers to update the underlying tables.
    I do use dml for updating the view, but I use an application item to store the
    number of the current form accessed. ( a form that is used in the process that i
    have to automate) .
    If two browser windows are open and the application item is changed, it will be set
    to the value in the window that updated the item last.
    When i open the first browser window and save the form, the value of the
    application item used will be the value set by the window that updated the form
    last.
    How can I make it possible for a user to open two browser windows in one
    session, without this problem, or if that isn't possible, how can i restrict the user
    from opening more than one application page in the same session?
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • OBIEE Pre-Builts Loading one year at a time

    Hi,
    We are in a situation where we need to load one year at a time into the BAW (warehouse). I have seen this done before where the initial load was a full load and only went forward one year. Each subsequent load was for a complete year until we were current. After that, it was simply incremental loads with the standard prune days of 30.
    Does anyone have any detail as to how to do this?
    Regards

    Is the issue a performance issue (ETLs running for too long)? The problem is that if you do Year by year..and you want to do a "incremental" load for each year, that would be even more of a load..since you are not allowing for BULK load (where the tables get truncated). Either you can truncate and do BULK or incrmental..which may be an even heavier load. I think you are assuming that this approach will somehow help you from a hardware limitation standpoint..do you know for sure that it will?
    If you really do want to do it, as I mentioned, you can edit the INITIAL and END parameters. It would help if you clarify the Hardware limitation...I think there are better ways to handle this than to do what you are doing.

  • How can I display one line at a time on a PPT slide

    I am using OFFICE for the Mac (2008).
    In the past, I have known how to do this using PPT on a Windows PC..
    But something has changed and I can no longer figure out how to get each line on a PPT slide to appear one line at a time every time I click it.
    It's not that difficult, but I can't figured out where they moved the "Appear" option.
    I am NOT using KEYNOTE, but PowerPoint from OFFICE for the Mac (2008)
    Can someone help me.
    Thanks,
    Tom

    Since this is a Keynote discussion forum, there may be no one here that knows. I personally hate PP and could care less about how to make one line display at a time. It is easy on Keynote and that is all I need to know. You might want to look for a PP forum and ask there.

  • Loading data one year at a time

    Hi,
    We have a situation where we need to load data one year at a time. I saw this done a few years ago but do not remember the details.
    What I am thinking is that we could initially run a full load with the following parameters:
    $$ANALYSIS_START: 1/1/2006
    $$ANALYSIS_START_WID: 1/1/2006
    $$INITIAL_EXTRACT_DATE: 1/1/2006
    $$ANALYSIS_END_WID: 1/1/2006
    And this should give us one year. What I am not sure about is how to load each subsequent year???
    Regards

    Is the issue a performance issue (ETLs running for too long)? The problem is that if you do Year by year..and you want to do a "incremental" load for each year, that would be even more of a load..since you are not allowing for BULK load (where the tables get truncated). Either you can truncate and do BULK or incrmental..which may be an even heavier load. I think you are assuming that this approach will somehow help you from a hardware limitation standpoint..do you know for sure that it will?
    If you really do want to do it, as I mentioned, you can edit the INITIAL and END parameters. It would help if you clarify the Hardware limitation...I think there are better ways to handle this than to do what you are doing.

  • When I open up iphoto and click on the events tab then double click on an event, it used to show minis of all the photos in that event.  Now it shows only one photo at a time.  How do I get it back? Can you help?

    When I open up iphoto and click on the events tab then double click on an event, it used to show minis of all the photos in that event.  Now it shows only one photo at a time.  How do I get it back? Can you help?

    On the bottom bar of the window (on the left iPhoto 11, on the right in other versions) note the slider. Drag it left.
    Regards
    TD

  • HT5361 I want to permanently remove years old emails from my IMac Mountain Lion system.  How can I do this by year instead of laboriously doing it one message at a time?

    I want to permanently remove years old emails from my IMac Mountain Lion system.  How can I do so by year rather than slowly removing one message at a time?  Many thanks.

    Another option is to create a smart mailbox that includes emails with date received before a desired date.
    Then, select one message in the Smart Mailbox and cmd-A to select all. Then delete.

  • How can i slide a sound track one frame at a time in Pre 10

    i do a lot of music videos where i record audio separtly from the video and then sync them and i have a lot of trouble getting them in sync, does anyone have any good tricks to do this? also, can i move said sound track one frame at a time in either direction to help get these tracks to sync up?
    Thanks

    If you zoom to the max, and watch that little TimeCode box (it pops up, when you begin dragging), just look at the last two digits, as those are the Frames. Even with my clumsy hands and fingers, I can nail the displacement to Frame-accurate standards.
    Now, some other NLE's go a step further, in that when the Clip is Selected, one can nudge it along, with modifier keys and the Left-Right Cursor keys. I do not think that has been added to PrE 10, but would be a great Feature Request.
    Good luck,
    Hunt
    [Edit] Well shut my mouth! After you Select the Clip (unlinking with Alt+click, if muxed), just hold down the Alt key, while hitting the Left-Rigt Cursor keys!!!! Forget that Feature Request.
    Message was edited by: Bill Hunt

  • Loading the laserjet pro 200 color m251 nw one sheet at a time?

    How are you supposed to load the laserjet pro 200 color m251 nw one sheet at a time?

    Hi Choffman,
    Thank you for visiting the HP Support Forums! To get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at http://h30499.www3.hp.com/hpeb/
    I hope this helps!
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

Maybe you are looking for

  • Macbook 10.5.8 Version Built in ISight problem with YM 3.0 beta version

    I am using my Macbook built in ISight with the latest version of Yahoo Messenger for Mac, the 3.0 Beta. Every time i will use the YM webcam, it will only last for about 1 minute and will not work anymore. This is happening since i bought my macbook l

  • Secure mailbox

    Is there anyway that Mail 4.2 on OS X 10.6.3 can utilize a mailbox in a secured sparse bundle file system? This is what I would like to have: I use two imap accounts with various mailboxes within them, and I have a set of mailboxes on my Mac. I would

  • Issue with Infoset of sap query

    Hi All, There is an existing 'z' Sap query and the inofet is created using  the data source 'Data retreival by program'(Data structure:BAPIEXPLOSIONLIST). I got the requirement to add onemore radiobutton(for Costing Run) to the selection screen of ex

  • Include LMEDRUCKF1G - Print PO

    Hi All The Include LMEDRUCKF1G has the following code bundle. select single * from t006a where spras eq ekko-spras                              and   msehi eq ekpo-meins. move t006a to *t006a. My problem is that a certain UOM = 'CT' (Carton) is being

  • No Apps listed in CC desktop manager after installing Yosemite.

    Just installed Yosemite and the Apps tab of Creative Cloud is now blank. Am on a Macbook Pro. Thanks for any help =) Leah