Is it possible to control the number of elements read from queue

The data write into the queue follows the format of
(Data Length) + Data Block + (Data Length) + Data Block + (Data Length) + Data Block
When I read the data, need to read the Data Length first, then can read one Data Block.
Is there any function  in queue to do it?
Thanks
Solved!
Go to Solution.

Hi turbot,
"Is there any function  in queue to do it?"
No, but there is the FOR loop to fetch datalength elements from the queue.
Or use the "flush queue" command the empty the queue - but you have to parse the element array afterwards...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Is there a way to control the number of consumed messages from JMS?

    Hi everyone,
    I have a BPEL process that is consumes messages from a foreign queue, performs a transformation, and passes it to Oracle Apps. I'm curious if there is a way to control the number of messages consumed at a time for processing.
    For example, if we place 50 transactions on this queue, I would like to only consume 10. And then as each one is processed and passed to Oracle Apps, I would like to pull another transaction off the queue. So basically I would only be processing 10 at the most.
    The issue I am having is we put 50 on the queue and the 50 are take off right away. But then half are making it into Oracle Apps and the remainder is failing with a JCA Connection Factory max connection error.
    Instead of changing the settings to get more through, I am wondering if it's possible to limit the number being processes at any one time.
    Thanks

    Hi,
    Have a look at the adapter.jms.receive.threads Property for JMS Adapter...
    http://docs.oracle.com/cd/E21764_01/core.1111/e10108/adapters.htm#BABCGCEC
    Cheers,
    Vlad

  • How to control the number of rows selected from a sybase database table?

    Hi, JDBC guru,
    I'm working on project using Sybase 11.9.x database.We need to process a record in a table,first select it from the table,then do some computing,finally write it to a dbf file, if the above steps succeed,remove the original row in the table.Quite evidently, all these operation should be put into one transaction. But how can I select just a number of rows from the sybase database table?
    Any hints?
    Thank you in advance.
    Regards,
    Jusitne

    Statement stmt...
    stmt.setMaxRows(20);

  • How to control the number of fields in the Advanced mode in af:query

    Hi,
    How to control the number of fields in the Advanced mode in <af:query>?
    Say i have 20 fields in my table and i created a view criteria with 2 fields. It would work perfectly in Basic mode. But in the Advanced mode all other fields selection is possible on clicking the ADD Fields button. I did not want the client to make a search with all 20 fields. Only 10 fields are to be listed in the Advanced Mode even though there are 20 fields in my table.
    How do i control the list of fields in ADDFields button?
    Any ideas?
    KR

    You can uncheck the Querable property of the attributes which you need not show up in the Advanced Mode (but they will not show up in other modes too !) or programatically set the same as mentioned here -
    http://adfcodebits.blogspot.com/2010/11/bit-27-setting-view-object-attributes.htmlAlso you can hide the AddFields button as suggested here - http://www.notjustjava.com/2011/12/cool-tips-to-showhide-components-of-the-query-control-of-adf/

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • Is it possible to change the number of weeks to be displayed in the month view in calendar (mavericks)?

    I'd like to know if it's possible to change the number of weeks to be displayed in the month view in calendar? Thanks!

    No.
    There are up to six calendar weeks that might be used to display the 31 possible days in a month.
    So the month view displays six weeks.

  • Is there a way to control the number of concurrent SMTP connections on Database Mail?

    Las week Rackspace started controlling the number of concurrent SMTP connections and we are now getting the following message when we send as little as 15 messages at a time using Database Mail:
    Exception Message: Cannot send mails to mail server. (Service not available, closing transmission channel. The server response was: 4.7.0 smtp13.relay.dfw1a.emailsrvr.com Error: too many connections from IP xxx.xxx.xxx.xxx)
    We are using SQL Server 2005 and Windows 2003 and we have been doing this since 2006 with no problems
    Is there a way to control the number of concurrent SMTP connections used by Database Mail or the Database Mail external executable DatabaseMail90.exe?

    Hi rkohler,
    Usually, we can use the Database Mail Configuration Wizard or the Database Mail stored procedures to determine the server name and port number for the Simple Mail Transfer Protocol (SMTP) server . In the SMTP server points, we can set or increase the number
    of concurrent connections.
    There is similar issue about database email on SQL Server 2005, you can refer to the following post.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/6bb7b600-f025-451b-898b-2caa29c10d4d/only-some-email-gets-sent-successfully-from-spsenddbmail-database-mail-on-sql-server-2005
    Thanks,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • Is it possible to increase the number of authorised computers with itunes.

    Hi with Apple now selling more devices than ever is it possible to increase the number of authorised computers for sharing on iTunes.
    we have 2 x MBP and a 27" iMac 2 x ipads 3 x ipods and 2 x iphones in the house, we would obviously like to share the one account with all of them and I think that seeing the number has not changed in years yet the number of products able to use. It would make sense to at least double the authorised number.

    You are limited to 5 devices. Maybe Home Sharing offers options

  • Is it possible to change the number of rows to be displayed in adf query ?

    Hello,
    is it possible to change the number of rows that are displayed in an adf query similar to an adf form ?
    I need to display approx 5 rows per column instead of displaying all the fields in a single column ? Thanks.

    Thanks , how do you add in the code ,is it something like follows :
    <af:query id="qryId1" headerText="Search" disclosed="true"
                                value="#{bindings.ImplicitViewCriteriaQuery.queryDescriptor}"
                                model="#{bindings.ImplicitViewCriteriaQuery.queryModel}"
                                queryListener="#{bindings.ImplicitViewCriteriaQuery.processQuery}"
                                queryOperationListener="#{bindings.ImplicitViewCriteriaQuery.processQueryOperation}">
                        <af:inputText value="#{bindings.PrtDesc.inputValue}" label="Desc"
                                      required="#{bindings.PrtDesc.hints.mandatory}"
                                      columns="#{bindings.PrtDesc.hints.displayWidth}"
                                      maximumLength="#{bindings.PrtDesc.hints.precision}"
                                      shortDesc="#{bindings.PrtDesc.hints.tooltip}" id="it3">
                          <f:validator binding="#{bindings.PrtDesc.validator}"/>
                        </af:inputText>
                      <af:column>
                       <af:outputtext/>
                        <af:outputtext/>
                     </af:column>
                      </af:query>

  • Is it possible to limit the number of attachments

    Is is possible to limit the number of attachments that the mail server will receive in a message. For example if the email has 5 or more attachments reject it or through it in the bitbucket.
    The reason I ask is I have a remote site that is sending me 500+ email messages with 40 attachments in each. Well with virus scanning in the conversion channel it really backs things up.
    I have looked in the manual but have not been able to find anything.
    I am running ims5.2 patch 1.15 on HP-UX. Soon it will be patch 1.25 when school is out.
    Thanks,
    Gary

    Since each message is usually in a separate MIMEpart, you could use the conversion channel to do what you're asking, but . . .
    Routing every message through conversion will be a pretty big performance hit.
    How about simply blocking that particular site with an
    ORIG_SEND_ACCESS
    mapping entry in your mappings file?

  • Is it possible to control the duration of a video clip in IMovie? Speed

    Is it possible to control the duration of a video clip in IMovie? Speed
    it up/slow it down?

    I actually think the content gets smoother in faster mode. But maybe that's just my opinion.
    By the way, the fast/slow/reverse effect is pretty sensitive, i use it for my fight scenes in movies and I can only raise the bar one notch faster before it starts to look cheesy.

  • HT4906 i'm using an older version of iPhoto on my desktop Mac and I can't seem to control the number of photos appearing on my iPhone and iPad, will upgrading to the newer iPhoto resolve this?

    i'm using an older version of iPhoto on my desktop Mac and I can't seem to control the number of photos appearing on my iPhone and iPad, will upgrading to the newer iPhoto resolve this?

    What version do you have?
    iPhoto menu -> About iphoto.
    What goes to your iPad/iPhone is controlled in iTunes.
    Regards
    TD

  • How to control the number of instances of an object ?

    Hi all,
    Can anybody answer, How to control the number of instances of an object being created?
    suppose at any point of time, if i would like to have 5 instances at the maximum, how can i disable the further requests?
    Thanks in advance
    Pradi

    write a factory method that controls the number of instances for you:
    import java.util.List;
    import java.util.Arrays;
    public class Bar
       private static final int MAX_BARS = 5;
       private static int numBars = 0;
       private int id;
       public static void main(String [] args)
          try
             int numBars = ((args.length > 0) ? Integer.parseInt(args[0]) : MAX_BARS+1);
             Bar [] bars = new Bar[numBars];
             for (int i = 0; i < bars.length; ++i)
                bars[i] = Bar.create();
             System.out.println(Arrays.asList(bars));
          catch (Exception e)
             e.printStackTrace();
       private Bar() { this.id = numBars++; }
       public String toString() { return "I am bar number " + this.id; }
       public static Bar create()
          Bar nextBar = null;
          if (numBars < MAX_BARS)
             nextBar = new Bar();
          return nextBar;
    }%

  • Is it possible to control the parallel port with Lookout 5.0

    I want a simple demo setup on a PC, so I can control the 8 data bits of the parallel port. Example, to use START p/b that would toggle bit 0 and data returned on bit 1.

    It is possible to send bytes to the parallel port using the ASCII object within Lookout. However, it is presently not possible to control the state of the individual bits on the parallel port with Lookout.
    If you need to control the individual bits on a parallel port, consider using LabVIEW. It is much more powerful when programming serial and parallel ports.

  • Control the number of users logging in to the portal

    Hello,
    Is there any way to control the number of users logging in to the portal?
    Issue: We need to limit the users logging in Per Company (Access key).
    I read about the Activity Reporting in NW, and that would show us the stats, but does not let us control the logins.  I read all the forum posts on SDN about this topic, they were helpful, but none addressed our needs. 
    Has anyone implemented such functionality?  If we need a write a custom service or component to accomplish this, then which APIs should I be looking at?
    Our Portal Version: We are currently on EP6 SP2 PL 35, and in process of moving to NW.
    Any help on this would be much appreciated.
    Thanks,
    Harman

    Thanks for the replies, here's a little more info...
    We're working on project which allows a company to buy user licenses to access our portal.  So if a company has bought 5 licenses, the 6th user for that company will not be able to login.
    *Note: We treat each Access Key in the portal as a company.
    The way we determine if the user belongs to a company is by the AccessKey that is assigned to that user. We're not depending on IP addresses at all.
    Hope this clears the issue !
    I think we'll have to write some custom code to accomplish this.
    Thanks,
    harman

Maybe you are looking for

  • Error has orrured in system when creating order

    We are getting the following error when trying to create an order in our CRM QA system: An error has occured in the system QA7CLNT010 while copying the document Message no. CRM_ORDER_MISC 020 Diagnosis Errors have occured while transferring the docum

  • Aperture 3.1.2 untag faces

    Hello everyone. I would like to untag some persons in my Aperture library. Is it possible to remove the "faces" tag from persons? As well as be able to put them in the "skip" list so that they don't appear all the time as unknown faces. People I took

  • I am looking for an old installer for photoshop CS2

    I installed photoshop CS@, but everytime I try to use it I get this error, "An error is detected and activiation cannot continue.  Please restart your computer and reinstall applications."

  • Cant download trial of acrobat X1 pro

    Trying to download the trial of Acrobat X1 Pro but I keep getting an error message # 101. Other adobe pdts. work ok on my computer. It seems that I am missing something that I need for the program to download? If you want to email me at [email protec

  • Why wont logic "recognise" Guitar rig 3 when tracking?!?!?

    Im trying to track some guitars. I have a copy of guitar rig 3 & a line 6 ux1. I normally use Gearbox (the line 6 program) for my guitar sounds but today try to use guitar rig. Logic doesnt "hear" the sound from the program itself, it only hears the