Deque and enque

Hello great programmers, please i will like to ask of a question..
i want to create a software that looks loops through all the links in a site and extract specific datas from each of them.
the line of each link is shown below:
<p class="row" data-pid="4296618887"> <a href="/brk/mod/4296618887.html" class="i" data-id="0:00404_c1EwqcCINn1"></a> <span class="star"></span> <span class="pl"> <span class="date">Jan 20</span> <a href="/brk/mod/4296618887.html">Imei Blacklist removal service</a> </span> <span class="l2"> <span class="pnr"> <span class="px"> <span class="p"> pic</span></span> </span> <a class="gc" href="/mod/" data-cat="mod">cell phones - by dealer</a> </span> </p>
<p class="row" data-pid="4277811769"> <a href="/brx/mod/4277811769.html" class="i"><span class="price">&#x0024;480</span></a> <span class="star"></span> <span class="pl"> <span class="date">Jan 20</span> <a href="/brx/mod/4277811769.html">lg g2 sell&trade</a> </span> <span class="l2"> <span class="price">&#x0024;480</span> <span class="pnr"> <small> (bronx-manhattan)</small> <span class="px"> <span class="p"> </span></span> </span> <a class="gc" href="/mod/" data-cat="mod">cell phones - by dealer</a> </span> </p>
<p class="row" data-pid="4289601146"> <a href="/que/mob/4289601146.html" class="i"><span class="price">&#x0024;600</span></a> <span class="star"></span> <span class="pl"> <span class="date">Jan 20</span> <a href="/que/mob/4289601146.html">iphone 5s 32gb Factory unlocked NEW</a> </span> <span class="l2"> <span class="price">&#x0024;600</span> <span class="pnr"> <small> (NYC)</small> <span class="px"> <span class="p"> </span></span> </span> <a class="gc" href="/mob/" data-cat="mob">cell phones - by owner</a> </span> </p>
<p class="row" data-pid="4277813240"> <a href="/brx/mod/4277813240.html" class="i"><span class="price">&#x0024;400</span></a> <span class="star"></span> <span class="pl"> <span class="date">Jan 20</span> <a href="/brx/mod/4277813240.html">lg g2 sell&trade</a> </span> <span class="l2"> <span class="price">&#x0024;400</span> <span class="pnr"> <small> (bronx-manhattan)</small> <span class="px"> <span class="p"> </span></span> </span> <a class="gc" href="/mod/" data-cat="mod">cell phones - by dealer</a> </span> </p>
<p class="row" data-pid="4296634672"> <a href="/que/mob/4296634672.html" class="i" data-id="0:00A0A_2myBr3dzyHq"><span class="price">&#x0024;160</span></a> <span class="star"></span> <span class="pl"> <span class="date">Jan 20</span> <a href="/que/mob/4296634672.html">IPHONE 4 16GB FACTORY UNLOCKED </a> </span> <span class="l2"> <span class="price">&#x0024;160</span> <span class="pnr"> <small> ( Queens )</small> <span class="px"> <span class="p"> pic</span></span> </span> <a class="gc" href="/mob/" data-cat="mob">cell phones - by owner</a> </span> </p>
<p class="row" data-latitude="40.907545" data-longitude="-73.862801" data-pid="4296633994"> <a href="/wch/mob/4296633994.html" class="i" data-id="0:00s0s_7eY0OYlY9wf"><span class="price">&#x0024;250</span></a> <span class="star"></span> <span class="pl"> <span class="date">Jan 20</span> <a href="/wch/mob/4296633994.html">Iphone 4 Unlocked And Jailbroken ( Brand New) In Original Box </a> </span> <span class="l2"> <span class="price">&#x0024;250</span> <span class="pnr"> <small> (yonkers ny)</small> <span class="px"> <span class="p"> pic&nbsp;<a href="#" class="maptag" data-pid="4296633994">map</a></span></span> </span> <a class="gc" href="/mob/" data-cat="mob">cell phones - by owner</a> </span> </p>
<p class="row" data-latitude="40.677500" data-longitude="-73.775800" data-pid="4296616844"> <a href="/que/mob/4296616844.html" class="i" data-id="0:00F0F_lfU80Jsibs9"><span class="price">&#x0024;65</span></a> <span class="star"></span> <span class="pl"> <span class="date">Jan 20</span> <a href="/que/mob/4296616844.html">VERIZON LG SPECTRUM--MINT CONDITION</a> </span> <span class="l2"> <span class="price">&#x0024;65</span> <span class="pnr"> <small> (JAMAICA, QUEENS)</small> <span class="px"> <span class="p"> pic&nbsp;<a href="#" class="maptag" data-pid="4296616844">map</a></span></span> </span> <a class="gc" href="/mob/" data-cat="mob">cell phones - by owner</a> </span> </p>
there are like 100 of them and i don't know if to put them in a queue because i am not good in programming to that extent. i am the one that is tgeaching myself programming and i am not yetthat good.. Please help me with this.

Hi Henry,
This a forum dedicated to the questions/issues/concerns about the Project Online scheduling solution by Microsoft.
Please post your question on the appropriate forum in order to have some help.
http://social.technet.microsoft.com/Forums/en-US/home 
Cheers.
Guillaume Rouyre - MBA, MCP, MCTS

Similar Messages

  • File read and enque into Queue

    Hi Gurus
    We have flat file and we have Oracle Advanced Queues . In flat file first line is header and last line is count
    First line "D00Ïbbbbbb" and footer is "Z00ÏCountof records"
    In body of file we have Trans_IDÏTRANS_TypeÏTrans_DateÏ<<Table _data separeated by Ï" in all columns
    We want to load this into OAQ with DBMS_AQADM.ENQUE package .
    How to read file using utl_file without delimeter and load ?
    Thanks & Reagrds

    oramnts wrote:
    Using UTL_FILe can we remove delimiter from loading and also header and footer of table ?Sure.
    When you use UTL_FILE, then you use PL/SQL, and then you can skip any line you want. Just code it the way you want.
    What problem did you encounter and what did you already try?
    Regards,
    Rob.

  • Messages are not being dequed by a different connection in JMS

    Scenario
    There are 2 queues - Q_A and Q_B and There are 2 applications - App_1 and App_2
    I am using point 2 point and java JMS
    This is what I want to accomplish
    App_1 queues messages to Q_A
    App_2 dequeues messages from Q_A
    App_2 queues messages to Q_B
    App_1 dequeues messages from Q_B
    But the problem I am having is that neither application can see the messages that have been queued by the other.
    So even though I see the messages in the database in Q_A,
    When I use QueueBrowser from App_B on Q_A to view the messages ... it is empty
    But if I use QueueBrowser from App_A on the same queue Q_ A I can see the messages.
    The same is true the other way round.
    The queueconnection is being created usng the same db user in both apps, and the queues are owned by the same user.
    please help me.
    user489532

    Dear DAMORGAN,
    Thank you for your reply and I apologise for the insufficient information. I am providing the details now. I am aware that JMS is supposed to handle my situation. And I am ableto queue and dequeue messages without problems from the same app. Its only when I am using different apps that I am having a problem. I am pasting relevant pieces of code,Please let me know if more info is needed. Thank for your help.
    Oracle 10g
    Weblogic 10
    DDL to create Queue
    BEGIN
    DBMS_AQADM.CREATE_QUEUE_TABLE (
    QUEUE_TABLE => 'AQ_A_QUEUE'
    ,QUEUE_PAYLOAD_TYPE => 'SYS.AQ$_JMS_OBJECT_MESSAGE'
    ,COMPATIBLE => '8.1.3'
    ,MULTIPLE_CONSUMERS => FALSE
    DBMS_AQADM.CREATE_QUEUE(QUEUE_NAME => 'A_QUEUE',
              QUEUE_TABLE => 'AQ_A_QUEUE',
              MAX_RETRIES => 10,
              RETRY_DELAY => 60);
    DBMS_AQADM.START_QUEUE(QUEUE_NAME => 'A_QUEUE');          
    END;
    Application A sends messages to A_QUEUE like this
    //This is how I get a connection
    QueueConnectionFactory queueConnectionFactory = AQjmsFactory.getQueueConnectionFactory(getDatabaseServer(), getDatabaseSid(), getDatabasePort(), "thin");
    QueueConnection qc = queueConnectionFactory.createQueueConnection(getDatabaseUser(), getDatabaseUserPassword());
    qc.start();
    //This is how I get the Queue          
    QueueSession q_sess = qc.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
    Queue aQueue= ((AQjmsSession)q_sess).getQueue(getDatabaseUser(), "A_QUEUE");
    TestMsgObject jmsObj = new TestMsgObject();
    //populate Test object          
    QueueSender qs = q_sess.createSender(aQueue )
    ObjectMessage msg = q_sess.createObjectMessage(jmsObj);
    msg.setStringProperty("MESSAGESOURCE", "APP_A");
    qs.send(msg);
    qs.close();
    q_sess.commit();
    //Application B has a message listener like this - TestListener
    public void initialize() throws JMSException, NamingException {
         QueueConnectionFactory queueConnectionFactory = AQjmsFactory.getQueueConnectionFactory(getDatabaseServer(), getDatabaseSid(), getDatabasePort(), "thin");
         qc = queueConnectionFactory.createQueueConnection(getDatabaseUser(), getDatabaseUserPassword());
         q_session = qc.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
         aQueue = ((AQjmsSession)q_session).getQueue(getDatabaseUser(), "A_QUEUE");
         qr = q_session.createReceiver(aQueue);
         qr.setMessageListener(this);
         qc.start();
    public void onMessage(Message message) {
         try {
              System.out.println("Received Message XFS=" + message.getJMSMessageID());
              //more processing
         }catch(Exception e) {
              e.printStackTrace();
    The message listener is created and initialized from the init() method of a servlet that is loaded on startup.
    The onMessage of the TestListener is never called.
    I can see the messages in the database.
    Also when I call the following code snippet from Application A - the messages are retrieved, but the same code called from application B does not give any messages.
    browser = q_sess.createBrowser(MyUtil.getQueue(q_sess));
    for (Enumeration messages = browser.getEnumeration(); messages.hasMoreElements() ;){
    obj_message = (ObjectMessage)messages.nextElement();
    System.out.println(obj_message.getJMSMessageID());
    I can bounce the app server and still app B does not see the messages.
    However if app B publishes messages to the queue itself, it can see those, without any problem.
    As mentioned before the database user is the same for both the apps and owns the queue, and deques and enque are both enabled.

  • Regarding the nomenclature for include files in SAP

    Hi Group,
    I am presently enhancing a tool for the upgrade thing .The tool is used to derive all the effected objects,so, for that i need to know the nomenclature for include files in SAP.e,g all the include files for table maintenance generator starts with LSVIM.so, we don't need to analyse that include files,so in the similar fashion i need to know nomenclature for include files....
    Thanks,
    Ajitabh Aggarwal

    Hi Group,
    Basically i am working on developing an upgrade tool from 4.6/4.7 to Ecc 5.0/6.0,so for that i need certain information on include files.Basically i need to collect the affected zobjects whic i need to modify,So,for that i need to get the FUGR,FMs and includes which need to be corrected.e.g all deque and enque function modules are irrerelevant and similary includes starting with LSVIM and those that don't have function odules attached to them are for screen maintenance of tables.So, i need certain on inputs on that end.if u have anything,please do tell me.
    Thanks in Advance.
    Ajitabh Aggarwal

  • Cannot DEQUE my ENQUEQUED message.

    Hi,
    Basic setup Steps done
    1. Create a type object
    2. Created queue table. and queue
    3. Started the queue
    4. added a subscriber.
    I have this piece of code where i am facing issues in DEQUING.
    Enquing
    consumer_name :='AGENT_204'; -- consumer_name defined as varchar2(2000);
    l_msg_prop.recipient_list:=sys.aq$_agent(consumer_name,null,null); -- l_msg_prop defined as DBMS_AQ.MESSAGE_PROPERTIES_T;
    DBMS_AQ.ENQUEUE(
    queue_name => get_full_qname('AR_REV_REC_Q'),
    enqueue_options => g_nq_opts,
    message_properties => l_msg_prop,
    payload => l_msg,
    msgid => g_msg_id);
    result : This gets executed successfully. I am able to see the record in my Queue table.
    DEQUE
         g_dq_opts.dequeue_mode := DBMS_AQ.REMOVE;
    g_dq_opts.navigation := DBMS_AQ.NEXT_MESSAGE; --- Get the Next available message
    g_dq_opts.wait := p_wait; -- passed as no wait
    consumer_name:='AGENT_204';
    g_dq_opts.consumer_name := consumer_name;
    g_dq_opts.visibility := DBMS_AQ.IMMEDIATE;
    DBMS_AQ.DEQUEUE(
    queue_name => 'AR_REV_REC_Q',
    dequeue_options => g_dq_opts,
    message_properties => l_msg_prop,
    payload => p_msg,
    msgid => g_msg_id);
    Question
    When i run deque block it is coming out with the error code -25228 (Which means No more messages). Please help me on how to dequeue my Queue.
    It appears that it is not able to locate my previous messages which are queued already and the payload p_msg is returned as null.
    This is a drop 7 Build 6A fusion db.
    Host : adc60010fems.us.oracle.com
    Port : 1529
    SID : f55ys570
    user : fusion/fusion
    My Queue table : AR_REV_REC_QT

    Hi
    Does the
    queue_name => get_full_qname('AR_REV_REC_Q'),resolve into the correct queue name?
    You dequeue from
    queue_name => 'AR_REV_REC_Q',regards
    Mette

  • Add multiple objects to a Deque to be retrieved in that order?

    All:
    We are using a LinkedBlockingDeque in a classic producer/consumer setup -- multiple threads may post "commands" to the Q, and the consumer retrieves and executes each command in a separate thread.
    We have very rare cases where we need to post more than 1 command which must be executed by the consumer in the order posted (with no intervening commands).
    Something like addAll(Collection c) represents what we need, but as far as we know does not guarantee that all of the elements in 'c' will be added to the Deque without the presence of intervening elements being posted from other threads. (If this understanding is not correct, then addAll(..) does what we want and there is no problem.)
    We understand that we could use a LinkedList with a concurrency wrapper, and handle synchronization where required. But do really like the functionality provided by a LinkedBlockingDeque and hate to have to handle all the complexity in our own code. (Not to mention the ton of existing code that would have to be retrofitted!)
    We also understand that we can define a new "commandSet" object which represents the list of primitive commands that must be processed in order. But this also seems like a lot of unnecessary clutter.
    Is there another way to pass a set of "commands" into the Deque and be assured that they will be retrieved in that order by the consumer?
    If there is no such mechanism, would it be worth requesting such an enhancement -- something like addAllTogether(Collection c) which would synchronize internally so that all the elements in 'c' are added in sequence?
    Thanks.

    Thanks for your response, and yes you are correct -- CommandSet is misleading and it should have been CommandList.
    It still seems to me that in general with all the Concurrent... implementations it might be useful to have some form of atomic addAll(Collection c) method -- maybe addSynchronized(Collection c). (There's got to be a better name!)
    This method would guarantee that all of the elements of 'c' are added to the Concurrent.... object without any conflicting adds or removes posted by any other thread.
    I understand the CommandList construct, and this is in fact how we resolved the issue. But in general this has some limitations. Using a Deque as an example, but applying this to all Concurrent.... classes:
    1) Our design is not as clean as the structure you have in your response, and it really can't easily support that type of interface. The purpose of the Consumer is to interrogate each X in the queue, and act as an interface to "perform" that logical operation on a specific device. So it invokes many methods of X in order to perform it's job. I.e. are you inbound or outbound, how much data, what device address should this go to, etc, etc.
    I also understand that we could define another interface and pass an 'execute' object into the 'execute' method -- something like 'execute(theExecuteInstance(this))' to get around this -- but now we're really starting to add complexity!
    2) You are now adding a different object type to the Deque. If it was instantiated as, say LinkedBlockingDeque<X> then the only way to add a List of X objects is to declare class ListOfX extends X which would really be a confusing structure. This one has kludge stamped all over it! (But, hey, that's what we did!)
    3) Clearly, the whole approach only works if you have access to the code for the Consumer side and can modify it to understand the ListOfX instance and handle it correctly.
    If we had realized at the start that the situation would arise in which multiple Xs would need to be Consumed in sequence, then we would have defined ListOfX (more cleanly than above) and declared the Deque as LinkedBlockingDeque<ListOfX>, and written the Consumer to handle this.
    But as happens so often, we were well down the road before this situation arose .... with the inevitable patchwork solution.
    On the other hand, you could probably still make a case for some form of addSynchronized in general. It does seem like a natural situation that should be supported cleanly.
    If we weren't using a Concurrent ... object, and handling our own synchronization, then this structure follows naturally because you would just synchronize on the object, run an iterator through 'c' and add each instance returned. With one of the Concurrent... objects, this pattern has been lost.
    Even if we had realized the need earlier, and defined a ListOfX right from the start, it still clutters up the situation (the Consumer really just wants to process X's), and adds the overhead of instantiating ListOfX, and adding a single X to the list, for 99% of the actual cases.
    But thanks for your response and insight. Maybe next time we'll figure out all the use cases before we start (LOL).

  • Oracle RAC + Clusterware and another Cluster with Clusterware for SAP

    Hi,
    I have some questions about implementation of Oracle RAC and Clusterware with SAP
    For exemple, an architecture with 4 servers ( 2 real and 2 vritual ).
    I would like to know if i can do this
    2 servers for the first cluster.
    First cluster is with Clusterware and Oracle RAC
    This is for all the SAP Oracle databases environment
    I think there is no problem here.
    Now, with 2 others servers il would like to make another cluster (with also clusterware ) for SAP Central services (SCS) and enque replication server (ERS)
    Because all architecture is for only one SAP environment with separate services.
    1 for Database (cluster 1)
    1 for Central services ( cluster 2, virtual machine )
    1 for Dialogue Instance (no cluster)
    To be clear, the second cluster is to make HA of central services SAP (SCS and ERS )
    My question 2 are :
    Is it a good job to do this ? or there is anything wrong ?
    Do i have to install antoher clusterware for this 2 servers or i have to make anything with the existing clusterware + oracle RAC ??
    Thank you very much for you help
    Edited by: user12395221 on 29 déc. 2009 15:36

    Hi Givre,
    have you checked: Providing High Availability for SAP Resources (http://www.oracle.com/technology/products/database/clusterware/pdf/sap-availability-on-rac-twp.pdf) available on otn.oracle.com/clusterware? Not being an SAP expert myself, I still think, this paper describes the configuration - at least partially - that you are trying to set up.
    Just an idea. Thanks,
    Markus

  • Microsoft cluster environment and DR

    Hi all,
    I wonder if anyone can help me with this question. We are running SAP in a HA environment on two physical servers and have virtual servers as additional dialog servers.
    My undertsanding of the new 7.0 cluster architecture is the the message and enqueue server has been split out of the CI. So therefor a CI is built up of a enqueue server, a message server and a dialog server.
    So in our site we have two clustered servers vic1 and vic2 and 1 virtual server vicvm1 ECC6.0 CI install was done on vic1and the message server and enque server was set up on the cluster nodes running in separate resource groups. vicvm1 was deployed as a secondary application server. This is a pure abap environment
    Now to my question.
    We are building a dr environment where there is a db server vicdr1 and the application server vicvm1 is being replicated into the DR site.
    Is it possible to do a ASCS install on vicdr1 and bring up the replicated server vicvm1 for the system to work? The reason i ask this is there seems to be no clear information on this, and if the instance on vic1 crashed vicvm1 still works and users see no difference. One user has pointed out that there always needs to be a CI running but once you split the message and enqueue server out the CI becomes meaningless and simply another application server.

    Hi David
    1st - you asked "if the instance on vic1 crashed vicvm1 still works and users see no difference". So in your system if vic1 and vic2 are clustered and vic 1 crashes, doesn't the Ci automatically fail over to the vic 2 cluster node? That would be why the users can keep running transactions on the app server vicvm1.
    2nd - "Is it possible to do a ASCS install on vicdr1 and bring up the replicated server vicvm1 for the system to work?"  I'm not exactly sure what you are asking here, but I think you will need to re-install the application on the dr systems vicvm1, pointing it to the vicdr1 system. Not just replicate or copy the vicvm1 onto another server and have it work.
    Ken

  • Arbitrary waveform generation from large text file

    Hello,
    I'm trying to use a PXI 6733 card hooked up to a BNC 2110 in a PXI 1031-DC chassis to output arbitrary waveforms at a sample rate of 100kS/s.  The types of waveforms I want to generate are generally going to be sine waves of frequencies less than 10 kHz, but they need to be very high quality signals, hence the high sample rate.  Eventually, we would like to go up to as high as 200 kS/s, but for right now we just want to get it to work at the lower rate. 
    Someone in the department has already created for me large text files > 1GB  with (9) columns of numbers representing the output voltages for the channels(there will be 6 channels outputting sine waves, 3 other channels with a periodic DC voltage.   The reason for the large file is that we want a continuous signal for around 30 minutes to allow for equipment testing and configuration while the signals are being generated. 
    I'm supposed to use this file to generate the output voltages on the 6733 card, but I keep getting numerous errors and I've been unable to get something that works. The code, as written, currently generates an error code 200290 immediately after the buffered data is output from the card.  Nothing ever seems to get enqued or dequed, and although I've read the Labview help on buffers, I'm still very confused about their operation so I'm not even sure if the buffer is working properly.  I was hoping some of you could look at my code, and give me some suggestions(or sample code too!) for the best way to achieve this goal.
    Thanks a lot,
    Chris(new Labview user)

    Chris:
    For context, I've pasted in the "explain error" output from LabVIEW to refer to while we work on this. More after the code...
    Error -200290 occurred at an unidentified location
    Possible reason(s):
    The generation has stopped to prevent the regeneration of old samples. Your application was unable to write samples to the background buffer fast enough to prevent old samples from being regenerated.
    To avoid this error, you can do any of the following:
    1. Increase the size of the background buffer by configuring the buffer.
    2. Increase the number of samples you write each time you invoke a write operation.
    3. Write samples more often.
    4. Reduce the sample rate.
    5. Change the data transfer mechanism from interrupts to DMA if your device supports DMA.
    6. Reduce the number of applications your computer is executing concurrently.
    In addition, if you do not need to write every sample that is generated, you can configure the regeneration mode to allow regeneration, and then use the Position and Offset attributes to write the desired samples.
    By default, the analog output on the device does what is called regeneration. Basically, if we're outputting a repeating waveform, we can simply fill the buffer once and the DAQ device will reuse the samples, reducing load on the system. What appears to be happening is that the VI can't read samples out from the file fast enough to keep up with the DAQ card. The DAQ card is set to NOT allow regeneration, so once it empties the buffer, it stops the task since there aren't any new samples available yet.
    If we go through the options, we have a few things we can try:
    1. Increase background buffer size.
    I don't think this is the best option. Our issue is with filling the buffer, and this requires more advanced configuration.
    2. Increase the number of samples written.
    This may be a better option. If we increase how many samples we commit to the buffer, we can increase the minimum time between writes in the consumer loop.
    3. Write samples more often.
    This probably isn't as feasible. If anything, you should probably have a short "Wait" function in the consumer loop where the DAQmx write is occurring, just to regulate loop timing and give the CPU some breathing space.
    4. Reduce the sample rate.
    Definitely not a feasible option for your application, so we'll just skip that one.
    5. Use DMA instead of interrupts.
    I'm 99.99999999% sure you're already using DMA, so we'll skip this one also.
    6. Reduce the number of concurrent apps on the PC.
    This is to make sure that the CPU time required to maintain good loop rates isn't being taken by, say, an antivirus scanner or something. Generally, if you don't have anything major running other than LabVIEW, you should be fine.
    I think our best bet is to increase the "Samples to Write" quantity (to increase the minimum loop period), and possibly to delay the DAQmx Start Task and consumer loop until the producer loop has had a chance to build the queue up a little. That should reduce the chance that the DAQmx task will empty the system buffer and ensure that we can prime the queue with a large quantity of samples. The consumer loop will wait for elements to become available in the queue, so I have a feeling that the file read may be what is slowing the program down. Once the queue empties, we'll see the DAQmx error surface again. The only real solution is to load the file to memory farther ahead of time.
    Hope that helps!
    Caleb Harris
    National Instruments | Mechanical Engineer | http://www.ni.com/support

  • Releasing Queue in Producer Consumer model

    I am having a VI which reads data from ethernet,writes to disk,processes and displays. Since lot of processing and displays are there, I am converting it to a Producer- Consumer model so that no data is lost.
    I am using 2 loops. IN the Producer I am doing the UDP read and Write to disk functions.and use the enqueing also.In the Consumer loop I am dequeing it and do all the processing and displays.My idea is to avoid any data loss in UDP reception and file writing.
    My confusion- where to use the release queue?from the Producer or Consumer ? In a third loop ? Should it be in a sequence structure ?
    How to set the loops stop conditions ?
    My requirements for stopping - when I press the stop button the program should stop completely(the Consumer loop should stop only after dequeing and processing all the data in the queue).  If i don't press the stop button the whole program should run continuously (if data does not arrive for some time it should wait without time out-i am using -1 for the time out condition in UDP read.)

    Here is the ultimate Producer-Consumer loop.  It queues a stop command when the stop button is pressed.  This ensures that every element is dequeued and processed before the bottom loop stops.  The last queue data to get processed is the stop command because after you press the stop button, the top loop stops enqueueing more elements. 
    If your data type is other than a string, you can create something to represent stop, like NaN for a numeric. 
    Notice the shift registers.  This is good practice.  Every loop starts with an error out of the previous loop.  If an error occurs, it is passed on to the next loop iteration.  Also, if an error occurs in the consumer loop, the loop stops.  It is good practice to put shift registers on the queue reference also, but not necessary in this case.  If you use a For loop, and the loop iterates 0 times, the output of the queue reference would be a null reference, and the Release Queue would not release the queue.  With While loops, they always iterate at least once, so it isn't necessary.  Its just good practice to make a habit of using shift registers so you don't forget when using For loops. 
    Notice also that the error in to the Release Queue is not wired.  If there were an error, the Release would not take place.  All errors are merged at the end to report exactly where an error occured.  A timeout is included in case an error prevents the stop command from being enqueued or dequeued.
    - tbob
    Inventor of the WORM Global
    Attachments:
    ProducerConsumer.vi ‏53 KB

  • Abap+ java stack or Abap stack

    Hi All,
    How to know whether a system is  ABAP+ JAVA   stack or  JAVA stack.
    In our system   EP6.0  which is JAVA  stack  holds JC00 which is a  java instance direcory. In BW system we have SCS20 and Dvebg...00 directories is it ABAP+ JAVA stack  or  ABAP stack with J2ee engine services.
    Please suggest me...
    Thanks,
    Subhash.G

    In the forder structuer usr\sap\<SID> if you have DVEBMGS<XX> then it's ABAP and if it's JC<XX>, then it's JAVA. Also if under DVEBMGS<XX> you have j2ee and SDM folder then it's a dual stack that is both ABAP and JAVA.
    As for the URL if it's a dual stack then using the browser use the user j2ee_admin and the specified password, else if it is only java then use administrator user and the specified password.
    If it's a dual stack you can also login using sapgui.
    If in case its single stack AS_ABAP
    THere will one be a single node i.e. no message server and enque server. The folder stur would be /usr./sap/<SID>/ and tou would find
    DVEBMG SYS folders only.
    IF in case its single stack Java server then
    In mmc. you will find, 2 nodes one for message server, enque server and the other for the SDM, dispatcher and server0
    the foder struct would be
    /usr/sap/<SID?
    JC><CIno> SCS<no>
    Now in case if you have double stack i.e. AS-java and AS-ABAP you would will find these things in mmc
    Message server and enque server
    disp+work, message server and wp
    the folder struct would be
    /usr/sap/<SID>/
    DVEBMG<no> SCS<no>

  • 'Invalid data' error for outbound 850

    We are transforming a OAG process_po_007 to EDI 850.xml in BPEL and enqueing the message to B2B out queue. We are receiving 'Invalid Data' error in B2B log. Following is the 850.xml file. Also I am attaching some portion of the B2B.log at the end. Any help will be appreciated.
    Thanks
    Saumitra
    ----------------------------------------------850.xml--------------------------------------------------------------
    <?xml version="1.0" ?><Transaction-850 xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:ns1="http://www.edifecs.com/xdata/100" XDataVersion="1.0" Standard="X12" Version="V4010" CreatedBy="ECXEngine_899" CreatedDate="2007-04-19T14:17:00" xmlns="http://www.edifecs.com/xdata/100">
    <ns1:Segment-ST>
    <ns1:Element-143>850</ns1:Element-143>
    <ns1:Element-329>00001</ns1:Element-329>
    </ns1:Segment-ST>
    <ns1:Segment-BEG>
    <ns1:Element-353>00 </ns1:Element-353>
    <ns1:Element-92>AB</ns1:Element-92>
    <ns1:Element-324>Purchase Ord</ns1:Element-324>
    <ns1:Element-328>Release Number</ns1:Element-328>
    <ns1:Element-373>20070419</ns1:Element-373>
    </ns1:Segment-BEG>
    <ns1:Segment-ITD>
    <ns1:Element-351>8</ns1:Element-351>
    <ns1:Element-352>Scheduled for payment 45 days from the invoice date (invoice terms date = system date, goods received date, invoice date or invoice received date). Invoice terms date can default from supplier header, site, PO, system default, etc.</ns1:Element-352>
    </ns1:Segment-ITD>
    <ns1:Loop-N1>
    <ns1:Segment-N1>
    <ns1:Element-98>01</ns1:Element-98>
    <ns1:Element-93>Allied Manufacturing</ns1:Element-93>
    <ns1:Element-67>Code Identification</ns1:Element-67>
    </ns1:Segment-N1>
    <ns1:Segment-N3>
    <ns1:Element-166>1145 Brokaw Road</ns1:Element-166>
    </ns1:Segment-N3>
    <ns1:Segment-N4>
    <ns1:Element-19>San Jose</ns1:Element-19>
    <ns1:Element-156>CA</ns1:Element-156>
    <ns1:Element-116>95034</ns1:Element-116>
    <ns1:Element-26>US</ns1:Element-26>
    </ns1:Segment-N4>
    <ns1:Segment-PER>
    <ns1:Element-366>BD</ns1:Element-366>
    <ns1:Element-93>Veronica Francis</ns1:Element-93>
    <ns1:Element-365>EM</ns1:Element-365>
    <ns1:Element-364>Communication Number</ns1:Element-364>
    </ns1:Segment-PER>
    </ns1:Loop-N1>
    <ns1:Loop-PO1>
    <ns1:Segment-PO1>
    <ns1:Element-350>ASSI</ns1:Element-350>
    <ns1:Element-330>471.814718</ns1:Element-330>
    <ns1:Element-355_1>01</ns1:Element-355_1>
    <ns1:Element-235_2>VP</ns1:Element-235_2>
    <ns1:Element-234_2>AS65103</ns1:Element-234_2>
    </ns1:Segment-PO1>
    </ns1:Loop-PO1>
    <ns1:Loop-CTT>
    <ns1:Segment-CTT>
    <ns1:Element-354>1</ns1:Element-354>
    </ns1:Segment-CTT>
    </ns1:Loop-CTT>
    <ns1:Segment-SE>
    <ns1:Element-96>7</ns1:Element-96>
    <ns1:Element-329>00001</ns1:Element-329>
    </ns1:Segment-SE>
    </Transaction-850>
    ----------------------------------B2B.log--------------------------------------------------------------------
    2007.04.19 at 16:21:01:957: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeTime = #SystemTime(HHMM)#
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter AcknowledgementType = 997
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter GroupSenderID = Acme
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeECSFileBlob
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeAuthorizationInfoQual = 00
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter GroupID = PO
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter TagDelimiter = 0x3d
    2007.04.19 at 16:21:01:958: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter TransactionECSFileKey = 2A956714556799C0E040A341E4CD2203-274-1-4
    2007.04.19 at 16:21:01:959: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter InterchangeSecurityInfoQual = 00
    2007.04.19 at 16:21:01:959: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter GroupECSFileBlob
    2007.04.19 at 16:21:01:959: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter TPName = GlobalChips
    2007.04.19 at 16:21:01:959: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter TransactionImplementationReference = null
    2007.04.19 at 16:21:01:959: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:traceParameters Parameter ReplacementChar = 0x7c
    2007.04.19 at 16:21:02:989: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl Enter
    2007.04.19 at 16:21:02:989: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl fullOutboundBatching = false
    2007.04.19 at 16:21:02:990: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl validateEnvelope = false
    2007.04.19 at 16:21:02:990: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:ISelectorImpl Leave
    2007.04.19 at 16:21:04:986: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:reset Enter
    2007.04.19 at 16:21:04:986: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.ISelectorImpl:reset Leave
    2007.04.19 at 16:21:05:017: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument XML = 1
    2007.04.19 at 16:21:05:018: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument no result from XDataToNative
    2007.04.19 at 16:21:05:293: Thread-12: B2B - (DEBUG) iAudit report :
    Error Brief :
    5084: XEngine error - Invalid data.
    iAudit Report :
    <?xml version="1.0" encoding="UTF-16"?><AnalyzerResults Guid="{7E87F228-EEB3-11DB-B92D-001143EB889E}"> <ExecutionDate>Thursday, April 19, 2007</ExecutionDate> <ExecutionTime>04:21:03 PM (EDT)</ExecutionTime> <AnalyzerReturn>Failed</AnalyzerReturn> <NumberOfErrors>1</NumberOfErrors> <ErrorByCategory> <Category Name="Rejecting"> <Severity Name="Normal">1</Severity> </Category> </ErrorByCategory> <Status>Finished</Status> <DataFile> <FilePath/> <FileName/> <LastModified/> <FileSize/> <DataURL>file://</DataURL> </DataFile> <AnalyzerErrors> <Error ErrorCode="{F35AFE03-C479-4F96-B4F1-2EF36DABC5FE}" Severity="Normal" Category="Rejecting" Index="1" ID="50840000"> <ErrorBrief>5084: XEngine error - Invalid data.</ErrorBrief> <ErrorMsg>Invalid data.</ErrorMsg> <ErrorObjectInfo> <Parameter Name="ErrorLevel">0</Parameter> <Parameter Name="Name">XData2Native</Parameter> <Parameter Name="_ec_dn_guid_">{7F0C043C-EEB3-11DB-B92D-001143EB889E}</Parameter> <Parameter Name="_ec_index">0</Parameter> <Parameter Name="ec_error_scope">Document</Parameter> </ErrorObjectInfo> <ErrorDataInfo> <Part1/> <ErrData/> <Part3/> <DataXPointer> <StartPos>0</StartPos> <Size>0</Size> </DataXPointer> </ErrorDataInfo> </Error> </AnalyzerErrors></AnalyzerResults>
    2007.04.19 at 16:21:05:327: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sErrorGuid = {F35AFE03-C479-4F96-B4F1-2EF36DABC5FE}
    2007.04.19 at 16:21:05:327: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sDescription = Invalid data.
    2007.04.19 at 16:21:05:327: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sBrDescription = 5084: XEngine error - Invalid data.
    2007.04.19 at 16:21:05:328: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = ErrorLevel sParameterValue = 0
    2007.04.19 at 16:21:05:328: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = Name sParameterValue = XData2Native
    2007.04.19 at 16:21:05:328: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = ecdn_guid_ sParameterValue = {7F0C043C-EEB3-11DB-B92D-001143EB889E}
    2007.04.19 at 16:21:05:329: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = ecindex sParameterValue = 0
    2007.04.19 at 16:21:05:329: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument sParameterName = ec_error_scope sParameterValue = Document
    2007.04.19 at 16:21:05:329: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument added Hash Key = {7F0C043C-EEB3-11DB-B92D-001143EB889E}
    2007.04.19 at 16:21:05:329: Thread-12: B2B - (DEBUG) oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin:processOutgoingDocument batch Position = 0
    2007.04.19 at 16:21:05:330: Thread-12: B2B - (ERROR) Error -: AIP-51505: General Validation Error
    at oracle.tip.adapter.b2b.document.edi.EDIDocumentPlugin.processOutgoingDocument(EDIDocumentPlugin.java:1662)

    Hello Saumitra,
    Can you please validated the Edifecs XML you are genering from BPEL against the XSD generated out of spec builder. If you still find this as an issue please send us the ecs, xsd and the xml generated from BPEL for further review.
    Rgds,Ramesh

  • Java advanced queue MDB class usage

    Hello,
    Loads of questions about JMS AQ and MDB.
    I have not found anything that tells you how to use the oracle.jms classes within a MDB's directly. Do I just cast the message to a AQMessage and retrieve from there?
    I have found plenty of documentation about using the oracle.jms classes. Ive found a lot of information about using advanced queues and enqueing and dequeuing to them in Java. I have found information about MDBs and how to use them as a regular service ie: using TextMessage
    Is there a simple document describing MDB oracle AQ classes? I have looked through umpteen million Oracle documents to no avail.
    Is there an interface for MDB in the Oracle AQ classes which has an onMessage() method which I can implement taking in oracle.jms classes?
    When processing a message that I would like to put on another queue do I call the AQ classes to enqueue a message and set its attributes that way or do I use the JMS classes and their methods to do that?

    http://download-west.oracle.com/docs/cd/A97688_12/generic.903/a97677/mdb.htm#1013265 should get me most of the way there.

  • Capture Sticks Hangs on SCN until Out Of Memory

    newbie streaming to upgrade from 10.1 enterprise edition database on Red Hat 2 to 10.2 on Red Hat 4. Downstream capture and apply from archived logs. Has worked fine in test. In production I hit something huge, or weird, or whatever, and capture keeps working on one SCN until it runs out of memory after capturing, creaing and enqueing mega mesaages Takes it a couple hours to finally croak. This has happened a couple times now on two separate attempts to replicate database (ie NOT the same SCN each time). Where can I look to see what's causing this? Thanks very much.
    error:
    ++++ Begin KNST dump for Sid: 263 Serial#: 10
    Init Time: 12/04/2008 20:06:12
    ++++Begin KNSTCAP dump for : STRM01_CAPTURE
    Capture#: 1 Logminer_Id: 1 State: CREATING LCR [ 12/05/2008 00:30:09]
    Capture_Message_Number: 0x0002.d82c2bcc [12216708044]
    Capture_Message_Create_Time: 12/03/2008 10:07:28
    Enqueue_Message_Number: 0x0002.d82c2bcc [12216708044]
    Enqueue_Message_Create_Time: 12/03/2008 10:07:28
    Total_Messages_Captured: 549588
    Total_Messages_Created: 1063856 [ 12/05/2008 00:30:09]
    Total_Messages_Enqueued: 202946 [ 12/05/2008 00:30:09]
    Total_Full_Evaluations: 2
    Elapsed_Capture_Time: 26378 Elapsed_Rule_Time: 0
    Elapsed_Enqueue_Time: 5134 Elapsed_Lcr_Time: 1551701
    Elapsed_Redo_Wait_Time: 0 Elapsed_Pause_Time: 0
    ++++End KNSTCAP dump
    ++++ End KNST DUMP

    Hello
    Few questions:
    1. What RDBMS patchset have you applied on top of 10.2?
    2. You said "it runs out of memory", could you indicate what errors are you running into? Can you paste the complete error message? The section you pasted into the thread was only a part of the capture trace and it does not indicate any error.
    3. How are you verifying that the capture process was keep on mining some particular SCN?
    4. Let me know what value you have set for aq_tm_processes parameter.
    Thanks,
    Rijesh

  • In Dialog server, what type of work process can I use.

    Dear all,
      In Dialog server, what type of work process can I use,
    Can I use all types like dialog, BTC, U1 and U2 , spool, and enque
    regards,
    satish

    Hi,
    you can use dialog, BTC, U1 , U2 and spool
    enque must be on only central instance becoz there is no message server on dialog instance
    regards,
    kaushal

Maybe you are looking for

  • Error while invoking database stored procedure while mapping to varchar,int

    Hi I am using Oracle SOA 11g 11.1.1.4 In that i am calling db procedure.The procedure is taking input parameters int and varchar and nillable is true for both cases.Its a sybase data base. I am calling this db proc through db adater.Here I am mapping

  • Video plays fine in quicktime, not so good on the iPod.

    I downloaded couple a of tv shows that were already in an .mp4 format and the resolution was already configured so it would play on an iPod without any converting. I dragged and dropped the files and I was ready to start watching. I starting watching

  • Export/import memory ID in OO

    I tried to use the conventional way of EXPORT itab TO MEMORY ID 'itab' and IMPORT itab FROM MEMORY 'itab' but it is not working in object oriented environment. How to write the correct syntax in object oriented environment? Thanks

  • Requirement in thousands, rounding off's and no decimals

    Hello, I have a requirement in BPC 10 NW to load figures in 1000's and without any decimal places. The customer doesn't want decimal places and rounding off's to the nearest integer. Can anyone guide me on what would be the best option to go about ?

  • Photoshop 7 color management or monitor settings?

    For financial reasons, I'm still on Photoshop 7. I'm using Windows XP Pro with all the updates. Here's my problem. When I take an outdoor picture (for example) with my nifty new digital Nikon, all the colors look normal on the camera's LCD. As you wo