Pending Messages waiting for Client Acknowledgement

          Hi,
          I have tried to search the Internet for an answer to this question but failed.
          Any clue???
          I have setup a queue on BEA WLS 7.4. I have four consumers which connect concurrently
          to dequeue messages. Each of the consumers serve as a proxy to other clients
          waiting for the messages.
          The proxy application (consumer) is developed such that it will send the client_acknowledge
          to the Q manager after it finishes processing the received message and sends it
          successfully to the external client.
          I noticed that in some exceptional cases which I cannot reproduce, the proxy application
          would fail to send the message to client and therefore wouldn't send the client_acknowldege.
          Although I tried to catch all possible exceptions, i cannot catch this single
          exception that causes my proxy to continue processing the messages in a proper
          way. The problem is that I end up with some Pending Messages on the queue which
          cannot be available to other consumers and would stay that way till the consumer
          that was attempting to dequeue it is killed.
          Isn't there any way to configure an expiry period for this client_acknowledge
          wait state??? In other words, is it possible to configure a time after which
          the JMS provider would no longer be waiting for the client_acknowledge and sends
          the pending message back to the Q in a state that makes it available to other
          consumers.
          

Sorry. Once a message has been received in "CLIENT_ACKNOWLEDGE" mode, it
          remains pending and unavailable to other consumers until either the consumer
          is closed, acknowledge is called, or the client disconnects.
          Have you tried using a transacted session? In that case, the transaction
          will time out eventually, which will roll back the transaction and make the
          message visible again. You can control the length of this timeout using the
          "TransactionTimeout" parameter on the JMS connection factory.
          greg
          "Muhannad" <[email protected]> wrote in message
          news:[email protected]...
          >
          > Hi,
          > I have tried to search the Internet for an answer to this question but
          failed.
          > Any clue???
          >
          > I have setup a queue on BEA WLS 7.4. I have four consumers which connect
          concurrently
          > to dequeue messages. Each of the consumers serve as a proxy to other
          clients
          > waiting for the messages.
          >
          > The proxy application (consumer) is developed such that it will send the
          client_acknowledge
          > to the Q manager after it finishes processing the received message and
          sends it
          > successfully to the external client.
          >
          > I noticed that in some exceptional cases which I cannot reproduce, the
          proxy application
          > would fail to send the message to client and therefore wouldn't send the
          client_acknowldege.
          > Although I tried to catch all possible exceptions, i cannot catch this
          single
          > exception that causes my proxy to continue processing the messages in a
          proper
          > way. The problem is that I end up with some Pending Messages on the queue
          which
          > cannot be available to other consumers and would stay that way till the
          consumer
          > that was attempting to dequeue it is killed.
          >
          > Isn't there any way to configure an expiry period for this
          client_acknowledge
          > wait state??? In other words, is it possible to configure a time after
          which
          > the JMS provider would no longer be waiting for the client_acknowledge and
          sends
          > the pending message back to the Q in a state that makes it available to
          other
          > consumers.
          

Similar Messages

  • How to get the user input while server is waiting for client's message

    I have a server/client program (using sockets)
    I used a thread to let a server always waiting for client's request, but how should I found that
    there is no message pass to server from client.
    public void run(){
    while (true){
    Socket server = serverP.accept();
    ObjectInputStream inFromClient = new ObjectInputStream(server.getInputStream());
    inMessage = (Message)inFromClient.readObject();
    System.out.println("Deadlock may occurred, please enter your command: ");
    BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in));
    String command = inFromUser.readLine();
    The server is waiting for the inMessage that is passed from multiple clients. But if the server
    received no message after some time, it will assume something is wrong (eg, there is a
    deadlock), then it will ask the user to input the command to execute the method.
    If I put
    "System.out.println("Do you want to take Snapshot: ");
    BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in));
    String command = inFromUser.readLine();"
    inside the while loop, it will keep asking user to enter the input when every time the client
    connect to the server. But I want to ask the user to enter the command only when the server
    can't get the response from clients.
    How should I do?
    Please help.

    Your statement:
    Socket server = serverP.accept();
    it will block until Server receive connect request from client.
    So, what u can do is, create a seperate Thread which check if server is idle (no client connect to it) for a certain time.
    public class xxxxx extends Thread {
    public void run(){
       (new WatcherThread()).start()
       while (true){
       Socket server = serverP.accept();
       WatcherThread.acceptFlag();  
       ObjectInputStream inFromClient = new ObjectInputStream(server.getInputStream());
       inMessage = (Message)inFromClient.readObject();
       Do something with client request ...
       I suggest you to create a WorkerThread for
       each client request.
       For example:
       new (WorkerThread(inMessage)).start();
       This way, your server thread will immediately serve
       the next client request ASAP.
    public class WatcherThread extends Thread {
       private static accept = false;
       public static void acceptFlag() {
            flag = true;
       public void run() {
           while(true) {
               try { sleep(10000); } catch (Exception ex) { }
               if (!accept) { // never accepted after 10000 msecs
                  ... do your System.in here ...
               flag=false;          
    }The idea is, your server notify WatcherThread if a client connect. WathcerThread runs at seperate thread. It waits for 10000 msecs and check if Server ever gets connect request from server. If it doesn't then you can do your System.in, otherwise, it will wait for 10000 again..
    FYI, next time, please use [ code ] and [ / code ] to format your code. It discourage me to read plain whole-left-aligned code like yours.
    See: http://forum.java.sun.com/features.jsp#Formatting
    rgds,
    Alex

  • Client-Auth reports: HTTP4030: Timeout while waiting for client certificate

    Hello,
    I'm having problems with the certificate authentication in my Sun Java System Web Server Enterprise Edition 6.1: I have created an ACL in the SJWS that asks for a client certificate when the user goes to a specific URI:
    acl "uri=/server1/myaction.do";
    authenticate (user) {
    method="ssl";
    deny (all)
    user = "admin";
    It works great and, when the user goes to "/server1/myaction.do" (we are using Internet Explorer 7 as Web browser), the window for selecting the client certificate appears:
    - If the user selects a certificate that doesn't require password, everything works fine.
    - The problem comes when the certificate is configured in Internet Explorer for asking for a password every time it is accessed. Once the user has selected the password protected certificate, the window for typing the password appears, but if the user doesn't type it and click OK IN LESS THAN 5 SECONDS (I've timed it), the following messages appear in the SJWS logs:
    [28/Nov/2007:09:25:05] failure ( 2055): for host 10.0.145.11 trying to GET /server1/myaction.do, Client-Auth reports: HTTP4030: Timeout while waiting for client certificate.
    [28/Nov/2007:09:25:05] security ( 2055): HTTP4290: get_auth_user_ssl: client passed no certificate.
    I tried to add the following two lines to the magnus.conf file of the SJWS, but nothing changed:
    SSLClientAuthTimeout 240
    AcceptTimeout 3600
    Has anyone experienced something similar? Any little piece of advice would be greatly appreciated.
    Thank you very much in advance,
    Carlos.

    This is fixed in Web Server 7.0 update 2. Please migrate/upgrade to Web Server 7.0 update 2. Sorry for the inconvenience.

  • 451 4.7.0 Timeout waiting for client input

    My organization is running Small Business Server 2008 with Exchange.  After installing Exchange users reported not reciveing emails from Comcast and a few other domains.  Looking at the logs, domains including gmail and comcast are unable to deliver email to our Exchange mailboxes.  They receive an error message like the following.
    Technical details of temporary failure:
    Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 451 451 4.7.0 Timeout waiting for client input (state 18).
    Other domains send just fine. Any ideas what is causing the 451 4.7.0 connection timeout error message?  The following is an example SMTPReceive log.
    2009-06-08T23:15:11.964Z,,+,,
    2009-06-08T23:15:11.964Z,,SMTPSubmit SMTPAcceptAnySender SMTPAcceptAuthoritativeDomainSender AcceptRoutingHeaders,Set Session Permissions
    2009-06-08T23:15:11.964Z,,"220 remote.domain.com Microsoft ESMTP MAIL Service ready at Mon, 8 Jun 2009 16:15:11 -0700",
    2009-06-08T23:15:12.027Z,,<,EHLO smtp3.mail.com,
    2009-06-08T23:15:12.027Z,,250-remote.domain.com Hello [123.12.123.123],
    2009-06-08T23:15:12.027Z,,250-SIZE 10485760,
    2009-06-08T23:15:12.027Z,,250-PIPELINING,
    2009-06-08T23:15:12.027Z,,>,250-DSN,
    2009-06-08T23:15:12.027Z,,>,250-ENHANCEDSTATUSCODES,
    2009-06-08T23:15:12.027Z,,>,250-STARTTLS,
    2009-06-08T23:15:12.027Z,,>,250-AUTH,
    2009-06-08T23:15:12.027Z,,>,250-8BITMIME,
    2009-06-08T23:15:12.027Z,,>,250-BINARYMIME,
    2009-06-08T23:15:12.027Z,,>,250 CHUNKING,
    2009-06-08T23:15:12.105Z,,<,STARTTLS,
    2009-06-08T23:15:12.105Z,,>,220 2.0.0 SMTP server ready,
    2009-06-08T23:15:12.105Z,,*,,Sending certificate
    2009-06-08T23:15:12.105Z,,*,CN=remote.domain.com,Certificate subject
    2009-06-08T23:15:12.105Z,,*,CN=ecf-DOMAINSERVER-CA,Certificate issuer name
    2009-06-08T23:15:12.105Z,,*,,Certificate serial number
    2009-06-08T23:15:12.105Z,DOMAIN\Windows SBS Internet Receive DOMAIN,,20,,*,,Certificate thumbprint
    2009-06-08T23:15:12.105Z,DOMAIN\Windows SBS Internet Receive DOMAIN,,21,,,*,remote.domain.com;domain.com;DOMAIN.local,Certificate alternate names
    2009-06-08T23:15:12.355Z,,EHLO smtp3.mail.com,
    2009-06-08T23:15:12.355Z,,250-remote.domain.com Hello [123.12.123.123],
    2009-06-08T23:15:12.355Z,,250-SIZE 10485760,
    2009-06-08T23:15:12.355Z,,250-PIPELINING,
    2009-06-08T23:15:12.355Z,,250-DSN,
    2009-06-08T23:15:12.355Z,,250-ENHANCEDSTATUSCODES,
    2009-06-08T23:15:12.355Z,,250-AUTH,
    2009-06-08T23:15:12.355Z,,250-8BITMIME,
    2009-06-08T23:15:12.355Z,,>,250-BINARYMIME,
    2009-06-08T23:15:12.355Z,,>,250 CHUNKING,
    2009-06-08T23:15:12.433Z,,<,MAIL From:<[email protected]> SIZE=52018,
    2009-06-08T23:15:12.433Z,DOMAIN\Windows SBS Internet Receive DOMAIN,,,,,,,receiving message
    2009-06-08T23:15:12.433Z,,250 2.1.0 Sender OK,
    2009-06-08T23:15:12.496Z,,RCPT To:<[email protected]>,
    2009-06-08T23:15:12.496Z,,250 2.1.5 Recipient OK,
    2009-06-08T23:15:12.496Z,,DATA,
    2009-06-08T23:15:12.496Z,,354 Start mail input; end with <CRLF>.<CRLF>,
    2009-06-08T23:15:20.277Z,,451 4.7.0 Timeout waiting for client input,
    2009-06-08T23:15:20.277Z,,,Local
    2009-06-08T23:16:03.276Z,,451 4.7.0 Timeout waiting for client input,
    2009-06-08T23:16:03.276Z,,,Local

    I had a similar issue with fortigate firewall. I could not able to resolve this issue with fortigate. Fortunately I had a Cisco PIX firewall in my stock. Eventhough it is not a best practise I have replaced the fortigate firewall with Cisco PIX mail flow
    started perfectly without any issues.
    If any fortigate experts are seeing this forum please suggest what has to be done for solving this issue.
    I have escalated this case to fortigate and they resolved the issue by executing the following commands on the fortigate firewall.
    set tcp-mss-sender1452
    set tcp-mss-receiver1452
    Santhosh Sivaraman MCITP: Microsoft Exchange Server 2007/2010 | MCSE/MCSA

  • At the end of sync itunes hangs with message waiting for files to be transferred....iphone 4s?

    at the end of sync itunes hangs with message waiting for files to be transferred....iphone 4s?-
    and just sits there for an hour or more... sync is not finished, nothing happens... Any ideas?

    I called tech support and they had me schedule a time to walk through the problem with an apple engineer last night.
    They acknowledged that they've been getting calls about this issue but that's all they said.
    Make a long story short there was no solution. I ended up backing up all my info, contacts, notes ect. to the cloud and restoring the iPhone to the factory settings, then I synced back to the cloud but did not restore from a previous back-up just use as a new phone then manually check off the media pictures, music, movies ect.
    It's not the ideal way but it worked for me because I don't have a ton of stuff on the phone and I can even sync wirelessly now where's before I couldn't check that feature on in iTunes because it wouldn't sync.
    One thing since you can't restore from a previous back-up make sure to manually back up your camera roll or turn on photo stream to back up photos to the cloud.
    Hope this helps.

  • My iphone 3GS no longer syncs with iTunes. The phone is recognised, backs up but then I get an error message: "Waiting for changes to be applied". BUT unlike other people, it doesn't stay stuck on it, instead the process closes down immediately

    Hi all,
    Apologies: I've just joined the community and didn't quite figure how to write a msg! Hope it works...
    Anyway,
    I read many posts on this annoying error message (Waiting for changes to be applied) in the last 2/3 days, but they all refer to the sync staying stuck on it.
    Mine doesn't.
    I read the message, then it quickly shuts down the sync and the iTunes progress bar only shows the apple...
    As suggested by many, I removed voice msgs, turned off/on, tried to sync in individual stages (calendar only...) but nothing works.
    I am up to date on iTunes (11.1.1.11) and have IOS 6.1.3 on my phone, to sync on a Win8 pc (all worked fine until recently).
    I have had this phone for several years and it has never done this.
    It worked absolutely fine, until I loaded the latest version of iTunes it seems...
    Any suggestions?
    Many thanks

    ALSO, on the iPod under Settings>General>iTunes Sync, you may need to back out of the "iTunes Wi-fi Sync," and reopen it to get it to update.
    (I use iTunes 11.1.5.5)

  • I have a Laserjet 2550L. When I try to print 2nd time get message "Waiting for printer to become ava

    Laserjet 2550L being used with Mac OSX Lion 10.7.3. After turning on, it will print once. When trying to print a second time I get a message "waiting for printer to become available." I have to turn it off and then back on to get it to print again.

    Hum. Let's uninstall with the 'scrubber option' like this:
    1. Go to Applications/Hewlett Packard/ click on HP Uninstaller and click Continue
    2. Highlight your device on the left pane
    3. Hold the Ctrl, Opt and Cmd keys and click on Uninstall
    4. There will be a pop up that asks if you are sure you want to uninstall ALL hp software. (At this point, if you continue, any HP printers you have installed will need to be reinstalled)
    5. Click Continue and let it finish
    Now, run a Software Update. This can be done by clicking the Apple in the top left of the screen then clicking Software Updates.
     Next, let's reset the printing system:
    Go to System Preferences > Print & Scan
    - Right (or control) click in the rectangle listing your printers and select Reset Printing System.
    WARNING - this will delete ALL of your printers!
    - Select the plus sign to re-add a printer. Select the Default tab on the top of the window. Look for the printer, select it and wait until the "Add" button becomes available. Click it.
    Let me know how this works for you.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • On my HP printer Officejet4620 I get an error message "waiting for printer to become available".  Help please?

    On my HP printer Officejet4620 I get an error message "waiting for printer to become available".  Help please?

    Restart the computer and restart the printer. If you continue to have the problem the follow the steps Apple outlines in Reset Printing System feature article.

  • Message: "Waiting for App Store to download Mac OS X Server Add on"

    Trying to install 10.7 (from 10.6.8) on Mac Mini server 4,1. I don't use it as a server, and don't know anything about that.I get a message "Waiting for App Store to download Mac OS X Server Add on" check download at App store. There is none. Help?
    Mac Mini Server 4.1/2.66 GHz/Intel Core 2 Duo/8 GB Memory

    Ran into this myself on a new MacMini Server. I renamed the ServerVersion.plist file in /System/Library/CoreServices/. That allowed the install to start. Unfortunately it seems the installer is setup to install that at the same time. I renamed the file back before the restart and it complained on restart that the server install wasn't found.
    So I thought I would try downloading it on another computer with Lion. That didn't work either. As soon as it finished download it installed and deleted the installer.
    What a pain.
    If you can start from scratch, you should be able to rename the file, do the Lion install then after the Lion install rename it back. Then do the server install. I'm not sure what that will do to existing server configs though. There must be some reason Apple set up the Lion installer this way.
    Oh, now I can't reboot into my existing OS. It keeps rebooting into the installer. Tried the option key and both options are named something like base os. Neither boots my existing Snow Leopard. Gonna have to get an external DVD drive and install from scratch I think. Luckily this is a new server not in production, so not a big deal. I hope people with production machines read the boards and tread carefully.

  • HT1386 I am getting the message waiting for changes to be applied on my IPhone 4

    I try to sync my I Tunes with my I phone 4 and I keep getting the message waiting for changes to be applied.
    What do I need to do to correct this?

    If you right click on the iPhone's icon on the left of the iTunes display, you should be able to find an option to eject your iPhone.  Then connect it and start the sync again.

  • If I click 'clear now' in 'offline storage', do I need to wait for an acknowledgement that it has cleared or does it clear instantly?

    Lately, Firefox will not let me reply, forward, or open 'action' when in AOL mail. AOL works fine on Safari. Do I need to clear cache? If so, do I need to wait for an acknowledgment that the cache has cleared before moving from that screen?

    You do not get any acknowledgment if you click Clear Now to clear the cache. It will be done and shouldn't take much time. You can check the about:cache page via the location bar to see if it has worked if you want to be sure.

  • Trying to transfer purchases from my 3gs onto a new PC (Vista).  Keep getting the message "Waiting for changes to be applied".  HELP!

    Using the latest version of iTunes and iOS5 on my iPhone.  Backup of the iphone seems to work fine.  My old PC died and I want to transfer my apps to my new PC.  But when I start Transfer purchases from my iPhone, it just keeps giving the message "Waiting for changes to be applied" and doesn't do anything.  I'm getting worried as I have an iPhone 4s coming and I want to move my 3gs stuff over to my new phone.  Anyone know how to fix this?

    Had the same thing happen to me a few weeks back when I switched computers and migrated.  Here's what worked on my iMac, so maybe it'll work on your iPad, too.  Go to User(your home folder)/Music.  Select/highlight your "Music" folder.  Then do Command-I ("Get Info" from the File menu), click on the padlock icon in the lower right of the new window.  Enter your user password.  Click on your username just above the now-open padlock.  Select "Read & Write" if it's on "Read Only," "Write Only," or "No Access."  Now having your user account with "Read & Write" privileges (it may have been this way already; still do this next step), click on the gear on the bottom-center of that window.  Click on "Apply to all enclosed items."  When the pop-up says "Are you sure?" (or the equivalent), say "yes."  This will grant access privileges to your user account for all the music files inside your music folder--all your iTunes stuff included).  Then you should be good to go.

  • HT1386 I SUDDENLY GET THE MESSAGE "WAITING FOR SYNC TO START" AND THEN SEVERAL MINUTES LATER A MESSAGE SAYING SYNC HAS FAILED BECUASE IT DIDN'T START!

    I SUDDENLY GET THE MESSAGE "WAITING FOR SYNC TO START" AND THEN SEVERAL MINUTES LATER A MESSAGE SAYING SYNC HAS FAILED BECAuSE IT DIDN'T START!

    Se if this previous discussion helps:
    Sync Session Failed to Start iTouch iOS5: Apple Support Communities

  • IPad message : "WAITING FOR ACTIVATION"

    got new iPad - did all the stuff - hooking it up to iTunes, synched it, played for 2 days and nos it gives me the funny message "WAITING FOR ACTIVATION" - how long does it take? already been over 1 hour and NOTHING
    What do I do?...

    Is it a 3G model? What does the screen look like? Is it showing the cable picture and the iTunes icon on the screen?
    Try plugging it to iTunes and see what iTunes does in there. If nothing works, put it in Recovery Mode and restore it by iTunes.
    Hope this helps,

  • It's inpossible to use imesage(( I don't no why, always I have message: waiting for activation

    I don't know what's happend but i can't use iMessage. Id correct but I have message: waiting for activation and my phone number is gray and unusable

    Are you using a supported carrier?

Maybe you are looking for

  • Visual Source Safe keeps checking out my .cs file associated with a report

    Hello there. I am new in this community and I need some help. I am part of a team that works with Crystal Reports under .NET framework and we are using Ms Visual Source Safe. Any time we open a solution (.sln file) all .cs files associated  with a Cr

  • Bluetooth inquiry makes phone hanging

    Hi, I got interested into bluetooth, after seeing some great applications, and started programming in J2ME. The following code searches for devices in the BCC (Bluetooth Control Center) with the retrieveDevices() method and returns the bluetoothaddre

  • Device Driver nowhere to be found - CNF9055

    I've been searching the internet for hours and there's no lead whatsover to the driver for the "Chicony Electronics Co., Ltd CNF9055 Toshiba Webcam (CNF9055)". UPDATE : Here's some info about my Laptop : - Model : Satellite L750 - Part Number : PSK2Y

  • Help. When you save the file, no "OAM", check the settings necessary.

    Help. When you save the file, no "OAM", check the settings necessary.

  • Infoview - problem viewing report

    In Infoview, in Document List, I highlight a Web Intelligence Report. I select Actions > Modify. I get a Warning - Security popup saying that Java_Report_Panel has potentially unsafe components. The popup asks if I want to block. I click Yes. The rep