Consumer Producer and FPN

I have a layered portal approach, one for internal use, one for external customers and one for vendors. With multiple WD for java apps, and webservices deployed can a portal serve as both producer and comsumer becuase of our approach.
Thanks Mikie

can a portal serve as both producer and comsumer
yes it is, a consumer can produce the content aswell
jo

Similar Messages

  • Business Package on Producer and Consumer in a FPN

    Hi Gurus,
       I need to know if we need to install the Same Business packages on both the producer and consumer or is it enough to install the Business Package only on the producer....
    Regards!

    Whats your scenario, typically one would go about installing business packages and other content on the producer or multiple producers and federate it with a consumer portal and provide access via the consumer.
    For example if you have a box which hosts ESS content, another box which hosts BI content and you have a global portal which is the box which all the end users will be accessing, then you simly have to install BP for ESS on the ESS box, create BI content on the BI box and display all this content via the consumer (global portal).
    Hope this helps.
    Good Luck!!
    GLM

  • Producer content is not visible in Consumer portal in FPN

    Hi All,
    we have configured FPN and the connection is successful, but we are not able to see the Producer content in  Consumer portal.
    and we are not able to search the producer roles from Identity Management of Consumer also.
    We did,
    1.  we configured trust between two portals.
    2. Registered Producer.
    3. Remote_role  with  actions aslo added in Producer.
    Thank you.

    Check whether you have proper permissions on the pcd objects (roles/pages/iviews) in producer portal.
    Also check the producer roles have entry point 'Yes'.
    Also you should logon to the producer with the same role atleast once as you are assigning the producer role in conusmer portal(RRA). This is the limitation in FPN.
    Raghu

  • Consumer/producer fast AI and AO.

    I made a routine for fast DAQmx (PXIe-6124) acquisition in two while loop (consumer and producer).
    Currently it can be run by pushing run-button. 
    But, I would like to one more while loop (totally 3) for user-friendly interface and integrating sub-program using event structure.
    Among troubles I thought, these three loops can affect the acquisition speed of DAQmx.
    For example, if I send a "Acquire" signal to producer and consumer of DAQmx from event loop,
    this mean I also have to send "Stop" command.
    This requires more functions in every real-time acquisition iteration.
    -conditional state loop and cluster bundle of 2D(500*500 DBL array) and variant of command enum or data to control consumer loop in producer of DAQmx.
    -conditional state loop for next step and cluster unbundle of data in consumer loop.
    My question is...
    Are there some special or rule-of-thumb techniques for continuous, fast and large data DAQmx acquisition in producer and consumer using three while loops?
    Instead of this, do I had better use call-by-reference under other main program?
    labmaster.
    *)I am sorry I can't post my code because of modifying and hidden subVIs. 

    You will need some logic in your producer loop to execute the stop command sent by the first while loop but won't need one for the consumer loop since it can stop on error when the producer loop is stopped and the queue you are reading from is destroyed.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Weblogic Producer and Sun Portal as Consumer

    Hi,
    I am trying to have Weblogic 8.1SP4 as a producer and Sun Portal 2005Q1 as consumer.
    I have deployed my JSR 168 compliant portlet application on Weblogic. When i try 2 register a WSRP consumer in Sun Portal using the WSDL URL generated by Weblogic it throws a
    java.io.FileNotFoundException: http://hostip:port/TestPortalProject/wlp_wsrp_v1_bindings.wsdl.
    Any suggestions on why such an exception is thrown?
    Regards,
    Mukta

    This is a known issue. The work-around is to deploy copy the imported
    files from wsrp-common.jar's schema/src dir to the root of your webapp.
    Subbu
    Mukta Shetye wrote:
    Hi,
    I am trying to have Weblogic 8.1SP4 as a producer and Sun Portal 2005Q1 as consumer.
    I have deployed my JSR 168 compliant portlet application on Weblogic. When i try 2 register a WSRP consumer in Sun Portal using the WSDL URL generated by Weblogic it throws a
    java.io.FileNotFoundException: http://hostip:port/TestPortalProject/wlp_wsrp_v1_bindings.wsdl.
    Any suggestions on why such an exception is thrown?
    Regards,
    Mukta

  • Producer and Consumer  JMS Connections

    Hello,
    I am writing a JMS provider and I notice that Flex creates a
    JMS connection for a Producer and another JMS connection for a
    Consumer in my test application. Is this normal behavior for Flex
    or do I have a problem with my provider that is causing this?
    Thanks,
    Chris Shafer, George Weiss Associates

    If your goal is to have one JMS Consumer which receives
    messages and broadcasts them to Flex clients, you can do this
    without using the JMS adapter. Write some Java code either as a
    "message driven bean" or using the JMS apis directly to grab the
    JMS messages. You can then convert these messages to flex messages
    and send them to an ActionScriptAdapter flex messaging destination.
    See the Feed.java sample for the code necessary to do this. The
    trickiest part of this is getting the JMS messages in the first
    place. We are working on packaging up our JMS consumer apis so you
    can do this more easily in a future release.

  • Is there any command/query/etc, which would allow to understand what database objects (for example tables) are consuming memory and how much of it?

    TimesTen Release 11.2.1.9.6 (64 bit Linux/x86_64)
    Command> dssize;
    PERM_ALLOCATED_SIZE:      51200000
      PERM_IN_USE_SIZE: 45996153
    PERM_IN_USE_HIGH_WATER:   50033464
    TEMP_ALLOCATED_SIZE:      2457600
    TEMP_IN_USE_SIZE:         19680
    TEMP_IN_USE_HIGH_WATER:   26760
    Is there any command/query/etc, which would allow to understand what database objects (for example tables) are consuming memory and how much of it?
    tried to use ttsize function, but it gives some senseless results – for example, for the biggest table, tokens, it produces following output (that this table is 90GB in size – what physically cannot be true):
    Command> call ttsize('tokens',null,null);
    < 90885669274.0000 >
    1 row found.

    Are you able to use the command line version of ttSize instead? This splits out how much space is being used by indexes (in the Temp section of the TT memory segment), which I think is being combined into one, whole figure in the procedure version of ttSize you're using. For example:
    ttSize -tbl ia my_ttdb
    Rows = 4
    Total in-line row bytes = 17524
    Total = 17524
    Command> create index i1 on ia(a);
    ttSize -tbl ia my_ttdb;
    Rows = 4
    Total in-line row bytes = 17524
    Indexes:
    Range index JSPALMER.I1 adds 5618 bytes
      Total index bytes = 5618
    Total = 23142
    Command> call ttsize ('ia',,);
    < 23142.0000000000 >
    1 row found.
    In 11.2.2 we added the procedure ttComputeTabSizes which populates system tables with detailed table size data, and was designed to be an alternative to ttSize. Unfortunately it still doesn't calculate index usage though, and it isn't in 11.2.1.

  • Consumer producer - Acquisiton image but only producer loop run

    Dear all
    I try acquire and save image from Basler camera L301kc and NI PCe 1427 framegrabber. I create a producer/ consumer loop because the save take more time that the acquisition and if I do both in the same loop I lose frames. But I have problem: only producer loop run.
    I have read all the threads but I didn't manage to solve my problem.
    I have attached a VI code of how I was trying to do it. I am using LabView 2011.
    Please any comments or help is deeply appreciated.
    Thank in advance
    XuanThuy
    Solved!
    Go to Solution.
    Attachments:
    Acquisition Image for Sample 03.vi ‏75 KB

    Dear Kira T,
    The producer and consumer loop has run but the Image Out in consumer loop is empty. Bruce attention to the error wire from the consumer loop wired to the destroy queue vi. But I don't find error.
    I have attached a new VI code.
    Can you help me ?
    Thanks and regards
    XuanThuy
    Attachments:
    Acquisition Image for Sample 03.vi ‏71 KB
    Linescan camera setup Sub VI.vi ‏26 KB

  • BI query not properly displaying in Consumer Portal - Through FPN - RRA

    Hi Everyone,
    we have implemented FPN between EP 7.0 and BI 7.0 . A role with BI reports (iview created using Bex7.0 template) are working fine in BI Portal.
    When its RRA to a users in EP-consumer portal, its not coming properly. I mean it shows some default header/Menu (like New Analysis Open, Save As, Information, Send etc..) in EP but not displaying the details of the report. Other URL iviews are working fine in RRA, just BI query is not coming properly. All pre-requisite for FPN is done properly and SSO configured.
    Appreciate if some one can provide a solution
    Thanks

    Dear Guru,
    I am also facing the same problem.  What you had faced earlier.  Can you explain the detailed solution to resolve this
    problem. BI query not properly displaying in Consumer Portal - Through FPN - RRA.
    If you can explain the solution that will be great.
    With Thanks and Regards,
    Anil Kumar.

  • Is it a proper way to use queue for consumer/producer model?

    Hi all,
      I am following the example of consumer/producer model to use the queue to synchronize the following process: The producer is a loop to produce N numbers, I will put every generated number into an array and after every 5 numbers generated, I put the array into the queue and pass it to the consumer. I have to wait the consumer use up the data and it will then remove the element from queue so the producer will get a chance to produce another 5 numbers. Since I set the maximum size of the queue to be ONE, I expect the producer and consumer take turns to produce / consume all five numbers and pass the chance to the other. Here is my code
    when the case box is false, the code will be
    For the first 5 numbers, the produce will generate every thing right and put that into the array, and it will pass the array to the quere so the consumer will get a chance to loop over the array. I except the procude's loop will continue only when the queue is available (i.e. all elements are removed), but it seems that once the consumer start the loop the produce 's loop will continue (so the indicator x+1 and x+2 will show numbers changed). But it is not what I want, I know there must be something wrong but I can't tell what is it.
    Solved!
    Go to Solution.

    dragondriver wrote:
    As you said in 1, the sequency structure enforcing the execution order, that's why I put it there, in this example, to put the issue simple, I replace the complete code with number increase, in the real case, the first +1 and +2 must be executed in that order.
    Mikeporter mentioned:
    1. Get rid of all the sequence structures. None of them are doing anything but enforcing an execution order that would be the same without them.
    So even if you remove the sequence structure, there will be a fixed & defined execution order and that is because LabVIEW follows DATA FLOW MODEL.
    Data Flow Model (specifically in context of LabVIEW): A block diagram node executes when it receives all required inputs. When a node executes, it produces output data and passes the data to the next node in the dataflow path. The movement of data through the nodes determines the execution order of the VIs and functions on the block diagram (Click here for reference).
    Now in your code, just removing the sequence structure will not make sure that the execution order will gonna remain same but you need to do few very small modifications (like pass the error wire through For loop, before it goes to 'Dequeue Element' node).
    Coming to the main topic: is it a proper way to use queue for consumer/producer model?
    The model you're using (and calling it as consumer/producer model) is way too deviated from the original consumer/producer model model.
    dragondriver wrote:
    For the second one, yes, it is my fault to remove that while. I actually start from the example of Producer/Consumer design pattern template, but I didn't pay attention to the while loop in the consumer part.
    While loops (both Producer & Consumer) are the essential part of this architecture and can't be removed. You may want to start your code again using standard template.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • WSRP Consumer - producer registration error : (100)continue return code

    I am trying to get an ALI WSRP Consumer working with the ALI WSRP Producer. Whenever I try to register the producer wsdl, the consumer fails with the error :
    Failed to get a service description from WSRP provider!
    Error message from WSRP provider: (100)Continue
    Any clues? I can successfully register this producer with a different portal's consumer. Is there a configuration property that needs to be set to allow the (100) response code? Or perhaps my Producer should avoid that response code in the first place? Has anybody run into this?
    Below is the stack trace generated by my consumer on the back-end (from ALI Logging Spy) :
    Failed to get service description from WSRP provider: http://scollins.sd.defenseweb.net:80/wsrpproducer1.1/1.0/WSRPBaseService.asmx
    AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (100)Continue
    faultActor:
    faultNode:
    faultDetail:
         {}string: return code: 100
    HTTP/1.1 200 OK
    Server: Microsoft-IIS/5.1
    Date: Wed, 22 Apr 2009 23:31:53 GMT
    X-Powered-By: ASP.NET
    Connection: close
    X-AspNet-Version: 2.0.50727
    Cache-Control: private, max-age=0
    Content-Type: text/xml; charset=utf-8
    Content-Length: 3084
    &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;&lt;soap:Envelope xmlns:soap=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:wsa=&quot;http://schemas.xmlsoap.org/ws/2004/03/addressing&quot; xmlns:wsse=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd&quot; xmlns:wsu=&quot;http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&quot;&gt;&lt;soap:Header&gt;&lt;wsa:Action&gt;urn:oasis:names:tc:wsrp:v1:getServiceDescriptionResponse&lt;/wsa:Action&gt;&lt;wsa:MessageID&gt;uuid:dc3a3069-320a-4a6d-a997-45313098bc00&lt;/wsa:MessageID&gt;&lt;wsa:RelatesTo&gt;uuid:c827c145-c82d-4958-a201-30e7a86c053b&lt;/wsa:RelatesTo&gt;&lt;wsa:To&gt;http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous&lt;/wsa:To&gt;&lt;wsse:Security&gt;&lt;wsu:Timestamp wsu:Id=&quot;Timestamp-18d05f2a-c5dd-4519-8d1d-24b68f27b9e5&quot;&gt;&lt;wsu:Created&gt;2009-04-22T23:31:54Z&lt;/wsu:Created&gt;&lt;wsu:Expires&gt;2009-04-22T23:36:54Z&lt;/wsu:Expires&gt;&lt;/wsu:Timestamp&gt;&lt;/wsse:Security&gt;&lt;/soap:Header&gt;&lt;soap:Body&gt;&lt;getServiceDescriptionResponse xmlns=&quot;urn:oasis:names:tc:wsrp:v1:types&quot;&gt;&lt;requiresRegistration&gt;false&lt;/requiresRegistration&gt;&lt;offeredPortlets&gt;&lt;portletHandle&gt;simple&lt;/portletHandle&gt;&lt;markupTypes&gt;&lt;mimeType&gt;text/html&lt;/mimeType&gt;&lt;modes&gt;wsrp:edit&lt;/modes&gt;&lt;modes&gt;wsrp:help&lt;/modes&gt;&lt;modes&gt;wsrp:view&lt;/modes&gt;&lt;windowStates&gt;wsrp:maximized&lt;/windowStates&gt;&lt;windowStates&gt;wsrp:minimized&lt;/windowStates&gt;&lt;windowStates&gt;wsrp:normal&lt;/windowStates&gt;&lt;windowStates&gt;wsrp:solo&lt;/windowStates&gt;&lt;locales&gt;en&lt;/locales&gt;&lt;/markupTypes&gt;&lt;description xml:lang=&quot;en&quot;&gt;&lt;value&gt;Simple view portlet to test WSRP viewing&lt;/value&gt;&lt;/description&gt;&lt;shortTitle xml:lang=&quot;en&quot;&gt;&lt;value&gt;View&lt;/value&gt;&lt;/shortTitle&gt;&lt;title xml:lang=&quot;en&quot;&gt;&lt;value&gt;View Portlet&lt;/value&gt;&lt;/title&gt;&lt;displayName xml:lang=&quot;en&quot;&gt;&lt;value&gt;SimpleView&lt;/value&gt;&lt;/displayName&gt;&lt;userProfileItems&gt;UserProfileName/PropertyName&lt;/userProfileItems&gt;&lt;templatesStoredInSession&gt;true&lt;/templatesStoredInSession&gt;&lt;doesUrlTemplateProcessing&gt;true&lt;/doesUrlTemplateProcessing&gt;&lt;/offeredPortlets&gt;&lt;offeredPortlets&gt;&lt;portletHandle&gt;helloworld&lt;/portletHandle&gt;&lt;markupTypes&gt;&lt;mimeType&gt;text/html&lt;/mimeType&gt;&lt;modes&gt;wsrp:edit&lt;/modes&gt;&lt;modes&gt;wsrp:help&lt;/modes&gt;&lt;modes&gt;wsrp:view&lt;/modes&gt;&lt;windowStates&gt;wsrp:maximized&lt;/windowStates&gt;&lt;windowStates&gt;wsrp:minimized&lt;/windowStates&gt;&lt;windowStates&gt;wsrp:normal&lt;/windowStates&gt;&lt;windowStates&gt;wsrp:solo&lt;/windowStates&gt;&lt;locales&gt;en&lt;/locales&gt;&lt;/markupTypes&gt;&lt;description xml:lang=&quot;en&quot;&gt;&lt;value&gt;Hello world portlet to test WSRP viewing&lt;/value&gt;&lt;/description&gt;&lt;shortTitle xml:lang=&quot;en&quot;&gt;&lt;value&gt;View&lt;/value&gt;&lt;/shortTitle&gt;&lt;title xml:lang=&quot;en&quot;&gt;&lt;value&gt;Hello World Portlet&lt;/value&gt;&lt;/title&gt;&lt;displayName xml:lang=&quot;en&quot;&gt;&lt;value&gt;HelloWorld99&lt;/value&gt;&lt;/displayName&gt;&lt;userProfileItems&gt;UserProfileName/PropertyName&lt;/userProfileItems&gt;&lt;templatesStoredInSession&gt;true&lt;/templatesStoredInSession&gt;&lt;doesUrlTemplateProcessing&gt;true&lt;/doesUrlTemplateProcessing&gt;&lt;/offeredPortlets&gt;&lt;registrationPropertyDescription&gt;&lt;propertyDescriptions name=&quot;ConsumerName&quot; type=&quot;xsd:string&quot; /&gt;&lt;propertyDescriptions name=&quot;BuildDate&quot; type=&quot;xsd:dateTime&quot; /&gt;&lt;/registrationPropertyDescription&gt;&lt;/getServiceDescriptionResponse&gt;&lt;/soap:Body&gt;&lt;/soap:Envelope&gt;
    (100)Continue
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:695)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:129)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2575)
         at org.apache.axis.client.Call.invoke(Call.java:2564)
         at org.apache.axis.client.Call.invoke(Call.java:2259)
         at org.apache.axis.client.Call.invoke(Call.java:2182)
         at org.apache.axis.client.Call.invoke(Call.java:1702)
         at com.plumtree.wsrp.base.WSRP_v1_ServiceDescription_Binding_SOAPStub.getServiceDescription(WSRP_v1_ServiceDescription_Binding_SOAPStub.java:857)
         at com.plumtree.wsrp.consumer.impl.ServiceDescriptionManager.getServiceDescription(ServiceDescriptionManager.java:118)
         at com.plumtree.wsrp.consumer.servlet.AdminPreference.renderSetRegistrationPage(AdminPreference.java:992)
         at com.plumtree.wsrp.consumer.servlet.AdminPreference.service(AdminPreference.java:117)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)

    This seemed promising, but the proposed solution (adding 'servicePointManager expect100Continue="false"' to Web.config) had no effect.
    My consumer request actually does not include the "Expect: 100-continue" header and receives the 100 response anyways. My understanding now is that this is okay (thought I'm not sure why) and that the client should be expected to handle that response code in any case.
    I am wondering if there is an issue with the combination of products in my environment that is not supported by this product?? I am using
    IIS 5.1,
    .Net 2.0
    AquaLogic WSRP Producer 1.1/WebCenter WSRP Producer 10.3.0 (tried both)
    I am testing this producer in two environments -
    - AquaLogic Consumer running on AL Portal 6.5. When the WSRPConsumer is configured with the producer wsdl, it fails with message "Failed to get service description from WSRP Provider: .... faultString: (100) Continue".
    - Liferay - AFTER successful registration, attempts to deploy my registered .Net portlet (simple hello-world) result in an internal exception thrown in the Producer [Bea.Portlet.Management.PortletManager.LoadPortlet(PortletManager.cs:line 114)] Error loading PortletContainer: Bad PortletState. No request is made to my .Net application.
    It appears from both of these tests that both my producer and consumer are having fundamental problems that do not seem overly exotic (although I have successfully registered other WSRP portlets with the AL Consumer). However, I have not come across much information on these sorts of problems.

  • Consumer registration error (FPN)

    Hello all,
    I am working with Federated portals, creating the consumer registration to be precise. All steps done are:
    1. System Administration -> Federated Portals -> Manage my producers.
    2. New -> Netweaver Content Producer:
                       a. The Object has been generated.
                       b. The conection test is correct/sucessful.
                       c. BUT.... The producter registration step shows the next error message:
    <i>Could not register your portal although access to WSDL file was successful. Possible reasons: producer server is down, network problems, or incorrect registration parameters</i>
    The producer server is not down... What kind of network problems could be if the connection test was correct? What is the correct format of the registration parameters? or Could it be a problem related to the WSDL content?
    Thanks in advance,
    Marta.
    null

    Hello Marta,
    Did you establish a trust connection between the Producer and the Consumer?
    Check the Name and ID you give to the Portal, Make sure no illegal Chars are inserted (E.g SPACE).
    Hope it helps,
    Nadav.

  • Consumer producer

    hi
    iam learning Threads in java..i know its a simple question but can can anybody please explain me the concept, the flow
    of control in the following example of consumer and producer?..as iam not very clear about it....iam interested to know how excatly interthread communication is taking place....
    .how does while(true) executes....because for both producer thread and consumer thread the condition is checked with true....
    class Queue
         int n;
         boolean valueset=false;
         synchronized public void put(int n)
              if(valueset)
              try{
                   wait();
              }catch(InterruptedException e)
                   System.out.println("Interrupted");
              this.n=n;
              valueset=true;
              System.out.println("Put: "+n);
              notify();
         synchronized int get()
                   if(!valueset)
    try
                   wait();
              }catch(InterruptedException e)
                   System.out.println("Interrupted");
              System.out.println("Got:"+n);
              valueset=false;
              notify();
              return n;
    class Producer implements Runnable
         Queue q;
         public Producer(Queue q)
              this.q=q;
              //int i=0;
              new Thread(this,"Producer").start();
         public void run()
              int i=0;
              while(true)
                   q.put(i++);
    class Consumer implements Runnable
         Queue q;
         public Consumer(Queue q)
              this.q=q;
              new Thread(this,"Consumer").start();
         public void run()
              while(true)
                   q.get();
    class Conandpro
         public static void main(String args[])
              Queue q=new Queue();
              Producer p=new Producer(q);
              Consumer c=new Consumer(q);
              System.out.println("press control-c to stop");
    }

    When you post code, please use [code] and [/code] tags as described in Formatting Help on the message entry page. It makes it much easier to read and prevents accidental markup from array indices like [i].
    Because your put() method is synchronized, a producer entering that method acquires a lock on Queue - no other threads can get in any synchronized method of Queue.
    If the value has not been set, the producer adds a value and notifies any waiting threads that a value is available. If the value is already set, The Queue object calls wait() and releases the lock acquired by the producer, and - of course - waits to be notified. Since the lock has been released, the thread scheduler automagically wakes up another waiting thread; in this case, the consumer, who can then call get() and retrieve the value.
    The consumer acts similarly, but with regards to the get() method.

  • Podcast Producer and Internet Explorer

    I've configured Podcast Producer on 10.6.8, and it is working fine - items are processed from the Capture software through to PcP2 and Xgrid, and are then uploaded to a Wiki.
    The issue is with clients using Internet Explorer (any version) and their ability to play audio files uploaded from Capture or through the web interface of the wiki. Videos work fine, but whatever code is used to upload just audio files to the wiki cannot be interpreted by IE. I know that 10.6.8 was meant to address some of these issues, but I am just not sure how to proceed.
    Has anyone had a similar experience?
    Cheers
    Kieran

    Not sure if this will fix your problem, but I was having the same problem until I looked at the specs for XGrid, it has to run on an Intel Mac. This is where you can get the specs:
    http://docs.info.apple.com/article.html?artnum=306737
    Here is what is in the doc:
    Podcast Capture requirements
    Any Mac running Mac OS X 10.5 Leopard
    iSight camera (built-in or external) or FireWire DV camcorder
    Podcast Producer Server requirements
    Any Mac running Mac OS X Server version 10.5 Leopard
    Xsan for optional cluster file services
    Podcast Producer Xgrid rendering requirements
    Any Intel-based Macintosh Server or Intel-based desktop Mac (a Mac Pro, for example)
    Mac OS X 10.5 Leopard or Mac OS X Server version 10.5 Leopard
    At least 1 GB of memory (RAM) plus 512 MB of additional RAM per processor core
    At least 50 GB of available disk space
    Xsan for optional cluster file services
    Quartz Extreme-enabled video chipset
    Note: Quartz Extreme support can be verified in the Graphics section of Apple System Profiler.
    Note: If a system is providing multiple Podcast services (for example, Podcast Producer and Podcast Producer Xgrid rendering), the system needs to meet both requirements.

  • Do I get confirmation that my Iphoto book is being produced and sent out?

    I put together a photo book in Iphoto and submitted it. It went through all the rendering and processing. My credit card bill shows it was in the process of being charged, but there was no confirmation from Apple that my book will be produced and mailed out. Is this how it is suppose to happen?
    Thank you,
    Danny

    Visit the online Apple Store of your country:
    http://store.apple.com/
    You can log in to your account using the same Apple ID and Password you used to place your initial order
    or
    you can just give them a call.

Maybe you are looking for

  • My FaceTime is linked to wrong number how can I change it?

    I have 2 iPads on my account each has the same number and I want to change one can I do this?

  • Can I have a personal calendar that doesn't sync to MobileMe?

    I am trying to create a calendar that does not sync with the rest of my calendars to MobileMe. It seems that since I am signed into MobileMe, every calendar will sync. How do I work around this? I work for a small business and we are using MobileMe f

  • Copy control for Text in Sales Order

    Hi All, i would like to check with you guys. I have a scenario where by, we create sales order and maintain item text. This is copied to the delivery. Here the text if modified to enter more text. But when it comes to invoice, it is copying the text

  • FCC in Sender Adapter

    Hi Experts, My Input file contains following structure: 101 102 103 104 Now I want to generate following source XML file using FCC in sender file adapter <?xml version="1.0" encoding="utf-8" ?> <ns:MT_Employee xmlns:ns="http://Test_Employee"> <Employ

  • How to create an inbox item with attached BOR object?

    Dear Colleagues, Does anyone of you know a simple way to create inbox items for a user? I would like to use the inbox for notifying users and attach a BOR object to the message as attachment. Is there a good and plain way to do that? It would also be