Polling IP_QTAB

Hi All,
I understand polling IP_QTAB is not the right thing to do. But we have a business case where i need to keep looking in all the queues of the IP_QTAB (we have a few custom queues built).
Incase there are any messages in the queue/ table which are beyond a specified time limit, i need to report the message.
Also, I need to ensure that the messages are not removed from the queue, so cant use the AQ adapter (Dequeue) .
But, when I use the DB adapter, i cant see the "IP_QTAB" listed through the wizard. Checked the schema name and other stuff. But cant get this going. Any tips/ advise would be highly appreciated.
Sambhav.

You can use DBAdapter very well however I always prefer to do such monitoring through DB EM itself. Remember AQ$IP_QTAB is the correct name and it is a VIEW not a table. Use pure SQL option of DB Adapter.
Regards,
Anuj

Similar Messages

  • Solaris8 and 9 (possibly 7) /dev/poll driver bug report.

    Hello,
    I'd like to report a bug in the solaris 8 and 9 /dev/poll driver (poll(7d)).
    As i do not have a support account with sun or anything like that, there
    seems to be no other way to do that here (which is of course a very sad
    thing).
    Bug details:
    The /dev/poll device provides an ioctl-request (DP_ISPOLLED) for checking
    if a particular filedescriptor is currently in the set of monitored
    filedescriptors for that particular /dev/poll fd set (open /dev/poll fd).
    A quote from the documentation of the poll(7d) manual page taken from
    Solaris9:
    "DP_ISPOLLED ioctl allows you to query if a file descriptor is already in
    the monitored set represented by fd. The fd field of the pollfd structure
    indicates the file descriptor of interest. The DP_ISPOLLED ioctl returns 1
    if the file descriptor is in the set. The events field contains the
    currently polled events. The revents field contains 0. The ioctl returns 0
    if the file descriptor is not in the set. The pollfd structure pointed by
    pfd is not modified. The ioctl returns a -1 if the call fails."
    It says that when you query for an filedescriptor which is currently being
    monitored in the set, that it would return 1, and change the events field of
    the pollfd structure to the events it's currently monitoring that fd for.
    The revents field would be set to zero.
    However the only thing which actually happens here, is that FD_ISPOLLED
    returns 1 when the fd is in the set and 0 if not. When the fd is in the
    set, when FD_ISPOLLED returns 1, the events field remains unmodified, but
    the revents field gets changed.
    A small sample code to illustrate:
    #include <stdio.h>
    #include <unistd.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    #include <sys/devpoll.h>
    main() {
    struct pollfd a;
    int dp_fd = open("/dev/poll", O_WRONLY);
    a.fd = 0; /* stdin */
    a.events = POLLIN; /* we monitor for readability, POLLIN=1 */
    a.revents = 0;
    write(dp_fd, &a, sizeof(a));
    a.fd = 0;
    a.events = 34; /* filled in with bogus number to show malfunctioning */
    a.revents = 0;
    printf("DP_ISPOLLED returns: %d\n", ioctl(dp_fd, DP_ISPOLLED, &a));
    printf("a.fd=%d, a.events=%hd, a.revents=%hd\n", a.fd, a.events,
    a.revents);
    According to the documentation of /dev/poll and namely DP_ISPOLLED this
    program is supposed to print the following:
    DP_ISPOLLED returns: 1
    a.fd=0, a.events=1, a.revents=0
    However it prints the following:
    DP_ISPOLLED returns: 1
    a.fd=0, a.events=34, a.revents=1
    You can take any number instead of '34' and it will simply remain untouched
    after the DP_ISPOLLED ioctl-request.
    I hope it's clear now that the solaris8 and solaris9 (and probably solaris7
    with /dev/poll patch too) DP_ISPOLLED implementation is broken.
    This bug is also easily illustrated by looking at the solaris8 kernel sourcecode:
    <snippet osnet_volume/usr/src/uts/common/io/devpoll.c:dpioctl()>
    case DP_ISPOLLED:
    pollfd_t pollfd;
    polldat_t *pdp;
    if (pollfd.fd < 0) {
    mutex_exit(&pcp->pc_lock);
    break;
    pdp = pcache_lookup_fd(pcp, pollfd.fd);
    if ((pdp != NULL) && (pdp->pd_fd == pollfd.fd) &&
    (pdp->pd_fp != NULL)) {
    pollfd.revents = pdp->pd_events;
    if (copyout(&pollfd, (caddr_t)arg,
    sizeof(pollfd_t))) {
    mutex_exit(&pcp->pc_lock);
    DP_REFRELE(dpep);
    return (set_errno(EFAULT));
    *rvalp = 1;
    </snippet>
    its' clearly visible that the code writes the current monitored events to
    the revents field:
    'pollfd.revents = pdp->pd_events;'
    and that it doesnt set revents to zero.
    It's funny to see that this has been like this since Solaris8 (possibly 7). That means nobody ever used DP_ISPOLLED that way or people were simply to lazy to file a bug report.
    Another funny thing related to this. is that Hewlett-Packard did seem to know about this. Since HP-UX11i version 1.6 they also support /dev/poll. From their manual page i ll quote some sentences from their WARNING session:
    "The ioctl(DP_ISPOLLED) system call also returns its result in the revents member of the pollfd structure, in order to be compatible with the implementation of the /dev/poll driver by some other vendors."
    Hopefully this will get fixed.
    I also like to reexpress my very negative feelings towards the fact that you're not able to file bug reports when you do not have a support contract. Ridiculous.
    Thanks,
    bighawk

    Have I mentioned how much i love my playbook now Great job on os 2.0

  • Restricting polling in sender file adapter

    Hi friends,
    I have a requirement where I need to poll a file from an FTP server. But, if the file is being edited (some other application is writing to it) I need to avoid picking that file. Plz tell me how i can achieve this...waiting for ur replies.
    Regards,
      Shilpa

    Shilpa,
    Check out this sap note :
    [https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=821267|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=821267]
    File Locking / Incomplete Processing
    Q: I sometimes observe that files are processed only partially, i.e., only a fragment from the file's start is converted into an XI message. Nevertheless, the file is usually archived completely. Does the File Sender Adapter honor if another process has locked a file for exclusive use?
    A: Unfortunately, the J2EE 1.3 technology the File Adapter is built upon does not support file locking. This limitation affects the File Adapter's operation. Depending on whether the JRE implementation for the operating system under which the adapter runs uses mandatory file locking or advisory file locking, opening a file that is currently being written to by another process will fail or not.
    If opening the file fails, no problem exists and the adapter will try to open the file each poll interval until it succeeds.
    However, if opening the file is not prevented by the operating system, the adapter starts to process the file although it is still being modified. Since XI 3.0 SP11 / PI 7.0 there is a parameter named "Msecs to Wait Before Modification Check" in the advanced settings of the File Sender channel configuration to work around this issue. This setting causes the File Adapter to wait a certain time after reading, but before sending a file to the Adapter Engine. If the file has been modified (which is basically determined by comparing the size of the read data with the current file size of the input file) after the configured interval has elapsed, the adapter aborts the processing of the file and tries to process the file again after the retry interval has elapsed.
    If this option is not available for the settings you would like to use, the following algorithm (to be implemented in your application) may be used to ensure that the File Adapter only processes completely written files:
    Create the file using an extension, which does not get processed by the File Adapter, e.g., ".tmp"
    Write the file content
    Rename the file to its final name, so the File Adapter will notice its existence and pick it up
    Hope this will help.
    Thanks,
    Nilesh

  • Poll: Development in ABAP Objects / Webdynpro vs. classical Dynpro

    Hey there ABAP developers,
    I just want to ask if you can give me one or two minutes of your attention for two poll questions.
    At the moment I´m writing my master thesis about the development of a monitoring tool in ABAP. One of my bigger chapters is about the decision, which programming paradigm should be used for new development projects in SAP. And another important one is about WebDynpro vs. classical Dynpros.
    Because of the fact, that I can´t create any polls in here, I just started this discussion and hope for many replies .
    It would be very nice if some of you could give me an answer to the following questions (only 2 ), so that I can maybe use the result of this poll in my master thesis, if there are enough responses.
    1. What percentage of new development projects are you developing in ABAP Objects? (Not to be considered small reports that just runs for only one time)
         A. 0 %
         B. less than 25%
         C. 25% - 49%
         D. 50% - 75%
         E. more than 75%
    2. Which GUI technology do you prefer?
         A. Classical Dynpro
         B. WebDynpro
         C. Business Server Pages (BSP)
         D. others (please mention)
    I want to thank you in advance for answering the questions,
    Best regards,
    Christoph

    Hi,
    Present SAP Implementation projects are very rare, maximum projects are support and up gradations only .
    If they want Implement the  SAP  newly  , defiantly they should creating ABAP Objects.
    Why Because  ABAP Objects are Object Oriented Concepts,  so,  for  future reference and re usability..etc .
    Now Come to the First Quetion.
    if it is implementation project   ABAP Objects are   25% - 49%.
    if it is Support project ABAP Objects are   25%
    Now Come to the Second Quetion.
    Depend upon Reqmnt, but Most of the Applications are Webdynpro .  i.e 70%.
    Remaining 30% All ( BSP and GUI ....Etc..)
    This is my opinion.
    Sambaiah.Paidipelli.

  • Logical Delete in DB Polling - OSB

    Hello All,
    I have a question in polling. I have a logical delete column with Read value as 'P and unread value as 'N', Unlike BPEL, OSB's polling, does not make a record to 'P' until the process completes successfully. My DB polling adapter polls the same records while the previous instance is under processing or the previous instance ended in error. Is there a way to logically delete the record immediately once the record is read?
    To avoid this scenario, I added an error handler to make the record to 'E' if the instance encountered any error. By the time the error handler kicks in and updates the record, OSB polls the record a few times. I increased my polling frequency from 5 seconds to 30 seconds, but no luck. Any clue how to handle this scenario?
    Thanks,
    Dwarak

    Is there a way to logically delete the record immediately once the record is read?Dont do any logic in db adapter proxy. Instead make the proxy to just write to a jms queue and then have your processing logic in the jms proxy service which reads off the jms queue.

  • A better way to poll

    When my Start button is clicked it changes a member variable from false to true.
    Here is a simplified version of my code:
    public class gdvdhomevideo
       private boolean blnBegin;
       public static void main(String[] args)
          while(blnBegin == false){}
          //perform operations
       public void actionPerformed(ActionEvent e)
          String command = e.getActionCommand();
          if(command.equals("Start"))
             blnBegin = true;
    }So when the user clicks start it exits the while loop and the program starts performing other functions. The problem is that this approach is 100% CPU intensive and I know that there must be a better way?

    1) Code executed in the main() is NOT running on the event thread. Don't do any GUI code from the main thread... You know, stuff like showing windows, attaching event listeners etc.. You need to wrap all that stuff in a Runnable and pass that Runnable to SwingUtilities.invokeLater().
    2) Assuming the stuff you're doing in the main() is actually thread safe and doesn't touch the GUI, you can simply startup a new Thread and put your code in there. (see below)
    3) You class name is named badly. Please check out sun's java coding conventions. It is very nice to have coding conventions. Use them! ;-)
    4) if you want to setup your program as a loop rather than simply relying on user actions to fire events, then I'd suggest you use a timer that notifies on the event thread every X where X is a non-zero polling interval. I think there's a class is called SwingTimer that does this sort of thing for you.
    What you're attempting to do is non-trivial.. so.. ummm.. have fun..
    public class gdvdhomevideo
       private boolean blnBegin;
       public static void main(String[] args) throws Exception
            SwingUtilities.invokeLater( new Runnable() {
                  public void run() {
                       //setup stuff in here.
       public void actionPerformed(ActionEvent e)
          String command = e.getActionCommand();
          if(command.equals("Start"))
             new Thread(new Runnable() {
                public void run() {
                     //perform operations but don't touch the GUI.
              }.start();
    }

  • A Poll for A New BB10 feature(Z10) Come All!

    I have noticed in the pass couple weeks that the z10 virtual keyboard is awesome, but needs a 'GREAT' tweak.Do Not get me wrong the keyboard it one of the best, but the send button needs a new home.
    The SEND button needs to have two options in text messages; or an option somewhere that someone can change the place of the send button. I have noticed that many other people are feeling my pain. I almost wanted to switch back to my cheap androi** phone. I have sent countless messages that were not finished(quite embarrassing) to people. Some messages contained rather 'awkard'() spelling errors.
    More details:
    The send button is right under the backspace and very easy to hit. Even if the Next Update!!! to the phone lets the users choose to move the send button into the bar next to the smiles is better or even on the top bar.
    Anyways Onto the fact. I want you people to vote! I know for a fact that BB Dev's browse these forums.
    I cannot find a Poll making button so I am doing it the old fashioned way!
    I believe some people might like this but a majority of us have sent unfinished text messages. So an option to move the send button, or even just simply moving it would be nice.
    Poll: Have an option to change the location of the send button in text messages?
    Vote ->     Yes  
    Vote ->     No    
    This Poll will be counted every week. Unless a fellow awesome person would know of a Poll button on here?... ANYWAYS VOTE! LET THE DEV'S KNOW.

    Not a problem. Download MPEG Streamclip (it's free) and if you don't already have it on your Mac, you will also need the Apple QuickTime MPEG2 Playback Component (which you can download from Apple for $20).
    With them you can convert your video to DV or Apple Intermediate Codec for editing with FCE.
    Here are some simple instructions for settings to use in MPEG Streamclip.

  • Create survey/poll with text fields

    I want to create a survey in a meeting with text field type answers.  How would I do this?  I am using the hosted version of Connect and saw some reference to a Presenter add-in for PowerPoint, but don't seem have that.  We would like to have fields such as:
    Participant information (name, contact information
    Suggested future topics
    What should I use to do this since the Poll Pod obnly allows for multiple choice or multiple answer options and not key-in fields?
    Karl

    Adobe Presenter 7 is a product sold separately from Adobe Connect. Adobe Presenter can be purchased from many resellers.  It is a plug-in for MS Powerpoint and has the ability to upload many times of quizzes and polls in lots of types of formats.  You can download a 30 day trial from here:
    http://www.adobe.com/cfusion/tdrc/index.cfm?product=presenter&loc=en_us
    Adobe Presenter is only available for the Windows platform. MS Powerpoint for Mac does not allow third-party plug-ins like Presenter.

  • XI file adapter polling faster than poll interval

    Hi,
    We are facing a issue with the file adapter/authorization of the FTPUSER.
    We FTP a server and pick up a file from a particular folder.
    My polling interval is 2 minutes
    My retry interval is space.
    Processing mode : ARCHIVE
    We are archiving it on a Network attached server(NAS) mounted on our XI server.
    When XI polls for the first time it picks up the file but the sender file adapter shows following error in RWB.
    <b>2006-01-20 11:31:08 GMT: Error: Deleting of file 'ARUCSjnewb80.txt' failed - cannot proceed: FTPEx: ARUCSjnewb80.txt: Access is denied.</b>
    The picked up file gets processed but at the same time just within 12-13 seconds of the first poll XI picks up the file second time and then in another 3 seconds for the third time.
    After this the file gets archived thrice in the archive directory and then gets deleted from the source directory.
    We are unable to understand why XI is polling  again  after few seconds of the first poll.(As per my understanding it should have polled after 2 minutes).
    I am able to delete the file manually from the Ftp server.
    Could anyone give a pointer towards what we are missing or what probable reasons could be?
    authorization issue?( XIADM /ftpuser have full authorization)
    Some adapter setting?
    Regards,
    Sulakshana

    Hi,
    Could you let me know how frequent the file gets loaded to the FTP server.
    Is your file size too large to get loaded.. If so try to increase the polling interval. Also make sure that you have provided the polling time in sec and not in minutes...i.e for 2 minutes it should have been specified as 120 sec as polling interval
    Regards,
    Nithiyanandam

  • Problem with af:poll in IE

    In my searchpage, i've <af:poll> which will show the timer once the user selects some rows from resultstable and clicks "submit". The timer will run till some processing is done . Intermittently, i face the foll issue in IE but not in Mozilla.Sometimes,the results table doesn't refresh and show the last executed search result. instead it shows the empty results table and i see a error icon in the bottom left portion of browser's status bar. This issue happens only in IE and that too only if i have af:poll. i'm pasting the code for searchpage jsp . Please
    help me out if you get any clue.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
    <%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
    <f:view>
    <afh:html>
    <afh:head title="Search and Add Entities">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <f:verbatim>
    <script type="text/javascript" >
    function deactivatePoll()
    if(self._pollManager)
    _pollManager.deactivateAll();
    </script>
    </f:verbatim>
    </afh:head>
    <afh:body inlineStyle="margin:0.0pt; padding:0.0pt;" onload="deactivatePoll();">
    <f:verbatim>
    <script type="text/javascript" >
    function reactivateProgressIndicators()
    if (self._pollManager)
    document.getElementById('panelHeader').style.display='';
    document.getElementById('searchRegion').style.display='none';
    document.getElementById('resultsRegion').style.display='none';
    _pollManager.reactivateAll();
    </script>
    </f:verbatim>
    <af:messages/>
    <af:form id="searchForm">
    <af:panelHeader id="panelHeader" inlineStyle="display:none">
    <af:objectSpacer height="50" />
    <af:progressIndicator id="progressIndicator"
    value="#{ProgressIndicatorBean}"
    partialTriggers="pollid" >
    <af:outputFormatted styleUsage="instruction"
    value="Adding Entities..."
    rendered="#{ProgressIndicatorBean.value == -1}"/>
    <af:outputFormatted styleUsage="instruction"
    value="#{ProgressIndicatorBean.value} of #{ProgressIndicatorBean.maximum} Completed"
    rendered="#{ProgressIndicatorBean.value > -1}"/>
    </af:progressIndicator>
    <af:poll id="pollid" interval="1000" />
    </af:panelHeader>
    <af:panelHeader text="Search and Select Entity" id="searchRegion"
    inlineStyle="background-color:#ebf0f5;margin:10.0pt;" >
    <af:panelBorder>
    <af:objectSpacer width="10" height="10"/>
    <f:facet name="end">
    <af:panelButtonBar>
    <af:commandButton text="Cancel" action="#{dialogbean.cancelDialog}"
    styleClass="AFbuttonEnabled" />
    <af:commandButton text="Submit" actionListener="#{dialogbean.submitDialog}" onclick="reactivateProgressIndicators();"
    styleClass="AFbuttonEnabled" id="submitBtn" />
    </af:panelButtonBar>
    </f:facet>
    </af:panelBorder>
    <af:objectSpacer width="10" height="10"/>
    <af:panelForm width="50%">
    <af:selectOneChoice value="#{dialogbean.application}"
    label="Product">
    <f:selectItems value="#{dialogbean.applicationsMap}"/>
    </af:selectOneChoice>
    <af:inputText value="#{dialogbean.entity}"
    label="Entity Name" id="entityName"
    binding="#{dialogbean.entityName}"
    >
    </af:inputText>
    <af:inputText value="#{dialogbean.description}"
    label="Description"
    >
    </af:inputText>
    <f:facet name="footer">
    <af:panelGroup layout="vertical">
    <af:panelButtonBar>
    <af:commandButton actionListener="#{dialogbean.doSearch}"
    text="Search" id="Search"
    styleClass="AFbuttonEnabled"
    >
    </af:commandButton>
    </af:panelButtonBar>
    </af:panelGroup>
    </f:facet>
    </af:panelForm>
    </af:panelHeader>
    <af:objectSpacer width="10" height="20"/>
    <af:panelHeader text="Results" id="resultsRegion"
    inlineStyle="background-color:#ebf0f5;margin:10.0pt;">
    <af:table value="#{dialogbean.tableModel}" var="row"
    width="80%" rows="10" banding="row" bandingInterval="1"
    emptyText="No items were found"
    binding="#{dialogbean.searchResultsTable}" id="resultsTable"
    selectionListener="#{dialogbean.selectionListener}"
    sortListener="#{dialogbean.sortListener}" >
    <f:facet name="selection">
    <af:tableSelectMany text="Select" autoSubmit="true" id="radio" />
    </f:facet>
    <af:column sortProperty="entityName" sortable="true"
    headerText="Entity name">
    <af:outputText value="#{row.entityName}"/>
    </af:column>
    <af:column sortProperty="entityDesc"
    headerText="Description">
    <af:outputText value="#{row.entityDesc}"/>
    </af:column>
    <af:column sortProperty="appName" sortable="true"
    headerText="Product">
    <af:outputText value="#{row.appName}"/>
    </af:column>
    <af:column sortProperty="entityType" sortable="true"
    headerText="Type">
    <af:outputText value="#{row.entityType}"/>
    </af:column>
    <af:column headerText="Related entities" formatType="icon">
    <af:commandLink rendered="#{row.selected}"
    action="#{dialogbean.showRelatedEntities}">
    <af:objectImage
    source="/images/viewrelatedassets_enabled.gif" align="middle"
    rendered="#{row.selected}"/>
    </af:commandLink>
    <af:objectImage
    source="/images/viewrelatedassets_disabled.gif" align="middle"
    rendered="#{not row.selected}"/>
    </af:column>
    </af:table>
    </af:panelHeader>
    </af:form>
    </afh:body>
    </afh:html>
    </f:view>
    Thanks,
    Senthil

    Hello Daniel,
    This is the Adobe Dreamweaver Developer's Toolbox forum, I think you are looking for the Spry forums.
    http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid=72&catid=602
    Shane

  • Use of current time for polling Database Adapter query

    I am writing a simple BPEL process with a Polling Database Adapter and a Recieve. The idea is that we are polling an XE database for any entries in a TRIP table which have an expiration date/time field that has passed.
    The Adapter was build using JDeveloper 10.1.3.2 (with Oracle Application Server patched to 10.1.3.3.0) as a "Poll for New Changed Records in a Table" Operation type with a STATUS field (0 for live, 1 for expired) as the Logical Delete Field.
    I was unable to find a way to generate a SELECT query expression with the wizard that would allow me to use current/system time as an attribute, so I finished the wizard and edited the Toplink Descriptor to use a custom SQL expression for the query. This resulted in the following code in the toplink_mappings.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)"
    xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <opm:name>ExpiredTripPoller</opm:name>
    <opm:class-mapping-descriptors>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>ExpiredTripPoller.Trip</opm:class>
    <opm:alias>Trip</opm:alias>
    <opm:primary-key>
    <opm:field table="TRIP" name="ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy">
    <opm:queries>
    <opm:query name="ExpiredTripPoller" xsi:type="toplink:read-all-query">
    <toplink:timeout>0</toplink:timeout>
    <toplink:call xsi:type="toplink:sql-call">
    <toplink:sql>SELECT ID, LPN, START_TIME, EXPIRY_TIME, STATUS FROM TRIP WHERE ((STATUS = '0') AND (EXPIRY_TIME < SYSDATE)) ORDER BY EXPIRY_TIME ASC</toplink:sql>
    </toplink:call>
    <toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
    <toplink:cache-usage>primary-key</toplink:cache-usage>
    <toplink:lock-mode>none</toplink:lock-mode>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </opm:query>
    <opm:query name="findAllTrip" xsi:type="toplink:read-all-query">
    <toplink:timeout>0</toplink:timeout>
    <toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
    <toplink:cache-usage>primary-key</toplink:cache-usage>
    <toplink:lock-mode>none</toplink:lock-mode>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </opm:query>
    </opm:queries>
    <toplink:does-exist-query xsi:type="toplink:does-exist-query">
    <toplink:existence-check>check-database</toplink:existence-check>
    </toplink:does-exist-query>
    <toplink:read-all-query xsi:type="toplink:read-all-query">
    <toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </toplink:read-all-query>
    </opm:querying>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>id</opm:attribute-name>
    <opm:field table="TRIP" name="ID" xsi:type="opm:column"/>
    <opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>lpn</opm:attribute-name>
    <opm:field table="TRIP" name="LPN" xsi:type="opm:column"/>
    <opm:attribute-classification>java.lang.String</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>startTime</opm:attribute-name>
    <opm:field table="TRIP" name="START_TIME" xsi:type="opm:column"/>
    <opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>expiryTime</opm:attribute-name>
    <opm:field table="TRIP" name="EXPIRY_TIME" xsi:type="opm:column"/>
    <opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>status</opm:attribute-name>
    <opm:field table="TRIP" name="STATUS" xsi:type="opm:column"/>
    <opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:caching>
    <toplink:cache-type>weak-reference</toplink:cache-type>
    <toplink:always-refresh>true</toplink:always-refresh>
    </toplink:caching>
    <toplink:remote-caching>
    <toplink:cache-type>weak-reference</toplink:cache-type>
    </toplink:remote-caching>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
    <toplink:tables>
    <toplink:table name="TRIP"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    </opm:class-mapping-descriptors>
    </toplink:object-persistence>
    To test I used the above custom SQL at the command line and it filtered the records by EXPIRY_TIME as expected.
    When deployed, the polling process updates the STATUS file dof table entries, but all entries with status 0 regardless of EXPIRY_DATE. My modification appears to be being ignored. I was unsure as to whether the QUERY was being determined in some other way so I modified the descriptor (with the toplink expression editor) to compare against a literal time value, producing the following modified toplink_mappings.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)"
    xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <opm:name>ExpiredTripPoller</opm:name>
    <opm:class-mapping-descriptors>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>ExpiredTripPoller.Trip</opm:class>
    <opm:alias>Trip</opm:alias>
    <opm:primary-key>
    <opm:field table="TRIP" name="ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy">
    <opm:queries>
    <opm:query name="ExpiredTripPoller" xsi:type="toplink:read-all-query">
    <opm:criteria operator="lessThan" xsi:type="toplink:relation-expression">
    <toplink:left name="expiryTime" xsi:type="toplink:query-key-expression">
    <toplink:base xsi:type="toplink:base-expression"/>
    </toplink:left>
    <toplink:right xsi:type="toplink:constant-expression">
    <toplink:value xsi:type="xsd:date">2007-07-30</toplink:value>
    </toplink:right>
    </opm:criteria>
    <toplink:timeout>0</toplink:timeout>
    <toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
    <toplink:cache-usage>primary-key</toplink:cache-usage>
    <toplink:lock-mode>none</toplink:lock-mode>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </opm:query>
    <opm:query name="findAllTrip" xsi:type="toplink:read-all-query">
    <toplink:timeout>0</toplink:timeout>
    <toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
    <toplink:cache-usage>primary-key</toplink:cache-usage>
    <toplink:lock-mode>none</toplink:lock-mode>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </opm:query>
    </opm:queries>
    <toplink:does-exist-query xsi:type="toplink:does-exist-query">
    <toplink:existence-check>check-database</toplink:existence-check>
    </toplink:does-exist-query>
    <toplink:read-all-query xsi:type="toplink:read-all-query">
    <toplink:reference-class>ExpiredTripPoller.Trip</toplink:reference-class>
    <toplink:container xsi:type="toplink:list-container-policy">
    <toplink:collection-type>java.util.Vector</toplink:collection-type>
    </toplink:container>
    </toplink:read-all-query>
    </opm:querying>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>id</opm:attribute-name>
    <opm:field table="TRIP" name="ID" xsi:type="opm:column"/>
    <opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>lpn</opm:attribute-name>
    <opm:field table="TRIP" name="LPN" xsi:type="opm:column"/>
    <opm:attribute-classification>java.lang.String</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>startTime</opm:attribute-name>
    <opm:field table="TRIP" name="START_TIME" xsi:type="opm:column"/>
    <opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>expiryTime</opm:attribute-name>
    <opm:field table="TRIP" name="EXPIRY_TIME" xsi:type="opm:column"/>
    <opm:attribute-classification>java.sql.Timestamp</opm:attribute-classification>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>status</opm:attribute-name>
    <opm:field table="TRIP" name="STATUS" xsi:type="opm:column"/>
    <opm:attribute-classification>java.math.BigDecimal</opm:attribute-classification>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:caching>
    <toplink:cache-type>weak-reference</toplink:cache-type>
    <toplink:always-refresh>true</toplink:always-refresh>
    </toplink:caching>
    <toplink:remote-caching>
    <toplink:cache-type>weak-reference</toplink:cache-type>
    </toplink:remote-caching>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
    <toplink:tables>
    <toplink:table name="TRIP"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    </opm:class-mapping-descriptors>
    </toplink:object-persistence>
    On deployment, this version of the BPEL process behaved as expected - only modifying the records with EXPIRY_TIME less thatn the literal time specified. (Also, I can't really pass in the time as a parameter as this is a polling model).
    Can anyone shed any light on what is happening or suggest how I might go about polling in the desired way?
    Cheers

    Please take a look at this article which states SYSDATE is not supported in a
    where clause.
    http://www.oracle.com/technology/pub/articles/bpel_cookbook/qualcomm-bpel.html
    Excerpt from the article:
    Here are three important things you should do in implementing the above design:
    Have the status of the record being processed stored in the database. The status includes the process state, next process attempt time, and processing attempt count.
    Create an updatable view that exposes only records that are ready to be processed. A view is needed because the database adapter cannot handle a where clause that compares against SYSDATE.
    Design logic that determines if a process instance that has faulted should be retried and when the retry should occur. This information will be updated in the database by use of a stored procedure. This can also be done with an update partner link and additional logic in BPEL.
    mahalo,
    a iii

  • Reg: How to Stop Polling of JDBC Adapter without Scheduling the adapter

    Dear Gurus,
    Here I am having one requirement. My clients wants to send data from JDBC adapter (ORcale System table) to R3 system via RFC.
    His Requirement::
    1. He is not telling the time of data flow from Oracle server so that based on that we can schedule the adapter in the Communication Channel monitoring (Availablitiy Time Planning) or Else we can Schedule by deciding the setting of the polling interval time.
    2. He is telling that When ever he waants to send the data he will place one dummy file in the File Adapter FTP location so that it will became an Indication for u to poll the jdbc adapter and to transfer the data to R3.
    3. Untill he keeps the file or gives indication he doesn;t want to communicate with Oracle server due to some security and it s a most important data base he doesn't want to disturb that Oracle Server as so many business are running  on that.....
    We Proposed::
    1. Atleast you need to tell the scheduling time or poll interval time so that we can schedule our adapter.
    but he s not accepting for this
    2. Atleast U need to give access for Data base to enter one more extra field like STATUS CODE so that we will add one number and we keep on Update in the Update table and based on that Update table statement it will poll.
    but he s not even accepting for this
    3. Finally we prposed that to create another table in the Oracle SYstem as Dulplicate Table which is similar to Standard Orginal table when ever he wants to pick the data please keep that data in this Duplicate TABle so that JDBC adapter will pick the data from thsi TABLE instead of picking the data from that standard table so that it will not effect any standard table data in the table.
    but he s not even accepting for this
    We have done some R & D:::
    1. WE approached even through BPM and via switch conditions is one scenario
       FILE RECEIVE >SWITCH CONDITION> RECEIVE AND SEND or else EXIT
    2. Using correlation in anotehr scenario means correlating File adapter and JDBC and based on one dynamica value it will goes to SEND STEP ( RECE IVE --> RECEIVE --> SEND STEPS )
    Even though we know this...concept that...we jsut tried::
    In BPM we can control the flow in XI 3.0 but we cannot Stop the Polling of JDBC adapter at backend because one the data comes from FILE adapter it will keep on HOLD untill it receives the JDBC from Oracle then based on the condition or Correlation it will goes futher SEND step means after that file adapter is picking file or not ...what ever it may be JDBC will polls at backend and brings that data to BPM"
    Hence sugest me How to Stop Polling of JDBC Adapter without Scheduling the adapter or else using STATUS CODE Update statements in JDBC Tables 
    Regards:
    Amar Srinivas Eli

    Hi! All,
    Finally I decided to do the scenario in two steps:
    1: FILE REQ --> JDBC REQ -->JDBC RES --> FILE RECV
    2: FILE RECV --> RFC
    But I am getting issue while doing first scenario
    Desgn :
    I have created 2 Synchronous interfaces :
    1) FILE 2 JDBC REQ
    In this a) out put message is FILE  Req
              b) Input msage:; FILE RES
    2} JDBC2FILE RECV
            a) Output mesage;; JDBC REQ
            b) Input Msge :: JDBC Response
    Mappings:
    1) File REQ-->JDBC REQ
    2) JDBC RES-->FILE RES
    Interface mappings:
    1: FILE 2 JDBC REQ--> JDBC 2 FLE RECV
    CONFIGURATION ::
    1: One Seder File CC
    2: Two reciever CC's one is for JDBC RECEIVER and other s FILE RECEIVER
    3; One Sender Agreement
    4: 2 Recver agreements
    5: One Interface Determination and
    6: One RECCV Determination
    My Question;;
    1. First let confirm whether my development steps are right or not ?
    2: Another thing s I am not sure reg Configuration Steps means
    whetehr one interface determination and one Receiver Determinations are required or not as these are synchronous Interfaces
    3: main Issue is::::
    If my scenario s FILE2RFC2FILE then I will get RFC response automatically but here issue is this is JDBC
    My reqquirement is By sending one Field from fILE to JDBC REQ it needs to send entire TAbLE records as a Response to file as XML
    without having Sender JDBC how can I send the JDBC Res to FILE and If that is the case then again JDBC adapter is polling which is contradict to the client requuirement which i explained above.
    pleas suggest me the Detailed steps mainly Colloboration agreements and logical routings and
    also explain in detail if i can  go for BPM
    Also give cleear blogs but before giving make sure that it contains detailed screen shots because aIready gone thorugh
    Scenario File-JDBC-RFC
    File<-->JDBC Sync coomunication.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/file-rfc-file(Without+BPM)
    /people/luis.melgar/blog/2008/05/13/synchronous-soap-to-jdbc--end-to-end-walkthrough
    Regards::
    Amar Srinivas Eli

  • Libreoffice and Firefox take ages to start, get stuck at polling

    Hello. Whenever I launch Firefox or Libreoffice, they take around 15-20 seconds to start. I'm not using the Libreoffice Quickstarter here. When I searched online for others who've faced the same problem, I found this problem to afflict Firefox 4 and some older versions of Libreoffice. Both programs were supposed to have a problem with polling for something in the network; I didn't exactly understand what those people were talking about, sorry.
    However, I did understand enough to disable both wireless and ethernet on my laptop and open both programs, and voila! Both opened in around 5-7 seconds. While I use NetworkManager for my networking needs, this problem was seen in wicd as well. I used strace, and I could see that there was a section where the word "POLLIN" jumped out at me where the execution would stop for 5 - 10 seconds whenever I started either FF or LO.
    Another weird thing is that another friend of mine (on Arch 64 with Cinnamon) on the same network faces no such problems. His Firefox and Libreoffice start up as fast as mine do with my network turned off.
    Some relevent hardware and software details:
    Arch 64 on an Intel Nehalem i5 460M
    Broadcom Corporation NetLink BCM57780 Gigabit Ethernet PCIe
    NetworkManager and wicd installed, I prefer using NetworkManager
    Has affected all Firefox versions from 19.0-1 onwards (when I installed arch on this laptop)
    Has affected all LO versions from 4.0.0-1 till the present one
    Also, if it's relevant, systemd-analyze blame tells me that NetworkManager and it's wait-online service regularly take around 29 and 16 seconds respectively, while wicd takes only around 2 seconds.
    Last edited by genghizkhan91 (2013-05-05 09:34:40)

    Other solutions
    * https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_other-solutions
    Do a MALWARE check with these Malware Scanning programs. You need to scan with all programs because each program detects different malware. Make sure that you UPDATE each program to get the latest version of their databases before doing a scan.
    * Malwarebytes' Anti-Malware - http://www.malwarebytes.org/mbam.php
    * SuperAntispyware - http://www.superantispyware.com/
    * Windows Defender Home Page -
    http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    * Spybot Search & Destroy - http://www.safer-networking.org/en/index.html
    * Ad-Aware Free - http://www.lavasoft.com/products/ad_aware_free.php
    There are also specialized forums for Malware Removal such as those listed below, where you might be able to get more help:
    * Bleeping Computer Forums - http://www.bleepingcomputer.com/forums/
    * Spyware Warrior Forums - http://www.spywarewarrior.com/index.php
    * SWI Forums - http://www.spywareinfoforum.com/
    Check and tell if its working.

  • Because of a POLL() Timeout, Listener Connection to a DB Takes Long Time!

    Envionment: OS: OEL5.3 (2.6.18-128.el5Xen) x86-64bit RDBMS: 11.1.0.7 (in an OVM setup)
    The Problem:
    It takes more than 10 seconds to get connected to the 11.1.0.7 database using SQL*Net with dedicated servers.
    Points to consider:
    0. I posted this in DB (Net) forum as well.
    1. Direct local connection has no such issue.
    2. Connection to a 10.2.0.4 database on the same server is no problem either (direct as well as through SQL*Net)
    3. Only dedicated connection takes such a long time. With shared servers, the connection is quick again.
    4. Using prespawned servers does not help.
    5. Connection is quick with another 11.1.0.7 on the same network (another guest on the same OVM server, but it is 32-bit: OEL4.3 / 2.6.9-55.0.12.9.1 ELxenU)
    When I ran strace on the client as well as on listener (using: strace -T -tt -ff -o <outputfile> -p <pid>), the client process took the longest time waiting for a read() call to finish (about 10 seconds), and by looking at the entries with the same timestamp from the listener side straces, I found the following entries from the shadow process:
    11:41:01.095138 poll({fd=10, events=POLLIN}, 1, 4769) = 0 (Timeout) <4.768228>
    11:41:06.086246 poll({fd=10, events=POLLIN}, 1, 4777) = 0 (Timeout) <4.777516>
    As we can see, these timeouts together account for more than 9.5 seconds out of 10.x seconds total elapsed time.
    Any clue why this happens (and why not in other cases listed above)? More important, how to get this resolved? __If decreasing the timeout value for the POLL call could be a workaround, how can I achieve that in OEL5.3?_
    Appreciate all your help and suggestions.
    Thanks and regards,
    Govardhanan.

    I've updated my profile to show my email address, so go ahead and email me the strace output (compressed please). Maximum attachment size for emails to Oracle is 10MB (encoded), so split the strace output in 5MB chunks if necessary.
    poll() is not normally used by the Oracle network layer for client-server connections. So this may be related to an OS network service, such as DNS or NIS. The strace should make this clear (to me anyway).
    Edited by: herb on Aug 14, 2009 10:25 AM

  • How can I display comments when using poll

    hi Experts,
    I am using wc11.1.1.5 with poll function, I published a poll with some questions and a text box for suggestion feedback, when I check result, I can only get answers for the question but no suggestions can be displayed, how can I get the suggestion displayed?
    Best regards

    You have to customize surveyResults.jsff page fragment that is available in "WebCenter Polls and Surveys Service View" library. You can find this library by creating a WebCenter Spaces Task flow Customization project from Jdeveloper. Kindly do let me know if you need more details in this regard.
    You have add output or label in surveyResults.jsff and then map its value attribute with RE of suggestion text area might be available in surveyResultBean class.
    How to customize task flow, pls see following link:-
    http://download.oracle.com/docs/cd/E21764_01/webcenter.1111/e10148/jpsdg_taskflows.htm#BACIEGJD

Maybe you are looking for