Queues and Exceptions

Ok, I have a program that involves queues. Now, when the program checks if a queues is empty, if it is, it is supposed to handle an error. My prof uses "Underflow" , but I keep getting errors that it is undefined. I looked in the API and couldn't find anything in java.lang that says Underflow. What error out of java.lang should I use if the queue is empty?
Here is some code so you can see what I mean:
public int getFront() throws underflow
if (! isEmpty())
throw new Underflow("Empty queue"); <---------
return array[front];
try
while (! Subqueue0.isEmpty());
int extract = Subqueue0.dequeue();
Master.enqueue(extract);
} catch(Underflow e){} <--------

You can create your own exceptions in Java like
public class UnderFlowException extends Exceptionto handle several kinds of faults. Seems like your Prof has done so.

Similar Messages

  • Reading Opaque data from jms queue  and decoded  in java embedding

    Hi ,
    Objective:Fetch text message from queue and print it from java embedding in BPEL
    I am fetching text message from a jms queue using JMS adapter in BPEL.Then converting the opaque data(Base64 binary)to string using java embedding.My build got successful but I am getting runtime error at the time of deployment.
    I have added fabric-runtime.jar file into SCA-INF\lib folder as well as project library directory.
    <extensionActivity>
    <bpelx:exec name="Java_Embedding1" version="1.5" language="java">
    <bpelx:exec import="java.io.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Decoder"/>
    <![CDATA[//Write your java code below e.g.        
         System.out.println("Hello, World");       
    //   String input = ((Element)getVariableData("Receive1_Consume_Message_InputVariable")).getTextContent();              
      // String inputName = (String)getVariableData("input");     
      String input = (String)getVariableData("Receive1_Consume_Message_InputVariable");            
    //Receive1_Consume_Message_InputVariable.opaque          
          System.out.println("input:"+input);          
          addAuditTrailEntry(input);           
          Base64Decoder Decoder = new Base64Decoder();             
         try {            
          String decoded = Base64Decoder.decode(input);            
          setVariableData("Variable_opaque_decoded",decoded);            
          addAuditTrailEntry(decoded);           
    catch(UnsupportedEncodingException uee)
    uee.printStackTrace();
    }]]>
    </bpelx:exec>
    </extensionActivity>
    Error:
    Error deploying archive sca_JMSToDBInsert_rev1.0.jar to partition "default" on server AdminServer [http://localhost:7001]
    HTTP error code returned [500]
    Error message from server:
    There was an error deploying the composite on AdminServer: Error occurred during deployment of component: BPELProcess1 to service engine: implementation.bpel, for composite: JMSToDBInsert: ORABPEL-05250
    Error deploying BPEL suitcase.
    error while attempting to deploy the BPEL component file "C:\Oracle\Middleware\user_projects\domains\soa_domain\servers\AdminServer\dc\soa_0fb06e23-bac3-4753-aae9-0fc4b54b4dd1"; the exception reported is: java.lang.RuntimeException: failed to compile execlets of BPELProcess1
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    Check server log for more details.
    Error deploying archive sca_JMSToDBInsert_rev1.0.jar to partition "default" on server AdminServer [http://localhost:7001]
    #### Deployment incomplete. ####
    Error deploying archive file:/C:/SOA Suite/SOA_POC/Client2JMSapps/Client2JMSapps/JMSToDBInsert/deploy/sca_JMSToDBInsert_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    Could you guys please help me regarding this?
    Thanks & Regards,
    Souvik
    Edited by: Souvik Pal on Apr 16, 2012 9:40 PM

    You probably want to try the SOA Suite forum for OSB questions.
    SOA Suite
    There is an excellent book also:
    http://jeffdavies.org/
    The documentation goes over the fundamentals, but the book will be better for step by step examples.

  • Using distributed queues and factories in a weblogic cluster

    Hi all,
    in our environment we have a domain which has two machines. One is running the AdminServer and Node1 and the 2nd machine is running Node2.
    For each Node I have created a JMS Server and a corresponding file store located at each machine.
    I've also created a JMS Module containing our required queues, factories and topics. Queues and Topics are of the Uniform Distributed type.
    I've targeted this module at the cluster and experimented with creating a subdeployment. But from what I recon, since all my resources have default targeting
    enabled, a subdeployment is not required, they target what is targeted by the JMS Module, right?
    However I get an exception when both nodes are up:
    <Nov 4, 2008 11:47:01 AM EET> <Warning> <JMS> <BEA-040498> <An error occurred while forwarding a message for distributed destination member       
    MyJMSModule!MyJMSServer@myTopic: weblogic.messaging.dispatcher.DispatcherException: java.rmi.RemoteException: Couldn't connect to weblogic.rjvm.RJVMImpl@187766d - id: '-1415064081927280896S:10.0.0.5:
    [7001,7001,-1,-1,-1,-1,-1]:app1:7003,app2:7001:my_domain        :NodeApp2' connect time: 'Tue Nov 04 11:47:01 EET 2008' - it is likely that the connection has already been shut down; nested exception is:
    5564732         java.rmi.ConnectException: Couldn't connect to weblogic.rjvm.RJVMImpl@187766d - id: '-1415064081927280896S:10.48.92.70:[7001,7001,-1,-1,-1,-1,-1]:app1:7003,app2:7001:my_domain:NodeApp2'
    connect time: 'Tue Nov 04 11:47:01 EET 2008' - it is likely that the connection has already been shut downThe two nodes are up and running and the node managers as well. Is this the correct way to create the queues and topics for a clustered environment?
    Thanks
    Edited by: dvm on Nov 4, 2008 3:12 AM

    I've done the steps but the problem still persists. I don't know if I had this before, but now both machines can't see each other.
    From Node1 logs *.out file:
    <Warning> <JMS> <BEA-040498> <An error occurred while forwarding a message for distributed destination member MyJMSModule!MyJMSServer2@my_cacheTopic:
    weblogic.messaging.dispatcher.DispatcherException: java.rmi.RemoteException:
    Couldn't connect to weblogic.rjvm.RJVMImpl@62017d - id: '4786464166486913267S:10.48.92.70:[7001,7001,-1,-1,-1,-1,-1]:app1:7003,app2:7001:my_domain:NodeApp2'
    connect time: 'Wed Nov 05 16:03:53 EET 2008' - it is likely that the connection has already been shut down; nested exception is:
    java.rmi.ConnectException: Couldn't connect to weblogic.rjvm.RJVMImpl@62017d - id: '4786464166486913267S:10.48.92.70:[7001,7001,-1,-1,-1,-1,-1]:app1:7003,app2:7001:my_domain:NodeApp2'
    connect time: 'Wed Nov 05 16:03:53 EET 2008' - it is likely that the connection has already been shut downand from Node2 logs *.out file:
    <Warning> <JMS> <BEA-040498> <An error occurred while forwarding a message for distributed destination member MyJMSModule!MyJMSServer1@my_cacheTopic:
    weblogic.messaging.dispatcher.DispatcherException: java.rmi.RemoteException:
    Couldn't connect to weblogic.rjvm.RJVMImpl@24b64a - id: '-788798942991630857S:10.48.92.69:[7003,7003,-1,-1,-1,-1,-1]:app1:7003,app2:7001:my_domain:NodeApp1'
    connect time: 'Wed Nov 05 16:03:59 EET 2008' - it is likely that the connection has already been shut down; nested exception is:
    java.rmi.ConnectException: Couldn't connect to weblogic.rjvm.RJVMImpl@24b64a - id: '-788798942991630857S:10.48.92.69:[7003,7003,-1,-1,-1,-1,-1]:app1:7003,app2:7001:my_domain:NodeApp1'
    connect time: 'Wed Nov 05 16:03:59 EET 2008' - it is likely that the connection has already been shut downThis happens just after the managed servers have been started with the application previously deployed.

  • Most all my applications are crashing. The Exception Type on all that crash: EXC_BAD_ACCESS (SIGBUS) and Exception Codes: KERN_PROTECTION_FAILURE at ... I am a newbie, does anyone have an idea what has happened?

    Most all my applications are crashing.
    The Exception Type on all that crash: EXC_BAD_ACCESS (SIGBUS) and Exception Codes: KERN_PROTECTION_FAILURE at ...
    All browsers but Safari crash
    I can't view any video media but quicktime works.
    Example: iPhoto
    Process:         iPhoto [2167]
    Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto
    Identifier:      com.apple.iPhoto
    Version:         9.1.5 (9.1.5)
    Build Info:      iPhotoProject-6150000~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [254]
    Date/Time:       2011-09-05 16:25:22.327 -0500
    OS Version:      Mac OS X 10.7.1 (11B26)
    Report Version:  9
    Interval Since Last Report:          734286 sec
    Crashes Since Last Report:           427
    Per-App Interval Since Last Report:  154207 sec
    Per-App Crashes Since Last Report:   2
    Anonymous UUID:                      9AD5F8B1-380F-4563-A57D-A589708BA3D2
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x000000009802d0cb
    Just about everything crashes.
    Help...please?

    How old is this machine? If it's less than 90 days old you have 90 days of Free AppleCare coverage, call them! You will find the phone number in your manual. If it's out of AppleCare or you bought it used take it your local Apple Store or AASP to have it looked at. We don't have enough information to know what the problem might be. You can run some tests such as Apple Hardware Test in Extended Mode 2-3x to see if it has any hardware errors. Beyond that it's really tough to say.

  • Sending message to a JMS queue and making DB update through a single container managed transaction

    Can we use container managed transactions to send message to JMS queue and make DB updates in a sigle transaction. If yes then do we need 2pC license. I am using weblogic 6.0 SP2 and my database driver do not supports XA

    If your JMS provider is XA compliant, you can.
    If you are using WebLogic 6.0 JMS, it supports 2PC.
    The JDBC resource that does not support XA can participate in the global transaction
    creating a TXDataSource and setting "enable two-phase commit"=true in the Configuration
    panel.
    About the JMSConnectionFactory, on the console, in WebLogic 6.0, in the "Transaction"
    tab folder, set "User Transactions Enabled"=true.
    In your code, use non-transacted sessions.
    For 2pc protocol, you need a license or you'll get an exception.
    Sergi
    Manoj Bansal <[email protected]> wrote:
    Can we use container managed transactions to send message to JMS queue and
    make DB updates in a sigle transaction. If yes then do we need 2pC license.
    I am using weblogic 6.0 SP2 and my database driver do not supports XA

  • ORA-39080: failed to create queues "" and "" for Data Pump job

    When I am running datapump expdp I receive the following error:
    +++Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc+++
    +++tion+++
    +++With the Partitioning, OLAP and Data Mining options+++
    +++ORA-31626: job does not exist+++
    +++ORA-31637: cannot create job SYS_EXPORT_SCHEMA_01 for user CHESHIRE_POLICE_LOCAL+++
    +++ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95+++
    +++ORA-06512: at "SYS.KUPV$FT_INT", line 600+++
    +++ORA-39080: failed to create queues "" and "" for Data Pump job+++
    +++ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95+++
    +++ORA-06512: at "SYS.KUPC$QUE_INT", line 1555+++
    +++ORA-01403: no data found+++
    Sys has the following two objects as invalid at present after running catproc.sql and utlrp.sql and manual compilation:
    OBJECT_NAME OBJECT_TYPE
    AQ$_KUPC$DATAPUMP_QUETAB_E QUEUE
    SCHEDULER$_JOBQ QUEUE
    While I run catdpb.sql the datapump queue table does not create:
    BEGIN
    dbms_aqadm.create_queue_table(queue_table => 'SYS.KUPC$DATAPUMP_QUETAB', multiple_consumers => TRUE, queue_payload_type =>'SYS.KUPC$_MESSAGE', comment => 'DataPump Queue Table', compatible=>'8.1.3');
    EXCEPTION
    WHEN OTHERS THEN
    IF SQLCODE = -24001 THEN NULL;
    ELSE RAISE;
    END IF;
    END;
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at line 7

    Snehashish Ghosh wrote:
    When I am running datapump expdp I receive the following error:
    +++Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Produc+++
    +++tion+++
    +++With the Partitioning, OLAP and Data Mining options+++
    +++ORA-31626: job does not exist+++
    +++ORA-31637: cannot create job SYS_EXPORT_SCHEMA_01 for user CHESHIRE_POLICE_LOCAL+++
    +++ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95+++
    +++ORA-06512: at "SYS.KUPV$FT_INT", line 600+++
    +++ORA-39080: failed to create queues "" and "" for Data Pump job+++
    +++ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95+++
    +++ORA-06512: at "SYS.KUPC$QUE_INT", line 1555+++
    +++ORA-01403: no data found+++
    Sys has the following two objects as invalid at present after running catproc.sql and utlrp.sql and manual compilation:
    OBJECT_NAME OBJECT_TYPE
    AQ$_KUPC$DATAPUMP_QUETAB_E QUEUE
    SCHEDULER$_JOBQ QUEUE
    While I run catdpb.sql the datapump queue table does not create:
    BEGIN
    dbms_aqadm.create_queue_table(queue_table => 'SYS.KUPC$DATAPUMP_QUETAB', multiple_consumers => TRUE, queue_payload_type =>'SYS.KUPC$_MESSAGE', comment => 'DataPump Queue Table', compatible=>'8.1.3');does it work better when specifying an Oracle version that is from this Century; newer than V8.1?

  • Hi, my MacBook Pro cannot open Safari. nexpectedly while using the librooksbas.dylib plug-in" the report details the exception code as 'EXC_BAD_ACCESS (SIGSEGV)' and exception codes as: 'KERN_INVALID_ADDRESS at 0x0000000920

    Hi, my MacBook Pro cannot open Safari. It crashes and gives the message, ' Safari quit unexpectedly while using the librooksbas.dylib plug-in" the report details the exception code as 'EXC_BAD_ACCESS (SIGSEGV)' and exception codes as: 'KERN_INVALID_ADDRESS at 0x0000000920

    Remove "Rapport" by following the instructions on this page.
    Back up all data before making any changes.

  • Jobs stay in queue and keep printing until you cancel them--then stops the print spooler...why?

    My Printer: HP Photosmart C309a
    My  Laptop: HP G71 series
    Operating System: Windows 7 (64 bit) but runs a lot of stuff on 32 bit
    Problem: I print ONE copy of a multiple page document in Adobe Reader 9. I select even pages only (after which I would reinsert the pages and tell it to print odd pages only, to get the other side). The printer makes a sound indicating the job is finished, I remove my pages to collate them, and then the printer continues to print the job again without so much as a keystroke.
    Naturally, you find the printer in the devices on the control panel, click "see what's printing" and highlight the job and cancel it.
    Then somehow it turns off my print spooler. 
    I have tried everything suggested on other forums, like
    restart the laptop/restart the printer
    going to c\windows\system32\spool\printers and deleting whatever is hung up in there (usually a shockwave file).
    Going to Services\print spooler \properties and making sure the settings are set to automatic
    Uninstall\reinstall latest driver and software
    Switching from Adobe Reader 10 to Adobe Reader 9
    Use System Restore to try to reset the system to a previous state.
    Run Trend Micro to check for viruses and spyware--nothing shows up.
    I am positive the pdf doc is NOT the problem, because I can print it on my husband's laptop multiple times over with no problems.
    Does anyone have this problem as well? Has anyone found a genuine solution other than manually canceling print jobs in queue and constantly restarting the print spooler?
    Thanks in advance for any suggestions.
    --Holly

    Hi,
     I believe your printer is wirelessly connected to your computer, right?!
     What's the current printer software version installed in your laptop computer?! 
     to see: click start>control panel>uninstall a program under Programs then it will tell you the software version like HP Photosmart c309a v13 or v14.
    If the software version is v13, click here to download and install the current software.
    IF all things still fail, try to use the workaround provided by HP in this link. It says:
    Workaround
    Your HP printing product can operate sufficiently using an alternate print driver, although there might be some limitations. For instance, some buttons on the product control panel might not function, but the product prints normally from the computer. If the solutions in this document do not solve the issue, download and install an alternate print driver.
    Follow these steps to install the HP Deskjet 990C print driver.
      NOTE:  These steps install the new print driver using the same port that the product already uses. The product functions normally with multiple drivers on the same port.
    Find the port that the product already uses.
    Click the Windows icon ( ), and then click Control Panel . The Control Panel opens in a new window.
    Click Hardware and Sounds .
    Click Printers . The Printers folder opens.
    Right-click the product icon ( ), and then click Properties . The Propertieswindow opens.
    Click the Ports tab. A window opens with a list of ports. The port for the product has a checkmark or a highlight.
    Note the name of the port indicated for the product.
    Close the Properties window, and then continue with the next steps.
    Click Add a Printer in the menu bar at the top of the Printers window. The Windows Add Printer Wizard opens.
    Click Add a local printer .
    Select Use an existing Port .
    Click the drop-down menu next to Use an existing Port , and then select the port that you noted earlier in these steps.
    Click Next .
    In the Manufacturer pane, click HP .
    In the Printers pane, click HP Deskjet 990c , and then click Next . (IF YOU CANT FIND DESKJET 990C, JUST CLICK WINDOWS UPDATE WITHIN THIS WINDOW. THEN FIND DESKJET 990C and then click next)
    Type a name for the new printer in the Printer name box, or keep the default name.
    Select Set as the default printer , and then click Next . A window opens with a progress bar as the printer installs. Then a new window opens.
    Click Do not share this printer , and then click Next .
    If you want to print a test page, click the Print test page button.
    Click Finish to complete the driver installation.
    Try printing again, but select HP Deskjet 990c from the Print dialog box.
    If this solves the issue, follow these steps to use the HP Deskjet 990c print driver whenever you send print jobs to the product.
    In the program you are using, select the option to print. The Print dialog box opens.
    Click the Name drop-down menu, and then select HP Deskjet 990c .
    Change print settings as desired in the Paper size , Quality , and Paper type drop-down menus.
    Select the Print range and Copies options as desired.
    Click OK . The product prints the file.
    Kiko

  • How to delete the data in update queue and delta queue for Queued delta?

    Dear BWers,
    How do i delete the delta queue and update queue data before i fill the setup tables for a extraction based on Queued delta. Please help.
    Thanks
    Raj

    Hi Raj,
    I think you need some ground work for the LO extraction same as others here. Please read the 3 blogs expliciltly created for LIS by Robert Negro.
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    As well, the OSS 380078 would clear your doubts reagrding the the BW QUEUE mainatinance. 
    Please let me know if these material has been suffecient enough.
    regarda,
    raj

  • Is it possible to wait on a queue and on a notifier at the same time?

    Hi!
    I am trying to implement an event-driven producer/consumer pattern with queues. The problem is that I have some value change events (e.g. coming from a slider) that I do not want to queue up; I want only the latest value change event to be processed by the consumer loop. This is because the consumer may spend longer time in executing (sometimes multiple seconds) and I want to prevent all intermediate slider events to be queued up in the meantime because I will finally write them to hardware. Therefore, a notifier would be better to use here than a queue. My question is if it is possible to make the same consumer loop wait on the queue as well as on the notifier at the same time? I will be wiring the VISA session and some other data through the consumer, so it want to avoid an extra loop that would wait on the notifier only. Or is there any other possible workaround?
    Thanks in advance.
    Regards,
    Anguel
    Solved!
    Go to Solution.

    AStankov wrote:
    crossrulz, many thanks for the code example and this is probably exactly what Mark suggested. Unfortunately, I do not really understand the logic behind it, i.e. why wait on the queue and then on the notifier?
    It isn't really waiting on the notifier.  The wait is set to 0.  So if there is no new data in the notifier, instant timeout and skip the DAQ stuff.
    The idea here is to send the set value (from the slider) through the notifier and send the command through the queue.  When the consumer loop gets the command, it will read the notifier for the latest data point and go to work.  Now if the user changes a bunch of stuff while a "long" acquisistion is happening, the notifier will keep being overwritten; it will only keep the last commanded value.  The queue will get multiple commands, but only the last value will be worked on due to the notifier.  The remaining commands will check the notifier, see that there's no new data, and skip to the next command.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Officejet Pro 8600 Wireless Setup -Printing shows in Queue and then disappears. Not Printing

    I just received the Officejet Pro 8600 as a gift and loaded the set up software and  it on my wireless network.  When I try to print an email or a coupon, the command goes to the printer and shows in the queue. Then after several seconds, the printing queue (job) disappears without printing the document.  Does this command go through the HP ePrint function or the Network Officejet Pro 8600?  It shows the HP ePrint as being on USB.
    I've run all of the diagnostics, downloaded all of the new software, firmware and updates.  I've spend many hours trying to get the printer to print.
    Thank you for any help you can provide.
    This question was solved.
    View Solution.

    Hi @bksechols
    Welcome to the HP Support Forums.  I understand that when you send a print job to your Officejet 8600 printer that it goes to the print queue and then disappears without the print job printing.
    To better assist you, would you please provide some additional information?
    How is the printer connected (USB cable, ethernet, or wireless)?
    What operating system are you using?
    Are all print jobs failing? If yes and you are using a Windows operating system, please Try the HP Print and Scan Doctor for Windows.  The HP Print and Scan Doctor is a free utility (tool) that helps to quickly resolve common printing, scanning and connectivity issues.
    When you send a print job are emailing the printer’s ePrint email address? If so please review The HP ePrint Print Job Did Not Print If you are sending the print job by using the print command, please review the Print Jobs from Your HP Printer are Stuck in the Print Queue document. 
    I look forward to hearing from you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • MS Exchange server 2010 messages will be placed in the poison queue and the transport service will crash

    Can any1 please help.
    We have Exchange server 2010, we just upgraded it with SP3 and then the issue occers that we were unable to send n receive mail outside of our LAN...i mean from gmail or hotmail..
    we have then updated with CU4 which is the latest but still messages will be placed in the poison queue and the transport service will crash.
    We have disabled the antivirus also but issue remains same.
    We have CAS 1 n 2 as of Clustering environment and we upgraded sp3 for both. but we did CU4 on CAS1 to see the results to resovle this issue but no luck

    Hi,
    Did you get any NDR message now when you send a email to outside? And vice versa.
    In addtion,I recommend you telnet to port 25 to test SMTP communication.
    If any question,please feel free to post here.
    Thanks.
    Niko Cheng
    TechNet Community Support

  • How to use the validations and exceptions  in BPEL

    Hi,
    How to use the validations and exceptions in BPEL.
    pls provide one sample example to give the exceptions and validations in BPEL

    Hi,
    For example you can create a simple BPEL Process and you can throw an error during running process. If input data is not valid and format is not correct you can throw error using throw activity and using catch activity you can catch particular error. The catch-all will handle all the error occurred with the scope.
    you can also refer faulthandling section in the link for more information related to exception handling.
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/faults.htm#sthref1188
    Regards,
    Deepa

  • Parallel process with a queue and file?

    Hello, first of all sorry for my bad english^^:
    I am working for days on my project where I have to show the parallel process while transfering information by different ways and their problems (like timing and so on). 
    I chose the transmission of information to a parallel process by (1) a queue, and by (2) a file (.txt). (other ways are welcome, do you have 1-2 other ideas?)
    To solve this problem I made three while loops, the first one is the original one, where the original information (as a signal) is created and send by queue and file to the other two while loops, where this information is getting evaluted to create the same signal.
    so in the end you can compare all signals, if they are the same - so that you can answer the question with the parallelity of process.
    but in my vi file i have some problems:
    the version with the queue works pretty fine - it's almost parallel
    but the version with file doesn't work parallel, and i have no idea how i can solve it - -
    i'm a newbie^^
    can someone correct my file, so both (file and queue version) run parallel with the original one, or tell me what i can or must do?
    Attachments:
    Queue_Data_Parallel_FORUM.vi ‏23 KB

    LapLapLap wrote:
    Hello, first of all sorry for my bad english^^:
    I am working for days on my project where I have to show the parallel process while transfering information by different ways and their problems (like timing and so on). 
    I chose the transmission of information to a parallel process by (1) a queue, and by (2) a file (.txt). (other ways are welcome, do you have 1-2 other ideas?)
    To solve this problem I made three while loops, the first one is the original one, where the original information (as a signal) is created and send by queue and file to the other two while loops, where this information is getting evaluted to create the same signal.
    so in the end you can compare all signals, if they are the same - so that you can answer the question with the parallelity of process.
    but in my vi file i have some problems:
    the version with the queue works pretty fine - it's almost parallel
    but the version with file doesn't work parallel, and i have no idea how i can solve it - -
    i'm a newbie^^
    can someone correct my file, so both (file and queue version) run parallel with the original one, or tell me what i can or must do?
    A queue is technically never parallell, though you can have several if you really need parallellism. Other methods include Events, Action Engines, Notifiers (and why not webservices) for information transfer between processes.
    Due to limitations in the disk system you can only read/write one file at a time from one process, so i wouldn't recommend that. If you use a ramdisk it might work.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Issue with Distributed Queue and WebLogic Clustering

    Hi, When a message is received by distributed queue, MDB is processing the message on two managed servers. There seems to be issue with clustering and the physical queues present on both the managed servers are receving the message.
    Our environment configuration details are as below:
    One Web logic Cluster with 2 nodes (2 managed web logic servers).
    One MDB deployed on the cluster listening to a queue with JNDI name “xng/jms/CODEventsQueue”
    One Distributed queue with two members on the two nodes of the cluster, and with JNDI name “xng/jms/CODEventsQueue”
    Two members of the distributed queue deployed on two JMS servers, which are separately deployed on each managed server .
    And the distributed queue is deployed on the cluster.
    Any help is appreciated.
    Thanks
    Sampath

    It is not clear to me how you concluded that "both the managed servers are receiving the message". Did you monitor the queues' statistics, or did you see both MDB instances received the same message?
    It looks like that you using a weighted distributed queue. Do the two physical queues that compose the distributed queue have their own JNDI names? If so, what are they?
    Have you tried to use a uniform distributed queue and see if the same behavior shows up?
    You can find more about uniform distributed destination at
    http://edocs.bea.com/wls/docs103/jms/dds.html#wp1313713
    BTW, which WebLogic Server releases are you using? Could you provide the distributed queue configuration?
    Thanks,
    Dongbo

Maybe you are looking for

  • How do i delete multiple playlists created on iphone?

    I have a real mess.  My wife (on her iPhone 4) chose to "add a playlist" in her music app.  She did.  We have iTunes Match set up on our Mac and all iPhone and iPad devices (4 iPhones and 3 iPads).  Somehow the playlist cloned itself.  I know have ov

  • Can I use SCC-DI01 modules with a PCI-6533 device?

    I am looking into performing buffered acquisition of various digital signals using a PCI-6533 device. Can I use SCC-DI01 modules with this device? If so, would this be via the SC-2345 Carrier? The manual seemed to suggest is was only compatible with

  • Soap Receiver adapter , Target URL and Soap Action

    HI all,           WIll anyone tell me regarding Soap action, casue , they have given a URL which i have put in Target URL, but i am not able to understand what is SOap action what need to be put in this Thankign you Sridhar

  • Samsung 55" Smart TV

    We just bought this TV last week and it has that "flashlight effect" in the upper left hand corner and I was told it will go away in a couple weeks? Does it really go away or do I need to get a new TV?

  • Can not stripe T/C using Edit-to-tape balck and code function

    I am in Edit-to-tape mode, mastering, I have T/C enabled, I am attempting to stripe an NTSC Digibeta; I click black and code and choose the settings and then select starting T/C (00;56;00;02) and click Drop Frame, click OK when it says it will erase