Question about the use of JMS connections

Good Morning,
I'm a new user of JMS technology. I'm having some problems with the performance of my application. Specifically, i'm developing a 24x7 application. We are using MessageListener for all consumers.
Doing performance and continuity tests I detected memory leaks in certain JMS classes. After passing a profiler tool, I saw a large amount of ObjectMessage and Message instances. We are not closing the session, MessageListeners, MessageConsumers or Connetion instances because we want to reuse them all the time, and we can't close them because we lose the high availability service.
Reading, the JMS tutorial, I'm saw this paragraph in the "Connection" section:
+"When an application completes, you need to close any connections that you have created. Failure to close a connection can cause resources not to be released by the JMS provider. Closing a connection also closes its sessions and their message producers and message consumers.+
+queueConnection.close();+
+topicConnection.close();+
+Before your application can consume messages, you must call the connection's start method; for details, see Section 3.5, "Message Consumers." If you want to stop message delivery temporarily without closing the connection, you call the stop method."+
Should I close the connection as the last paragraph say?. If so, I don't know how to do it without lose the service, because if I call "close" method on the connection and immediatelyi start it, i will lose all my consumers and producers for a little time.
Any suggestion?
Thank you in advance,
Regards

1002099 wrote:
+"When an application completes, you need to close any connections that you have created. Failure to close a connection can cause resources not to be released by the JMS provider. Closing a connection also closes its sessions and their message producers and message consumers.+
+queueConnection.close();+
+topicConnection.close();+
+Before your application can consume messages, you must call the connection's start method; for details, see Section 3.5, "Message Consumers." If you want to stop message delivery temporarily without closing the connection, you call the stop method."+
Should I close the connection as the last paragraph say?. If so, I don't know how to do it without lose the service, because if I call "close" method on the connection and immediatelyi start it, i will lose all my consumers and producers for a little time.
You should close a connection when you have no further use for it as this will release resources.
You must start a connection if you want to receive messages from it.
Most applications don't use stop(). However if your application needs to temporarily pause delivery of messages (to the application) for some reason, call stop(). When your application wants delivery of messages (to the application) to restart, call start() again.
Nigel

Similar Messages

  • Question about the use of asdoc

    I want to use asdoc to compile the flex SDK documentation myself. The reason is I need it in another format, and for a specific SDK (4.5.1).
    I simply cannot get it to run. Out of the box, what should the command line look like if I'm in the bin the bin folder? Everything I try just keeps throwing errors.

    1002099 wrote:
    +"When an application completes, you need to close any connections that you have created. Failure to close a connection can cause resources not to be released by the JMS provider. Closing a connection also closes its sessions and their message producers and message consumers.+
    +queueConnection.close();+
    +topicConnection.close();+
    +Before your application can consume messages, you must call the connection's start method; for details, see Section 3.5, "Message Consumers." If you want to stop message delivery temporarily without closing the connection, you call the stop method."+
    Should I close the connection as the last paragraph say?. If so, I don't know how to do it without lose the service, because if I call "close" method on the connection and immediatelyi start it, i will lose all my consumers and producers for a little time.
    You should close a connection when you have no further use for it as this will release resources.
    You must start a connection if you want to receive messages from it.
    Most applications don't use stop(). However if your application needs to temporarily pause delivery of messages (to the application) for some reason, call stop(). When your application wants delivery of messages (to the application) to restart, call start() again.
    Nigel

  • Some questions about the use of the relay

    I connect Relay coil  to the AC power source,but  the switch always act.Is there any suitable relay for ac power ?
    and when I replaced time delay relay in simulation, there was an error.  I don't know how to get the right parameter setting ?
    please help.
    Attachments:
    time_delay relay.png ‏5 KB

    Hi there,
    Thank you for your question. There are two ways to do this, for your origianl circuit you can connect the time delay relay in this way:
    Set the frequency of the source to 1Hz and simulate, then you can see the NC and NO switch back and forth.
    Second method: Instead of using a AC relay, we can use an AC coil which can be found at Electro_Mechanical-->COILS_RELAYS-->ENERGIZING_COIL_AC
    In addition, we can add a normally closed (NC) contact or a normally open(NO) contact spicified for this AC coil(say K1)
    Just type RELAY_CONTACT_NC or RELAY_CONTACT_NO to place the components and then place them under K1.
    Change the Controlling device reference as shown in the picture below,
    Now the AC relay can be constructed in this way.
    For time delay, we can use TIME_DELAY_NC and TIME_DELAY_NO contact
    Hope these two methods help!:-)
    Best,
    Chen_T
    National Instruments

  • Question about the use of the logger

    I am trying to use the logger but it seems that unless i create a location named: "myview.class", i will not be able to see it? is this correct.
    This code is generated automatically:
    <b>private static final com.sap.tc.logging.Location logger =
    com.sap.tc.logging.Location.getLocation(myView.class);</b>
    And i can not change it, so if i dont have the location i can not use it.
    <b>logger.errorT("myMessage"); - this will not be seen.</b>
    The only way i could see my log messages was if i did this:
    com.sap.tc.logging.Location.getLocation("ExistingOldLocation").errorT("mymessage");

    Hi Erez,
    You have to create a location like this. E.g. I have class
    com.dbeisert.Hello that has logger.
    public class Hello{
    private static final com.sap.tc.logging.Location logger =
    com.sap.tc.logging.Location.getLocation(Hello.class);
    If you create a location with the name of "com.dbeisert"
    everything in this package and each subpackage will be logged to this location. So just create location with the package prefix of your application and logging will work for each class under this package. It is basically like Log4J.
    rgds
    David

  • Question about the CSS behavior when using layer 3 sticky and sticky table

    Hi everyone,
    I have a question about the CSS behavior when using layer 3 sticky and sticky table is full.
    If I configure layer 3 sticky and specify the inactivity timeout as below, how does the CSS
    handle subsequent needed sticky requests ?
    advanced-balance sticky-srcip
    sticky-inact-timeout 30
    CSS document says that
    Note:
    If you use the sticky-inact-timeout command to specify the inactivity timeout
    period on a sticky connection, when the sticky table becomes full and none of
    the entries have expired from the sticky table, the CSS rejects subsequent
    needed sticky requests.
    My question is what is the next reaction by doing the CSS if the CSS is in the
    following condition:
    when the sticky table becomes full and none of the entries have expired from
    the sticky table, the CSS rejects subsequent needed sticky requests
    Does CSS just rejects/drops subsequent needed sticky requests ?
    or
    Does CSS does not stick subsequence requests to particular service but CSS forward
    subsequence requests with round-robin basis ? which means if the sticky table is full,
    the CSS just works round-robin load balancing fashion for subsequence requests ?
    Your information would be appreciated.
    Best regards,

    Hello,
    There is a good document explaining this on Cisco web site
    http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_tech_note09186a0080094b4b.shtml
    It depends if the sticky-inact-timeout is used or not. If not, it's FIFO (the oldest entry in the sticky table is removed). If yes, the CSS will reject the next sticky request.
    Rgds,
    Gaetan
    Rgds
    Gaetan

  • Hello! I have a huge question about how can I get connected my iphone 4 with my car Is there any opption on find my car application? I have a Volvo xc60 and I want to be connected all the time with my iphone. Can I do that?

    Hello! I have a huge question about how can I get connected my iphone 4 with my car Is there any opption on find my car application? I have a Volvo xc60 and I want to be connected all the time with my iphone. Can I do that?

    Hello. I can say that you have a quite strange „huge question”… It’s non-sense to stay connected with your car which is hundreds miles away. Unless…
    I have a theory. You don’t want to controll your car, you want to controll somebody who is driving the car. Volvo XC 60 is a nice family car, usually used by married men between age of 35-45, probably with small children, so it’s very unlikely that you want to controll your teanage kid, mainly because probably even if you would give him/her to drive the car in the neighborhoud, I don’t think that he/she would be „several hundred miles away”…  If your child is not young teneage anymore, and he/she has his/her own life, but you want to control him/her, that is sick… So I am convinced that you want to controll your husband who probably travelling often! Am I wright?
    Isnt’t nice at all! Would you like if you would be monitorized in such way? I bet you don’t!
    Anyway, iPhone is smart, you can use for many things, but come on, you really were thinking that there is such kind of application???
    What could you do it's to put in the car a GPS survelling system, however I don't think that you could do it without your husband knowledge, otherwise he won't be able to start the engine...

  • Re: Question about the Satellite P300-18Z

    Hello everyone,
    I have a couple of questions about the Satellite P300-18Z.
    What "video out" does this laptop have? (DVI, s-video or d-sub)
    Can I link the laptop up to a LCD-TV and watch movies on a resolution of 1080p? (full-HD)
    What is the warranty on this laptop?

    Hello
    According the notebook specification Satellite P300-18Z has follow interfaces:
    DVI - No DVI port available
    HDMI - HDMI-out (HDMI out port available)
    Headphone Jack - External Headphone Jack (Stereo) available
    .link - iLink (Firewire) port available
    Line in Jack - No Line in Jack port available
    Line out Jack - No Line Out Jack available
    Microphone Jack - External Micrphone Jack
    TV-out - port available (S-Video port)
    VGA - VGA (External monitor port RGB port)
    Also you can connect it to your LCD TV using HDMI cable.
    Warranty is country specific and clarifies this with your local dealer but I know that all Toshiba products have 1 year standard warranty and also 1 year international warranty. you can of course expand it.

  • Two questions about the new iWeb

    Hi
    I've got two questions about the new iWeb.
    1. Is it possible to blog online now? Meaning adding a new blog entry without having to be on your own Mac? This is a feature I've been waiting for since iWeb first was released.
    2. Is it possible to choose the format of images? Earlier editions had the option to "optimize" images but that meant it changed it into .png meaning the site got a lot heavier than if .jpg was used. And since I have relatives who still only have an isdn connection I need to be able to have the website as light as possible.
    thanks

    Ah well... thanks for the quick answer
    Message was edited by: Guðlogi

  • Question about the ability of Genius Bar to help with outside software...

    Hi I wasn't sure where to put this, but here's my question. I'm having a problem with the Sims 2 on my Macbook and I was wondering if I go to the Genius Bar will they be able to help me or are they strictly hands off when it's not a direct Apple product?
    Also, I bought an external hard drive in the Apple Store but it's not an Apple branded product. If I'm having a problem with that, can I go to the Apple Store?

    If it's a question about the installation, system requirements or compatibility with your MacBook, the Mac Genius can probably help. If you're having some kind of issue while using the Sims 2, you'll probably have to contact .
    The same is true with the hard drive. If you need some help getting it connected or even formatted, they can probably help. However, if it's not powering up or you're losing files or some kind of operational issue with the hard drive after it's connected, they'll probably refer you to the manufacturer.
    Usually Apple can't support other vendors' products. Someone here may be able to give you some more advice, since none of us work for Apple. There may be someone here who's already had the same issue with the Sims.
    -Doug

  • Question about the "iPod radio remote"

    I assume the "radio remote" is the same for every country and is under software control. I want to buy in Canada but use in UK and Canada.
    Has anyone got one and seen the RDS work, in the UK almost every FM channel is RDS. Do they have RDS in Canada (Toronto) can anyone confirm?
    And of course it says FM so this again I assume no AM, not that I need AM it was just an interest in if it could do it.
    What happens about headphones, you can plug a pair into the remote, can you still plug into the bottom of the iPod or does the remote connector get in the way.
    What is the story with "line out" I use this all the time as I amp my headphones. So I assume you cant use line out? or is the remote a line out also.
    And I assume the remote cable and you headphones act as the aerial, how is the quality? Is it any good indoors, some little FM radios I have used drop to mono indoors. Does this Apple one frop to mono if the signal is weak?
    Someone that has one can perhaps answer
    Cheers
    Ray

    I can at least answer some of the questions.
    The RDS function on this radio/remote is poor in the
    UK. You have to set the radio function on the iPod
    to "Europe" and when you do this RDS info is not
    displayed on almost all radio stations such as
    Virgin, XFM, Capital, GLR, etc. It does display on
    Radio 2 however. At least, this is my finding. So
    it's unpredictable at best. Setting the radio to
    "USA" on the iPod increases the likelihood of getting
    the RDS to display, but the downside is that you can
    then only tune the radio in increments of 2mhz which
    is a bit awkward if your looking for 89.1mhz!
    There are three settings for the radio which you
    choose via the iPod. They are USA/Europe/Japan. No
    setting for Canada, although I'm sure you will still
    be able to use it over there as I can still use mine
    here in the UK even if it's set to USA.
    No, there is no AM radio.
    You can plug headphones into the remote or the
    headphone jack on the iPod, or both at the same time.
    I'm not sure I understand your question about the
    bottom of the iPod. The radio plugs into the iPod
    via the dock connector.
    There is no 'line out' on the iPod. If you mean the
    one on the dock, then no you can't use it as you
    cannot place the iPod into the dock whilst the
    radio/remote is connected as they use the same
    connector.
    Yes the cable of the remote acts as the aerial.
    Reception is surprisingly good where I am, but it
    will of course depend on where you use it. I've
    used it indoors without any drop in signal or it
    dropping to mono.
    Lastly, you need to update the software for both the
    nano or the 5th generation for the radio to work
    (after you do this a radio function appears in the
    menu), and some users have found that doing this
    screws up the iPod. I have mine working on both the
    nano and the 5th gen without any problems.
    There is a review of the radio/remote here. I like
    mine and consider it a worthwhile accessory, but of
    course there will be those who disagree.
    iPod
    Radio/Remote Review.
    Thank you for the reply.
    Think your right USA or Europe will work in Canada.
    Yes I mean the line out via the dock, I just wondered if the remote become a line out socket (I also use a pocket dock for line out for headphone amp as I use a pair of Sennheiser HD600 with my ipod) but of course that is silly becasue you have a volume control on the remote and line out is normaly fixed.
    Based on your views I shall get one in March when in Toronto
    Cheers
    Ray

  • Questions about the content of download meeting recording .zip file

    I tried posting this on the resurrected Connect forum, but my Adobe ID wasn't recognized there....
    Concerning the files that are included in the .zip file of the meeting recording that can be downloaded:
    1) Is there any documentation describing the files and their contents (i.e. what each file represents, what each XML element and attribute in those files represent)
    2) Are there any files that capture mouse movement on a shared desktop?
    Thank you!

    Hi Sean,
    Regarding your first post:
    Thanks Jorma! I don't have access to an FMS build at the moment but I'm quite certain it's there. As for contacting Jaydeep, I am 90% sure he authorized us to broadcast his email on here if folks had questions about the tool, but, in the case that I'm wrong and he didn't - I'm going to double-check first.
    Regarding your most recent post..
    "To be clear, the most critical goal I'm trying to accomplish is to create an automated process that will download the recording meeting at its highest quality in a consistent and reliable manner".
    I personally believe this is possible; unfortunately, I haven't seen it done yet. If your recording contains:
    - audio
    - a camera feed
    - screensharing
    Then I think you might be able to get this going. If it contains shared content, like a shared PPT, this gets trickier.
    "To do this, of course, I have to reproduce some of the functionality that Connect provides, starting and combining video and audio streams according to the instructions in the control files."
    Exactly right. If your recording didn't contain shared content, then all you've got on your hands are a bunch of audio/video files that you could edit together as you wanted with your favourite video editing tool. If it contains shared content, here's (at a high level) what's happening.
    For shared PPTs or FTContent files:
    First (for version 9 recordings only), Connect reads the information on the Shared Content's location and SCO within mainstream and indexstream and validates it before loading it. I don't recall this happening to the same extent with version 8 or earlier, but maybe it was. Now, if the content is validated (ie. Connect can find it) the share pod will display as black, if it doesn't, you get an empty pod with an message like "No content is being shared" or something like that.
    Connect then looks at the actual FTContent file, and loads the content that is to be shared using the file path and sco ID listed in here. It's important to note that the SCO ID and file path in here will likely not be the same as the original file you uploaded to your room, it's a new SCO id (I believe SCOs of this type are called referenced scos) and new path.
    Now...if I was going to build some sort of player which would play all these files in one screen to make a recording...I might not want to use Connect's code here. If you know the file path to the shared content (from FTContent), you could easily view it with the content URL (conveniently also in FtContent). I'm not a coder, but I'm envisioning something like Presenter's GUI where you've got the presentation's content in the main area, and a video file (if there is one) playing back on the side.
    Anyways, food for thought if you want to try to go about this. Connect recordings are incredibly complex and they come with a big learning curve, but if you can make sense of them the knowledge is quite valuable.

  • Dear Customer Service Team,  I bought a twelve-month Dreamweaver CC program with monthly payment that I have paid via bank transfer and there would be a question about the activation. How could I get the license key with which I can activate my account? I

    Dear Customer Service Team,
    I bought a twelve-month Dreamweaver CC program with monthly payment that I have paid via bank transfer and there would be a question about the activation. How could I get the license key with which I can activate my account? I can not find it and now I only have access to the trial version.
    Thank you for your help in advance.
    Kind Regards,
    G. Zsolt

    There is no serial number require for Creative Cloud products, you may activate the products using your email address and password which is associated with Adobe. If your Dreamweaver asking for serial number, then make sure you are signing in with correct email address.
    You may also refer below link
    Sign in, activation, or connection errors | CS5.5 and later

  • Short question about the nano controls

    Hi. I'm probably going to buy a 4Gb nano today, but first I'd like to ask a short question about the << >> buttons on the click wheel.
    I read in a forum that the << & >> buttons are actually 'skip' buttons (only used to play the previous or next song respectively), and that it's impossible to rewind or fast-forward within the track you're listening to. This is extremely important for me as I have several 2-3 hours mp3, and I need to be able to access different parts of the file quickly (eg. not having to actually wait 1 hour to listen to my favorite part). I found this to be an important feature, and I can't believe Apple hasn't thought about it.
    Anyway, I've never used an iPod, that's why this question may sound plain stupid.
    Thanks for you replies!

    The iPod fast charges to about 80% and then trickle charges the rest of the way to prevent damaging the battery/iPod. A full charge takes more than an hour or two though the battery indicator will show full. The best way to tell if a full charge has occurred is to unmount the iPod from the computer but keep it connected. The screen will show an animation of a battery. When the animation stops the battery is fully charged.
    Also, as your battery discharges the indicator will eventually show red indicating the battery is about to run out...in an hour or two. After you've owned your iPod for a couple months you'll figure out how much time you have left when the indicator turns red - it depends on a number of factors including play volume, equalizer use, etc. In real world use I'm getting over 11 hours.
    The headphones are...average. If they didn't hurt my ears I'd find them acceptable for my pop music but not so acceptable for acoustic and symphonic nor music with booming bass - because they don't boom the bass.
    I encode the majority of my music at 256 AAC and I've noticed no distortion caused by the EQ. This, plus your complaint about the earphones, leads me to think perhaps you got a bum set of phones. Borrow a pair from someone else and see what happens.

  • SUP - 2 questions about the CDB (cache database)

    Hi,
    I have 2 questions about the cache database and the cache groups:
    1 - How does the "On demand" cache group policy exactly works? I know that online cache group is without storing any data on the CDB making direct requests to de backend from the device, the DCN is based on updating from the backend, the scheduled is based on a time period, but I don't understand how the "on demand" exactly works, and why it has a time period too.
    2 - Is it possible to query the cache database table to check the data that SUP has stored? How can I do this?
    Thank you!

    I posted a similar question in SUP Apps project not too long ago and  Paul Horan provided this useful reply:
    Create a "Sybase ASA v12.x for Unwired Server" connection profile in the Enterprise Explorer.  I named mine CDB.
    : Host = localhost (or whatever the machine name is)
    : Port = 5200
    : Database name = "default"
    : User Name = "dba"
    : Password = "sql"
    Obviously, change the userid/password to match, if you changed them during install time.
    Connect, and you'll see the "default" database displayed.
    Navigate down through the Tables folder, and the first subfolder is labeled something like [#should_delete_sk ...]  Start there.
    You'll see a bunch of tables with the naming convention "D1" + package name + package version + MBO name.  These are the cache tables for the MBOs.

  • Questions about the T410s

    Hey guys,
    I'm considering buying the T410s because my last laptop was a Dell XPS and the GPU burned down after two years. I am a college student and I use my laptops quite extensively for homework, flash games, TV and movies. And I have a couple of questions about the T410s.
    1. Due to my previous experience with my Dell XPS, I am looking for a more reliable laptop. So would I have to worry about the T410s heating up/burning down or breaking in like two years? 
    2. I am not much of a gamer, but enjoy videos sometimes. Will the Intel graphics card be able to run 'not so intense' games like Starcraft 2?
    3. Also, would the 4gig of RAM be sufficient to run the Windows 7 64bit smoothly or I should choose the 32bit instead? 
    Thanks!!
    Solved!
    Go to Solution.

    1) your Dell XPS used the Nvidia GPU? That won't happen in the new T410s.
    2) the Intel 5700 MHD GPU can handle 1080p easily, but games like Starcraft 2 may only played on low to med settings.
    the Nvidia GPU Optimus GPU option would allow 4 LCD support through the dock, if you ever want to connect that many LCD in the future.
    3) 4 gigs is fine for 64 bit OS.
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

Maybe you are looking for

  • Publis HTML content into OBIEE

    Hi all, in 10 g we put some html files under <oracle_home>\bise1\bi\oc4j_bi\j2ee\home\applications\analytics\analytics\res and accessed them on the portal with http://<server_name>:9704/analytics/res/BI/<file_name>.htm How can we do the same on OBIEE

  • FYI: Pro Update 2005-02

    Just noticed a Pro Update is available. Among other fixes, the artnum (http://docs.info.apple.com/article.html?artnum=302323) says: "Addresses the field inversion (image jitter) issue when using Compressor to transcode from HDV to Standard Def MPEG-2

  • Regex excluding a certain string

    Hi I have a question about how to search the strings that are in between a "start" and an "end". The results should not contain the word " cat ". All the strings with the format "start xxxxx yyyy end" that do not contain the word " cat " are valid. T

  • Weblogic 5.1 Performance Issue

    1. I am having a performence Issue with an application on Weblogic App server. 2. The application is database intensive, with database operations for some reports that take few minutes (2 to 5 mins). The Weblogic thread count properties was set at 15

  • Pcs 1610 all in one stops printing in middle of web page prints shows error-rese​t on q.

    when i try to print coupons and other web page prints printing starts then stops in the middle of page the read out on the printer shows printing when i try to either turn off or cancel print out on the printer nothing happens i can only unplug print