JMS dynamic queue time out

I need to create a JMS dynamic queue and wait to listen in that queue for say 5 secs. Can anyone explain how this works. i.e I want to know what will happen after 5 secs. Will I receive a JMS Message object which is null or it will throw some exception. How do I know that it has timed out.I need to implement some logic based on the fact that the message has timed out.

Why can't use a timer whereby onTimeOut simply compare the present time and the time the listener starts listening to the dynamic queue. If this is above 5seconds then do what soever you intend doing
Ivo

Similar Messages

  • ORA-10173: Dynamic Sampling time-out error

    Hi ,
    I got the following error in Alert Log.
    ORA-10173: Dynamic Sampling time-out error
    can any one tell me on which situation this error occurs.
    Thanks

    I would suggest you get in touch with Oracle support and get an answer for this.
    There is no documentation or any sort of information in Metalink either for this error number.

  • RGS queue time-out

    hi guys,
    deployment is OCS 2007 r2 with latest CU, receptionist client is Attendant with latest patch (March 2011).
    I've created test user and assigned to test RGS.
    Its Group consist of this test user only (define custom group of agents),
    policies are set to Informal, agent alert time 15s, routing method Parallel.
    Queue consists of only this group, Time Out is set to 20s, Forward to SIP URI. No overflow.
    When the test RGS is called (testing internally, from Communicator), call toast appears on agent's Attendant almost instantly.
    I expected the call to be forwarded after 20s (time out defined), but it's fwded after around 30s.
    Why is that?
    When I had time-out set to 20s, and agent alert time also for 20s, call was forwarded after 40s!
    Can you explain how this suppose to work, I can't figure out logic in this.
    When I open help during RGS configuration, it states following:
    Agent alert time (seconds)
    Specifies how long to ring an agent before offering the call to the next available agent.
    Note:
    If the group is configured for parallel routing, the call will be offered to the next available agent in the next group in the queue (that is, if there is another group assigned to the queue) if the agent does not accept the call in the specified time period.
    On the Time Out tab, you can send the caller to another destination if the system cannot connect the caller to an available agent in the specified time period.
    Time out period (seconds)
    Specifies the period of time that callers can stay on hold before they are forwarded to another destination.

    The response group service can be a little quirky and I always find those timeouts are applied inaccurately.
    For Parallel routing timeout and agent alert should be the same. For other routing methods the agent alert time is the time to ring a agent before trying the next. I have also noted that if you have serial routing, 4 agents with a timeout of 25 seconds and
    an agent alert time of 10 seconds, all 3 agents will still ring for the full 10 seconds, the 4th agent will not ring at all.
    Not exactly an answer not I hope it helps none the less.
    Andrew Morpeth
    Lync Server Specialist - Auckland, NZ
    Check out my blog

  • List of Values (dynamic parameter) times out once and then works.

    Hello.  First time posting here.  I'm having a strange (yet very predictable) issue with Crystals Reports List of Values.  The List of Values is used on a dynamic cascading prompt and is published to the BO XI R2 repository.  The prompt/list works fine when using Crystal Reports thick client, but when using the Crystal Reports viewer from InfoView the following happens everytime:
    1.  Any Report that uses the Parameter/LOV is launched.
    2.  After about 1-2 minutes, the viewer returns a "Timeout" error message.
    3.  The report is launched a 2nd time.
    4.  The parameters/LOVs display (takes about 8 seconds) and the report runs fine.
    Then anytime a report is run within a certain period of time it works ok.  But if no one runs a report for an extended period of time (i'm not sure how long, but it's on the order of maybe 30 mins.. to an hour), then it starts all over again.  In addition, if I restart the services/server this same thing will immediately occur.  (time out once, but work after that for a period of time).
    I initially did not schedule the LOV to get generated on the server and left it so that it's done in real-time when the report ran.  But then when I ran into this error, I tried scheduling it every 10 minutes or so, but the error continues to happen.
    I also restarted the server/etc to no avail. 
    I saw another post on here that was kind of similar and that suggested that starting the LOV services as a domain user (that had admin rights on the BO server) helped him.  I tried this as well and restarted everything but that didn't fix my issue.
    Any help would be greatly appreciated!
    Scott

    Just wanted to update this.
    Because I use Business Objects OEM, I didn't have direct support with SAP/Business Objects.  However, because of this issue (and other issues) we purchased Business Objects Edge 3.0.
    After getting BOE 3 installed/configured, I migrated those reports and underlying Business Views over.
    And guess what?   The problem still occurred on the new platform.
    I then created a support incident and the person that initially tried to help me couldn't figure out what was going on.
    However, during that time, I did try re-creating the report using a newer version of Crystal (Crystal 2008) and the problem went away.  (note, I didn't recreate the business views.. just the reports).
    So bottom line:
    I created all reports from scratch instead of using the reports that I migrated from BO XI R2/CR XI and no longer had the problem.
    The techs never figured out the exact cause of the issue.
    So far, my experience with their support has been the same on all incidents.  They don't seem to be trained (at least at the 1st level) for actually using the debug/logs/etc to help quickly pinpoint/analyze issues.  They do basically like I do (the end user) and smartly poke around and do trail/error.  I have yet to get a support tech that knew the exact nature of my issue and could solve it without this kind of trial/error approach.

  • Issues in TIME OUT for Dynamic Queues- Using  IBM MQ Client

    Hi
    I have an issue with Dynamic queues. I am using IBM websphere as my Mesaging server and IBM MQ client. I need to send a request to a static queue and then wait for a response for a specified duration(in my case it is 100 millisecs) in the corresponding dynamic queue.But what I found out that in some cases, I got response even after 100 ms !!!! Here's my code. Is there anything wrong going on somewhere???
    com.ibm.mq.jms.MQTemporaryQueue replyToQueue = com.ibm.mq.jms.MQTemporaryQueue)queueSession.createTemporaryQueue();
    replyToQueue.setTargetClient(JMSC.MQJMS_CLIENT_JMS_COMPLIANT);
    requestMsg.setJMSReplyTo(replyToQueue);
    long t1 = System.currentTimeMillis();
    queueSender.send(requestMsg);
    queueReceiver = queueSession.createReceiver(replyToQueue);
    queueConnection.start();
    m = queueReceiver.receive(100);
    long t2 = System.currentTimeMillis();
    if(m != null){
    System.out.println("Response Time: " + (t2 - t1) + " ms");}
    I have left out the queueSession and queueSender piece of code here.
    Anyways, I found 1 response in 122 ms and another in 128 ms. Can anyone throw some light as to why and how this is happening?

    Don't run from the client ... run from the server
    or
    if running from a client use the built-in DBMS_DATAPUMP package's API.
    http://www.morganslibrary.org/reference/pkgs/dbms_datapump.html

  • Jms Adapter invoke activity Reply Time out

    I am working on dynamic routing using JMS adapter. i am able to set the Destination Queue and Reply queue as part of Invoke activity properties.
    Now i want to set the reply time out parameter as same. I am able to set replyTimeout in .JCA file, But i want to set this value dynamically.
    Can you please help on this.

    I am working on dynamic routing using JMS adapter. i am able to set the Destination Queue and Reply queue as part of Invoke activity properties.
    Now i want to set the reply time out parameter as same. I am able to set replyTimeout in .JCA file, But i want to set this value dynamically.
    Can you please help on this.

  • How to create and use dynamic queue in JMS

    Plz tell me how to create and use a dynamic queue in jms and can reciever file lookup it as it lookup any server configurred queue(written in the server).

    Hi,
    We can use Azure File services to do this, for more information, please have a look at this article:
    http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx. The Azure File service exposes file shares using the standard SMB 2.1 protocol. Applications running in Azure can now easily share files between
    VMs using standard and familiar file system APIs like ReadFile and WriteFile.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Help on Dynamic queue name in JMS Adapter

    Hi Experts,
      Could you please explain how to configure dynamic queue name in JMS Adapter.
    My requirement is i would have to add the date and time to JMS Queue Name in receiver JMS Adapter.
    Thanks in Advance
    Chilla

    hi,
    as it's not in Adapter-Specific Message Properties
    http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
    looks like you cannot do it with jms adapter in standard
    use proxy or your own adapter instead
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Dynamic queue name with JMS Queue XML?

    Hi,
    Is it possible to use dynamic queue name with JMS Queue XML?
    I tried using a variable in the JNDI URL, and supply the value in a package. I specified the following in the JNDI URL in the Topology:
    e.g.
    <JMS_RESOURCE>?d=<DTD_FILE>&s=<SCHEMA>&JMS_DESTINATION=#PROJECT_NAME.dest_var
    I declared and set the variable in a package, then tried to load data from the above data server to database. But executing this package gave me the following error:
    7000 : null : java.sql.SQLException: javax.jms.JMSException: Cannot find the target in JNDI (#PROJECT_NAME.dest_var)
    java.sql.SQLException: javax.jms.JMSException: Cannot find the target in JNDI (#PROJECT_NAME.dest_var)
         at com.sunopsis.jdbc.driver.bg.executeQuery(bg.java)
         at com.sunopsis.jdbc.driver.bh.executeQuery(bh.java)
         at com.sunopsis.jdbc.driver.l.f(l.java)
         at com.sunopsis.jdbc.driver.l.executeUpdate(l.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execSrcOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Am I doing it wrongly?
    Thanks!

    hi,
    as it's not in Adapter-Specific Message Properties
    http://help.sap.com/saphelp_nw04/helpdata/en/10/b1b4c8575a6e47954ad63438d303e4/content.htm
    looks like you cannot do it with jms adapter in standard
    use proxy or your own adapter instead
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Queue getting time out error

    Hello ,
    We have a problem with q's getting error time out.
    Oue Scenerio is SAP AR - PI--SAP FCSM
    The messages are reaching PI. However when PI sends the message back to SAP, the queues were set to run as dialog (D/A) mode, hence the messages were timing out after the dialog process time limit was reached. So we changed the PI queues to run in background. After that the job completes in 0 seconds and nothing gets transferred through PI to FSCM.
    Can anyone help me in this problem or provide some pointers how to solve this.
    Regards,
    Vikrant

    are you able to see the successful status in PI (message monitor/CC monitor)...
    there must be some exception fired ,you put a break point in the receiver prog. at start and check where is the problem.
    give details for further assitance

  • Dynamic Queue names at JMS receiver

    HI All,
                I have a scenario where sender is an RFC and receiver is via JMS  and also get a reply back . JMS is asynchonous but as suggested in other threads it is possible to capture the response by setting some Adapter specific parameters.
                But my problem is the queue name for the response is not constant and it varies from request to request for the response. I have no clue how to achieve this , I tried searching some threads but couldn't come to a conclusion.
                Possibility of dynamic MQ queue selection in one receiver JMS channel
                help on Dynamic queue name in JMS Adapter
    Has anyone come across such a situation ? Please suggest.
    Also In one of threads it was suggested to use Java Proxy?  Please suggest a way forward in this approach too
    Regards,
    Mohan.

    > please refer the link what you provided in section 2.8 mentioned JMS Receiver communication channel will give response back,but i never tried.
    Yest because this document is applicabe for a scenario where request msg will come form sender JMS to XI and then Response will be sent back again to JMS by using receiver JMS adapter. So senario is JMS request --- R3 (via XI) --- R3 response to JMS.
    But here case is different. e.g. RFC --> PI --> JMS  and reply will get back from JMS  to RFC.  So definetly in this case response will come from sender JMS and not from receiver JMS.
    Read sec 2.8 throughly, you will come to know how to set the queue names dynamically for RECEIVER JMS Adapter.
    Regards,
    Sarvesh

  • [svn] 2692: Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out .

    Revision: 2692
    Author: [email protected]
    Date: 2008-07-31 13:05:35 -0700 (Thu, 31 Jul 2008)
    Log Message:
    Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: Fixed a memory leak with JMS adapter. Also a minor tweak to QA build file to not to start the server if the server is already running.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-227
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/messaging/adapters/J MSAdapter.java
    blazeds/branches/3.0.x/qa/build.xml

    Revision: 2692
    Author: [email protected]
    Date: 2008-07-31 13:05:35 -0700 (Thu, 31 Jul 2008)
    Log Message:
    Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: Fixed a memory leak with JMS adapter. Also a minor tweak to QA build file to not to start the server if the server is already running.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-227
    Modified Paths:
    blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/messaging/adapters/J MSAdapter.java
    blazeds/branches/3.0.x/qa/build.xml

  • JMS time-out

    Hi, could anyone tell me what exactly means time-out for JMS? Does JMS has time-out concept? If any, what does it time out, session or connection?
    Thanks

    Hi,
    JMS Timeout has nothing to do with Session Timeout or connection timeout.Concept is same.
    Application server waits till the message is delivered and within some time if it doen't get the response, it times out.
    I hope u understood this.

  • Dequeue element times out even when queue element has new data

    Hi,
    I am using a producer/consumer set up and I am only getting one-iteration from my consumer loop.  I have probed the cluster wire that feeds the enqueue element of the producer and there is a continuous data stream there.  I have a timeout wired to the dequeue element in the consumer loop and have tried different times from 1ms to 1000ms.  It is currently at 25ms.  There has to be something else that is causing this issue, but I am overlooking it.  
    I also tried adding an event handler that would detect a value change in the data.  That didn't do anything.  I have tried to restart my machine to no avail.  I am about to shut down and take the battery out of my laptop and reboot (the act of a man out of options).
    If anyone could help, I would be indebted. 
    P Gnu
    If you want to increase your success rate, double your failure rate.
    Solved!
    Go to Solution.
    Attachments:
    Dequeue Waiting.vi ‏139 KB

    Thanks Javed_H
    I thought that I tried that, but either I didn't or I did it while there was another bug.  At any rate, the time-out on the event handler did fix it.  I appreciate your help.
    The reason I am using an event handler rather than a local variable is because I have been told many, many times that the local variable is somewhat of a hack.  They gave me other reasons, although they escape me now.  I do recognize and agree, however, that the local variable would work.  I'm letting the design asthetics of others dictate my code.
    Thank you for your input,
    P Gnu
    If you want to increase your success rate, double your failure rate.

  • Circular Dynamic Queue

    I was wondering how to make a dynamic queue circular. I thought that maybe I should keep track of how many Nodes there are (by adding 1 to an int variable tracker initially at zero each time a Node is added) and then when it reaches the limit (chosen by user) it would add no more Nodes. Then, I though that to make it circular, then I should check for when the tracker has reached that limit, and instead of making the next Node variable in the last Node null, it should be simply the first Node. I know that what I have written is extremely confusing, but if you understand the concept of Nodes, queues, and what the heck I'm talking about, then at least explain what a circular queue should look like. Thanks.

    I was wondering how to make a dynamic queue circular.Why make it circular if it's dynamic? What you probably want is a FIFO (first-in-first-out) queue. One common implementations is to use a linked list. You add nodes at the end and remove them from the front. LinkedList even have methods for that.
    The other common implementation is a circular buffer. You use a static array with a fixed length. You keep two indexes. One is pointing at the first free position. It's where you add a node and increment the index. The other is pointing at the last element. It's where you remove a node and increment the index. When an index becomes larger than the array size it "wraps" to zero. That's why it's called circular.
    I've posted an implementation here,
    http://forum.java.sun.com/thread.jspa?forumID=256&threadID=477885

Maybe you are looking for

  • How do I use my Airport Express as my router's bridge to the Internet?

    Howdy! My apartment building recently got wifi.  I want to set up my own wifi network in my apartment so I can connect my MacBook Pro, a wireless printer, and another wifi enabled computer.  I want to be able to print wirelessly, and get on the Inter

  • Can't print or network

    Hi I have a G4 & G5 networked via ethernet, for some reason I can't print from any application on G4 or access the G5 and also can't open Adobe Photoshop or Bridge. Checked disk, repaired permissions but everything appears to be fine. I can still acc

  • White Balance Issue

    Aperture is not setting the white balance sliders in the proper place after importing images. The image displays properly, but when I move a slider the WB on the image shifts dramatically. I have to reset the adjustment to the default almost every ti

  • Who calls doget() method of servlet

    hello all, i have typical customized webserver. the problem i have with that is when i configure it with IP address and when i send a request through browser using HOST NAME ,its not recognizing. the same happens vice versa that is : set up host name

  • Program blocked in oci function

    Hello, When I read data from the database, everything works well. But when my program run some time, it blocked in oci function and can't work. Here is a stack from my code: GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free so