Where I save Executor instance in MDB environment

Hi,
I've been doing some experiences with JMS and Message Driven Beans.
I put in a queue messages and see how many MDB beans catch and treat the message. I've concluded that Glassfish creates many MDB beans and some are removed.
My goal is control the flux of messages treatment. In other words i dont want instances of beans treat the message in a uncontrolled manner. For example if i have 10 messages in a queue and the Application Server is running on a machine with two cpu cores i want only two messages be treated each time.
I thought in instantiating an Executor. The motif is MDB beans get Executor reference and send the message to the Executor. The Executor see what threads are available in Thread Pool and treat the message.
But the difficulty is how I save the Executor instance. In a static variable? In a MBean? In a shared memory (if yes how?).
Thanks in advance.

most app servers let you control the size of the "pool" used for various bean types. a google query for "glassfish mdb pool size" looks like it's returning relevant results.

Similar Messages

  • Provide a new, unique instance name - Distributed Environment

    Hi,
    I am not sure about this piece of information in installation docs
    please refer
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/epm_install_11121/frameset.htm?launch.html
    When you configure in a distributed environment, provide a new, unique instance name as you configure each server. For example, if you are using the default instance name epmsystem1 on the first server, and you keep the same naming convention on subsequent servers, you would create new, unique instance names on each subsequent server, such as epmsystem2, epmsystem3, and >so on. What if i use same path "d:\.......\epmsystem1" on all servers in distributed environment?
    Regards
    Kumar
    Edited by: Kumar 1 on Oct 4, 2011 6:18 AM

    Thanks John,
    Mostly i configured different instance name ("D:\oracle\middleware\epmsystem1" and "D:\oracle\middleware\epmsystem2" etc.
    but i have one client where i see similar instance on all servers in distributed environment "D:\oracle\middleware\epmsystem1" and "D:\oracle\middleware\epmsystem1" etc.
    Please advice? and let me know what could be impact of these two scenario.
    Regards
    Kumar

  • "Always ask me where to save files" does not work.

    Summary: The "Always ask me where to save files" feature does not work. No dialog box comes up, apparently because the browser is stuck on a bad old read-only lastDir location, in a prefs.js file that I can't edit.
    Details:
    I am using Firefox 30.0 on Mac OS 10.6.8. My Mac has a both a read/write Mac partition that I use most of the time, and a bootcamp Windows partition drive ("C"), which I can read but not write to.
    At some point I accidentally tried to download a file from a site, using Firefox, to the read-only Windows C drive. Ever since that time, I have not been able to download any files from Firefox, except to the firefox/downloads folder. This is inconvenient. If, in preferences, I try to set downloads to ""Always ask me where to save files", the dialog box does not come up when I actually try to save files. This problem does not apply to saving photos by right-clicking them.
    If I open, in text-edit, mozilla/firefox/profiles/t4vockvue.default/prefs.js, which was saved yesterday, I can see a problematic line. It reads:
    user_pref("browser.download.lastDir", "C:\\Documents and Settings\\[etcetc]");
    C:\\Documents and Settings\\[etcetc] being the read-only windows directory.
    This prefs.js is apparently not an editable file.
    I tried to fix this by opening a browser tab in Firefox and opening about:config. The editable browser.download.lastDir does NOT show the same "lastDir"....it shows some directory that I successfully downloaded photos to, by right-clicking on a photo.
    How can I fix this problem?
    Thanks.

    To confirm which profile folder is active when you are running Firefox, it is easiest to open it from inside Firefox as follows:
    Sometimes the file that stores the customizations becomes corrupted and fails to update properly at the end of your session. You can rename the file and customize from scratch.
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    In the first table on the page, click the "Show in Finder" button (Windows: "Show Folder" button).
    Hopefully you are using a separate profile folder on each OS.

  • I deleted my download folder and now I can't download anything. I can't select the folder to "save file to" and when I select "ask me where to save files" I still can't download. it says your file will start downloading, but then it doesn't. Help!!

    I deleted the folder that saves everything that is downloaded from Firefox. After that I can't download anymore. I've tried clearing my download history, reset the download folder, reset the download action by renaming the mimetype.rdfs file and it's still not working. I've tried to choose a different download folder but it doesn't let me select any folder at all. If I select "ask me where to save files" and then try and download something, the download doesn't start after I select save to. The only time it does actually download is when I select "open with...windows mediaplayer" when downloading then the download will start. Please help. Thank you.

    You broke your phone by getting it wet.  Nothing more to say.  Bring it in to Apple for an out of warranty exchange or buy a new phone.  There's really nothing else we users here can help you with.

  • When I click on download link, Firefox don't pop-up window where i could select open with or to save file, it just pop-up window where to save, why?

    Before update, when i clicked on download link pop-up window would come up asking me if i wnat to open file with program or just save it, but after update i dont get that pop-up window, insted i get window asking me where to save it, how can i fix this problem, because i want sertain files to be opened with a program like it was before update? I have tried every solution i could find, and nothing helped. I use Firefox 16.0.2 on win7 ultimate x64bit

    Thank you, it helped alot. I found that my problem was that all programs in applications panel was set to "save file" option and when i changed them to "always ask" it was back to normal, like i used to :D many thanks

  • When downloading a large file, like a movie Internet Explorer automatically provides one with the choice of where to save it - e.g. "C" drive, but Firefox doesn't. How can it be done?

    When downloading a large file, like a movie, Internet Explorer automatically opens a download window offering the choice to "Open" or "Save"the file. This provides one with the choice of where to save it - e.g. "C" drive, in the "My Documents" or "Desktop" folders but Firefox's download window doesn't. This has always frustrated me because I would rather use Firefox exclusively to access the Internet, but when it comes to saving files downloaded off the Internet, sadly, I have to revert to IE!

    If you click on Firefox from the upper-left, then Options, a new window should appear. On that window, click on the general tab. In the middle of the window, you'll see options regarding your downloads, one of which says, "Always ask me where to save files." Click on the bubble for this options, then click Ok. From then on, you should always be prompted on where you want your files saved.

  • I just want the option to "save as" when downloading a file so I can choose where to save it. Right now, I go back to my Internet Explorer to do this.

    I changed my setting to "always ask where to save files" and I went into my profile folder and deleted my preference folder.

    Did you check the download settings?
    *Tools > Options > General : Downloads : "Always ask me where to save every file"
    *https://support.mozilla.org/kb/Downloads+window

  • "Save as" dialog box doesn't come up, even though I have "Always ask me where to save files" selected (email attachments)

    Recently, the "save as" dialog box quit appearing when I attempt to download email attachments. I have the "always ask me where to save files" box checked in the tools/options/general/downloads area. The box still appears when I use Chrome, but not when I use Firefox.

    Hello,
    Can you please follow these steps and provide the value for the configuration 'browser.download.useDownloadDir'
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''', to continue to the about:config page.
    Can you please provide the values for the following keys
    #browser.download.useDownloadDir
    #browser.download.lastDir
    Thank you

  • Is there an app where it saves your photo shortly after onto the web/online after taking a picture?

    Is there an app where it saves your photo shortly after onto the web/online after taking a picture? In essense, I want to be able to take a picture with the stock camera app on the Iphone 4 and have it saved immediately online after...without hooking it back onto a computer...completely automatic and wireless/using internet data.
    Thanks very much.

    If you're running iOS 5.1 or later you could use Photo Stream.  See http://www.apple.com/icloud/features/photo-stream.html and http://support.apple.com/kb/HT4486.  It will upload up to 1000 photos to iCloud.com for 30 days.

  • Saving a Pages document: when I first save a pages document it saves and I don't know where it goes or what its name is.  I want to be asked every time I save a pages document what to name it and where to save it. How do I set this preference?

    Saving a Pages document: when I first save a pages document it saves and I don't know where it goes or what its name is.  I want to be asked every time I save a pages document what to name it and where to save it. How do I set this preference?

    I'll guess that you've used a page layout document & pasting created a text box. You can add more pages & create linked text boxes, but I think you'd be better of using a word processing document. In word processing documents there is a basic text layer & additional pages will be created as needed to fit the text. Take a look at the toolbar of your document. If it says "sections" for the +page icon it's a word processing document, if it says "pages" it's a page layout document.

  • How can I upload a file to the server where I save the Java Web Start Files

    Hello,
    Does anyone knows how to upload a file to the directory where I save the JAR files through the Java Web Start program. Thanks you

    ftp

  • Where is "save as" or how to change file type in Preview in Lion?

    Where is "save as" or how to change file type in Preview in Lion? I used to use Preview to change quickly change a lot of PNGs to either JPEGs or PDFs but with the introduction of versions auto save etc there no "save as" in the File menu. Any suggestions how to get this functionality back or how to get around it within OS X (no Photoshop etc)?

    Just wasted 15 minutes looking for that.  What's wrong with Save As?

  • BPM attachments and comments where do save?

    Hi there,
    I develop a process with oracle bpm. this process have some activities that send attachments and comments together. my question is that where do save this attachments and comments? in database or file system? which table or which directory? i use default attachments and comments in HumanTasks.I hve to understand this files where do save, because i have to save this in my DB and use this in other processes.
    can anybody help me?

    Milad,
    This really depends, both approaches file/database works. If it was me then I would use the file system. Make sure this file system is mounted for clustering. This can be any directory you want.
    The database is another option, but has more maintenance overhead. In my experience especially as you use attachment using file base performs better (as long if your hard disc is of reasonable standard)
    Thanks
    Sander

  • Where is save as feature on Lion ?

    Where is save as feature in Lion ?

    I understand that in Mountain Lion (10.8), Save-As is back - but it is a HIDDEN feature. To be honest, I never got used to the Duplicate function in Lion, so I am thrilled that this may be back - it was in the beta version of Mountain Lion.
    Do a Google search to find the article that discusses this - if I recall, I read it on Gizmodo. Once you find it, I think you can turn it on so that Save-As is a permanent feature, or one accessible via the Control or Option keys.
    Best of luck! I am thrilled!

  • Where is "Save as" in Pages '09 v. 4.1?

    Where is "save as" located in Pages '09 v. 4.1?

    nancy225 wrote:
    T'his failed to solve my problem.  There is no "save" in Lion.
    Yes, there is, but only for a previously unsaved document, whether a new document or a copy made with duplicate. Once the file has been saved the command in the File menu changes to Save a Version.

Maybe you are looking for

  • Wireless Connection Problems for Home Hub 3 and Vi...

    We have upgraded from BT Home Hub 2 to version 3 and had a BT man (engineer) visit to set it up. He did so with no problems on our PC (wired, runnning XP) and installed all relevant software on the PC and this is connected which so far has been fast

  • Satellite Pro L - Mobile phone asks for driver

    I am trying to connect my new Samsung Galaxy S Android mobile phone to my Toshiba Satellite, however the laptop will not recognise the phone and asks for a driver. Can anyone help?

  • How to put a user defined class in Web dynpro

    How and where can we create some user defined classes? For example i wanted to create some utility classs for my project. Under what folder should i create this?

  • Not able to create DIR from PR line Item

    Dear Friends, I have Cretaed Doc Type "CON" and entered "EBAN - Purchase Req. Item" in the object link and in Create Document I have mentioned " 1 - Create simple document". When I try to create a DIR from PR Line Item, there is no option or a logo i

  • I cant download any app from the app store.

    I cant donwload any app from the appstore an error appear and said, this app cannot purchase at this time, try again later please. I have ios 7.1 A few days everything was working normally and I dont understand what is the problem.