How to set delay between dequeue operation of an AQ adapter

Hi,
We have one urgent requirement in 11g.
We have some messages in DB for AQ queue and from composite, we want some delay between dequeuing of messages so as to avoid dequeing all the messages at one go. JCA Adapter wizard does not provide us any option for this.
We have logged an SR for this.
https://support.oracle.com/CSP/ui/flash.html#tab=Dashboard(page=Dashboard&id=gkpd5fj7()),(page=SRView&id=gkpd5mgo(&sr_row_id=3-1E8YP8B&sr_stmt=How%20to%20have%20some%20delay%20between%20the%20messages%20coming%20from%20ECX_OUTBOUND%20Queue%20by...&sr_number=3-3038364731))
SR has suggested us to use minimumDelayBetweenMessages property in composite.xml or to attach this property to adapter through em.
We tried to attach this property to adapter through em console
First We went to em console. Clicked on our composite from farm pane. Then clicked on Adapter under Services and Reference section of the composite page. Click on that Adapter and drill down to the properties tab.
Click on the watch icon to see all the listed properties. It does NOT contain any property minimumDelayBetweenMessages.
Even if we try to manually edit the text box and set some values, it gives error while updating value and changes are lost.
So this does not help.
Please suggest if there is some way to have a delay in dequeue opertion of AQ adapter. Any property in jca or composite.xml ?
This is very basic functionality and I assume some solution should be there.
Please suggest.
Thanks & Regards,
Parshant

Hi,
You can modify composite.xml to include this property.
Sample composite.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Generated by Oracle SOA Modeler version 1.0 at [12/29/10 4:34 PM]. -->
<composite name="NIOSocketRequestRepply"
revision="1.0"
label="2010-12-29_16-34-44_099"
mode="active"
state="on"
xmlns="http://xmlns.oracle.com/sca/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:orawsp="http://schemas.oracle.com/ws/2006/01/policy"
xmlns:ui="http://xmlns.oracle.com/soa/designer/">
<import namespace="http://xmlns.oracle.com/pcbpel/adapter/socket/SoaApplication/NIOSocketRequestRepply/inboundRequestReplyService"
location="inboundRequestReplyService.wsdl" importType="wsdl"/>
<service name="inboundRequestReplyService"
ui:wsdlLocation="inboundRequestReplyService.wsdl">
<interface.wsdl interface="http://xmlns.oracle.com/pcbpel/adapter/socket/SoaApplication/NIOSocketRequestRepply/inboundRequestReplyService#wsdl.interface(InboundRequestReply_ptt)"/>
<binding.jca config="inboundRequestReplyService_tcp.jca"/>
*<property name="minimumDelayBetweenMessages">10000</property>*
</service>
<component name="NIOSocketRequestReplyBPELProcess" version="1.1">
<implementation.bpel src="NIOSocketRequestReplyBPELProcess.bpel"/>
</component>
<wire>
<source.uri>inboundRequestReplyService</source.uri>
<target.uri>NIOSocketRequestReplyBPELProcess/inboundRequestReplyService</target.uri>
</wire>
</composite>
Let me know, if this works for you.
thanks,
Deepak

Similar Messages

  • How to set delay time in tooltiptext

    Hai,
    I'm developing desktop application by using SWINGs in that app there in some text fields for that i have written mouseEntered method.
    in that method i used tooltiptext. It working properly. I need it to display message upto mouseout from text field.
    so any one could please help me how to set delay time for the tooltiptext.

    Read the API for avax.swing.ToolTipManager. Also, you don't need to use a MouseListener, just call setToolTipText or override getToolTipText.
    db

  • How to set space between the fields in SearchPG- Display issue

    Hi Friends
    I Have created a searchPG with a QueryRN , In my searchPG i have some display issue after running the page its looks like this
    For Example assue its a page with 3 field and one table region
    Employee no
    Employee name
    Phone no
    ResulttableBut i want my searchPG should hav some space between two field as shown below
    Employee no
    Employee name
    Phone no
    ResulttablePlease adviice me
    I appreciate all ur advice
    Thanks
    A.T

    Hi Peddi
    In my structure pannel I have simpleSearchPanel below that only i have the two lov fields ex: emp_no and emp_name . how to set the spacer between this From which Region where can find the spacer bean what proerty do i need to set
    Thanks
    AT

  • [fluxbox] how to set space between windows?

    hii,
    question like in subject: how can i set space between windows ?
    i launch 1 terminal window, and when i launch second window, this window is to stick to first...
    how can i set e.g. 50 px gaps between windows ?
    regards le

    hii djszapi ,
    thx for helping, but it not that what i wont
    this is my screen-shoot:
    http://img156.imageshack.us/img156/3511 … 0x800s.png
    i continuing looking for it
    regards le
    btw. hey djszapi,  nice avatar, can i use it ?
    Last edited by le1um (2009-09-06 20:41:13)

  • How to set fetchsize of sql Query when using Database Adapter.

    Hi All,
    I am using DatabaseAdapter to connect to database and retriving huge amount of data.For improvement in the performance I want to set the "fetchsize" of sql query. I know fetchsize can be preset in Java using Jdbc 2.0 API.Please let me know how to set this value in BPEL when using DBAdapter?
    Thanks
    Chandra

    I talked to the developer of the db adapter - and he told me this feature will be available in BPEL PM 10.1.3 (which is supposed to be production later this year, and a public beta soon). If this is an emergency I would recommend going throug Oracle support and have them file an enhancement for 10.1.2.0.2
    hth clemens

  • How to set connection between oracle forms and DB?

    I have installed win xp,
    oracle database 10g in c drive ,
    oracle forms and reports 10g in d drive ,
    how do i set the connection between forms and DB ?
    i know its an old question but i am very new to this !
    thanks in advance.

    You didn't mention the versions or whether you are using Developer Suite or Application Server. I guess it really doesn't matter in this case, but please provide complete information in the future.
    In order to connect the F/R home to a db you will need to make the appropriate configuration entries in tnsnames.ora found in the F/R home (\NETWORK\ADMIN). The entry you add will be similar to the one found in the tnsnames.ora for the db which is found in a similar directory in the db home. The entry will look something like this:
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myMachine)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = myMachine)
      )

  • Pages-how to set spacing between columns

    There used to be a spacing option between columns in Pages.  How does one change that spacing now?

    In Pages v5(.2), the column and gutter settings are located on the Format > Layout panel. The Gutter setting can be changed by double-clicking on its numeric value. If you have disabled the Equal column width check box, you can also directly change each Column width as you have the Gutter. Revealing the rulers from the View menu can improve the multicolumn layout process, as column indicators appear in the top ruler.

  • How to set Priority of JMS message in the Receiver adapter

    Hi,
    How can I set the priority of message going to MQ in the receiver JMS adapter. I tried to set a value in the <b>JMS message Priroty</b> field. But it is not working.
    In the receiving  queue manager the default priority of the queue which receives data is set to 0.
    Can anyone suggest how to get this done.
    Thanks in Advance
    Abinash

    Hi Ravi,
    If I am not wrong You are referring to article <b>Queues for Prioritized Message</b>. But this is about how to Prioritize message inside XI.
    What I am intresetd in is to set a message priority (for example "2")for the message going to MQ. That is when the message reached the detination queue the priority of this message should be 2 in the queue.
    Thanks
    Abinash

  • How to set the tables parameter to a BAPI using adaptive RFC model

    Hi,
    I have a BAPI ZBAPI that has a tables parameter ZPernr of type ZTable with two elements pernr and name.
    I used adaptive RFC model and created model classes for the BAPI.
    My question how do i set list of pernr and name to the tables parameter in the webdynpro for java.
    I have the following methods available
    ZBAPI input = new ZBAPI();
    1.ZTable table = new ZTable();
    table.setPernr(pernr);
    table.setname(name);
    input.addZPernr(table);
    how do i set the table parameter for multiple pernr and name
    2.
    add all the pernr and name to list and set that list to input in the following way
    input.setZPernr(list) and list of typecom.sap.aii.proxy.framework.core. AbstractList
    out of two methods mentioned which one is correct.
    Please let me know the solution
    Thanks
    Bala Duvvuri

    Hi Bala,
                In your code:
    List pernrList = new ArrayList();
    pernrList  should be declared as the  type of class HROBJECT   ( The structure name in the model  e.g. the node PERFWARN type is Zhrecmfm_002_Perfrat_Warning_Input )
    Try this:
    HROBJECT  pernrList = new HROBJECT();
    pernrList.setPernr(pernr);
    input.setPernr_List(pernrList);
    // call BAPI execute method
    If you want to pass list of pernrs, you can pass in alternate way
    IPrivate<viewname>.I<nodeame>Node prNode = wdContext.node<node>();
    IPrivate<viewname>.I<nodeame>Element prEle;
    for (int i = 0; i < table.size(); i++) {
    HROBJECT  pernrList = new HROBJECT();
    pernrList.setPernr(pernr); // Set the pernr from current record
    prEle = prNode.create<nodeame>Element(pernrList);
    prNode.addElement(prEle);     
    // call BAPI execute method
    Once I execute the BAPI how do i iterate thru second table parameter PERNR_PERFRAT to get pernr and performance rating text
    Say your node name is  PERNR_PERFRAT
    for (int i = 0; i < wdContext.nodePERNR_PERFRAT().size(); i++) {
    wdContext.nodePERNR_PERFRAT().getPERNR_PERFRATElementAt(i).getPernr();
    wdContext.nodePERNR_PERFRAT().getPERNR_PERFRATElementAt(i).getPerfrat();
    Regards,
    Siva

  • How to set the value of MaxRow Property of DB Adapter 11g dynamically

    I have the following requirement:-
    i am using DB Adapter to connect with MsSQL server for fetching the records from the table by using simple Select Query in my DB adapter.
    1. Receive request from Web Service Client number of records as input to fetch records form MsSQL Server.
    2. Return the result set to the service consumer
    So, here i m using MaxRow Property of Database Adapter for the number of records to be returned. But the problem is that how i can set the value to the MaxRow Property of DB Adapter dynamically from the value received as input.
    If you have any other idea to return the records dynamically from MsSQL server .Please help me.

    If you are using the DB Adapter as a reference and as you said, you are using custom SQL i guess...
    you can use the sql like...
    select top 1 * from tablename, this will result only 1 row from database(top record)...
    or select top 5 percent * from tablename, if the rows in the database are 100, then it will return the top 5 records in the database...
    check the exact syntax of top command with sql server...but using top keyword should solve your purpose to limit the number of records....
    Hope this helps...
    Thanks,
    N

  • How to set HTTP header field "cookie" with http receiver adapter?

    Hi,
    I am using http receiver adapter (not axis) in a scenario. I could not set a parameter with key cookie in http header. Is there some kind of restriction to set it? I am able to set others like connection and create custom fields using ASMA and dynamic key configuration via UDF on mapping.
    Could you please comment on, is cookie http parameter special or noneditable by PI's http adapter? I am looking for a solution without editing any abap code...
    Regards,

    I believe it is possible since axis adapter provides very same functionality. Let me summarize my scenario may be it helps:
    I am trying to call series of webservice lets say in a BPM. First service (login service) will provide me with a session id (in http header with key Set-Cookie) then I will call another service which has that session id in its http header with key cookie then I am going to logout. So I am testing the second part now, but it doest let me send cookie http header parameter.
    I hope I clarified a bit more my problem.
    Regards,

  • How to set DAY as a polling time in file adapter?

    Hi all,
    I have a scenario where I have to pick a file weekly once. But due to some maintanance activity XI system will be restarted on monthly basis. Due to that the weekly polling freuquency is not going to work properly.
    For example Wednesday I have to pick a file and thursday system is restarted so the polling frequency also will be restarted from thursday.
    Is there any way to get rid of this scenraio?
    Is it possible to configure any adapter modules for making the file pick only on WEDNESDAY?.
    Can anyone please help on this?
    Thanks,
    Jayanh

    Hi
    Hope it helps..
    Note:You will need to have the authorizations of the user group SAP_XI_ADMINISTRATOR with the role modify.
    Go to Runtime Workbench -> Component Monitoring -> Communication Channel Monitoring
    Locate the link Availability Time Planning on the top right corner of your Communication Channel Monitoring page.
    In your case, the requirement is to schedule the Sender file adapter daily once at 8:00 at morming.
    In Availability Time Planning, choose the Availability time as daily and say create.
    Provide the details like the time 12:00
    Then select the communication channel , goto the Communication Channels tab and filter and add the respective channel (File Sender).
    Once all the above has been done 'Save' the changes.
    For more
    /people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-
    /people/alexander.bundschuh/blog/2006/01/04/scheduling-messages-in-sap-xi
    Thanks

  • Set delay for process in process chain (BI7)

    Hi gurus.
    Can anybody advice me on how to set delay for a process in process chain in BI7
    Thanks in advance

    Hi,
    If you right-click on a process in the Process Chain, there should be an option called Debug Loop. Here you can enter the number of seconds to delay a process.
    The only difference between 3.5 and 7.0 is that Option Waiting Time in context menu of "any" process is replaced by Debug Loop.Here you can enter the # of seconds for which you want your process to be delayed.
    See below:
    Re: Start a Process Chain after every 15 mins
    Hope this helps.
    Regards
    CSM Reddy

  • How can I set a delay between the measuremen​t of different channels..​.?

    Hello everyone,
    I am using Labview 8.0, and a PCI 6221 card. (windows XP).
    I am using the 8 AI of the card to measure 8 Voltages (diff. mode).
    The problem I have is that I get an offset except on the first channel I measure. If I set the DAQ assistant like this : AI0;AI1;AI1. This is what I measure : 0.320V;0.1695V;0.168V
     I only get the offset  with the first AI1 and not the second AI1 (0.168 is the correct value). I suppose the multiplexer hasn't got the time to change impedance when changing from AI0 to AI1.
    I have attached a simplified version of my program where I am measuring 3 channels, and generating a square wave analog output.
    My idea is to introduce a delay between the change of channels....  Is that a good idea...? and I am sure there is a very simple way to do this based on my program, but I don't know how. How long should the delay be?  Or any other idea...?
    Thanks for your help,
    Marc
    Attachments:
    forum.vi ‏71 KB

    If I choose just one channel ( AI0, AI, AI2,....or AI7) I have no offset. The offset only occurs when I set more than one channel to be measured ( but the first channel in the order of reading is always fine what ever it is). I have explained my problem in a previous post :
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=257677&query.id=32291#M257677
    I have some noise on my measures (roughly +/5 mV), so for the moment I am taking 1000 samples every 1ms on each channel and making an average of the 1000 samples. 
    I will try your solution : taking a look at the first points of my measures to see if the offset goes away quickly or not. However since I have been  making an average on 1000 points at 1Khz, if I get a 2mV offset (after making the average), it means there are many points conerned by the offset.... I will see that anyway when looking at the 1000pts.
    I don't have much experince in this, but I am surprised I have to deal with this kind of multiplex problem on a NI card. What do you think about it...?  Does it surprise you...? What could I be doing wrong ?
    Thanks a lot for your help anyway 
    Marc

  • How to set the number of elements dequeued?

    Hello All,
    I am relatively new to LabView. I use LabView 8.2 to detect Joystick movement using a set voltage threshold. Totally, I have 6 channels of analog input. The sampling rate is 2 Kilo Hertz with continuous sampling mode (buffer size set to 10 Kilo Samples). I show a visual stimulus on a computer monitor. Within  3 seconds from stimulus onset, the subject has to press the joystick. So I use a while loop that runs until the subject moves the joystick in any direction as detected by crossing of voltage threshold. The while loop was intended to run for a max of 3 sec if joystick was not moved. My intention while using the vi (see below) was to continuously monitor the voltage signal by means of removing voltage data points from the queue by the labview function/vi - "dequeue element". When I dequeue from inside the loop, the dequeue function removes about 100 msec worth of voltage data points ( = 198-201 points; sampling rate -2Khz) from each of the six channels. This creates problem for me because a single dequeue operation takes 40 to 85 msec during which the loop cannot be stopped. This results in miscalculation of the actual time when the joystick was moved.
    Is there a way to set how many data points the dequeue function removes? My goal is to remove about 1-2 msec worth of data points so that the loop can exit within under 5msec of the joystick movement.
    I have attached the screen shots of the subvi's I am using.
    Acquire Response.jpg - the while loop that has the subvi: Access Analog Data Queue
    Access Analog Data Queue.jpg - front panel of the subvi that has the 'dequeue element' function.
    Remove Element.jpg - a case of Access Analog Data Queue.vi showing the 'dequeue element' function
    Sorry for the long message. Any help would be greatly appreciated.
    Thanks
    Mani
    Attachments:
    Remove Element2.jpg ‏135 KB
    Acquire Response1.jpg ‏266 KB
    Remove Element1.jpg ‏135 KB

    Hello Lynn and tst,
    Thanks for your suggestions. I have attached a screen shot of a vi that has the enqueue function. As Lynn pointed out, it was the enqueueing size that was reflected in the size of the dequeueing. I tried various ways to control the enqueue element size in order to control the dequeue element size. Many of my tricks failed. I had set the data acquisition to be continuous at 2kHz with 10Ks buffer size. You may want to look at the attached image of the subvi "Analog Acquisition" while I explain my attempts. The first thing that I noticed was the 'dt' value in the input node of the timed loop which had been set by somebody to 100. I thought that was part of the reason why my dequeue size was always worth 100msec data points. So I changed it to 1 msec. This definitely made a difference in the chunk size of the dequeued element. Now dequeueing removes only data points worth 1 - 5msec. I also noticed that my data reading timer loop(the while loop in "Analog Acquisition" picture) takes about 20 -25 msec instead of the set 1 msec.
    Why does the loop take so long? I have set the 'number of samples per channel' to -1 so that DAQmx read.vi (see it in Analog Acquisition subvi block diagram) can grab whatever data is available currently and put that into the queue. Can this be a reason why the loop takes more than 20 msec? I also tried to set the number of samples per channel to 2. I reasoned that with the sampling rate of 2KHz, 1ms loop should be able to pull 2data points and enqueue them. But it gave me the much-often-seen error code ":Error -200279 occurred at DAQmx Read (Analog 1D Wfm NChan NSamp).vi:1->Timed structure(s): DAQ Loop". I tried various combinations of loop time and number of samples per channel. I get Error-200279 very often. Note that I have several state transitions and only in a couple of them during every cycle of state transitions, I remove elements and flush the data queue (one place where I remove elements is shown in my original message in the picture-'Acquire Response.jpg').
    How do I set the data acquisition loop to enqueue elements for exactly 1 msec or n msec so that I can control my dequeue size?
    Thanks a lot, I am getting really tired of fixing this problem. Please help.
    Mani
    Attachments:
    Analog Acquisition.jpg ‏363 KB

Maybe you are looking for

  • Remote ipad access

    Is there a way to control an ipad remotely similar to GoToMyPC? Our salesmen have ipads and we would like to be able to access the ipads, with their permission and while they are watching, to do some system maintenance. Is there a program where we ca

  • Safari 3.1. and Mac OSX 10.5.3

    Hi everybody, I accidentaly dumped Safari from my system because I never used it and I didn't like it very much. anyway, I am using Opera but to set Opera as my default Browser I need Safari to change this setting. So I downloaded the new 3.1. Safari

  • How to install the struts-el jar and tld file

    How can i install/configure the struts-el jar and struts-logic-el.tld. When I tried with the related sites, i couldn't get any jar files for struts-el tag. I got only 404 status error. From where and how to get the jar file and tld file for the strut

  • How to edit contact list in sim card?

    Could someone tell me how to edit contact list in the sim card? When you edit the contact list on the phone, sim card entries are not affected. Thanks and regards. tkp11

  • Can't drag and drop bookmarks in FF12

    I just upgraded to FF 12.0, and I find that I'm unable to drag and drop bookmarks in the "Show All Bookmarks" window. I used to be able to organize my bookmarks that way, order them, put in folders, etc. I can delete bookmarks, and I can even "copy"