How to use one stream by two or more threads?

Hey guys,
i have got a little problem and do not know how to solve it. i hope you guys can are able to help me.
i have opened a bluetooth socket connection. now i want to use these streams by three or more threads. one thread should only read from an input stream. the other threads are supposed to write on the ouput stream.
(I think) I am only able to open one stream in each direction.
How do I realize the use of the output stream by two indepent threads?
thanks for your help!

thank you for the hint!
i will search it or do you know a good tutorial?

Similar Messages

  • How to use ONE IPod on TWO Computers

    I have an Desktop-PC using ITunes 5.0 and an IPod 20 GB. When I connect my IPod with my Laptop, the complete IPod is deleting by the ITunes on the Laptop. How can I use ONE IPod on TWO Computers without deleting the music hole time?!

    I think you need to manually update on at least the computer that has the smaller music selection.
    it may be best to turn off automatic updates on both machines and manually add and delete songs.
    or you could network both computers to share one music library

  • How sharing an audio stream in two or more Ip telephones?

    Hi everybody.
    I wonder if you can make a call in which two or more people can listen to the conversation without using the functionality of the conference or the contact center, in other words, two or more IP phones have the functionality to take the call and listen to the conversation.
    analog lines similar to accounts in which a line with several phones and all phones that are connected to it can hear the conversation.
    I hope you understand me
    regards

    Hi Mauro,
    You can use "Shared Lines" with Barge
    Look for "Single Button Barge"  to simplify the user experience.
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucm/admin/8_5_1/ccmfeat/fsbarge.html#wp1034920
    Cheers!
    Rob
    "When it comes to luck you make your own  " 
    - Springsteen

  • How to use one certificate for two directory servers?

    Hi,
    running Sun DSEE 6.3.1 on two servers, server 1 has name ds1.example.com, server 2 has name ds2.example.com. There is a round robin DNS record ds.example.com, which alternates between:
    ds1.example.com
    ds2.example.com
    and
    ds2.example.com
    ds1.example.com
    An LDAP client connects to one of the servers over SSL using the name ds.example.com. We want to generate a certificate using the name ds.example.com and use it on both directory servers.
    If we generate a CSR using DSCC on server 1 and get back a signed certificate, the certificate can be installed correctly on server 1. However, if we use the same signed certificate on server 2 it fails with error:
    Unable to find private key for this certificate.
    Failed to add the certificate.
    Error executing the operation. The error code is 11.
    What is the correct way to generate one CSR, have it signed by a CA and then implement this signed certificate on multiple servers?
    /rolf

    From one Directory Server (ds1) generate CSR with the name ds.example.com in the request. Once you get the signed cert import it into the same server you generated CSR with. Then from ds1.example.com :
    scp -p <slapd install/instance path>/alias/* <account>@ds2.example.com:<slapd install/instance path>/alias/
    to copy the contents of the alias path to the same location on the other Directory Server. Make sure file permissions are the same.

  • How to use one monitor with two Power Macs

    I searched this forum and was unable to find an answer. Although I believe it's probably here.
    Nevertheless, I have a Power Mac G5 and a rarely used Power Mac G3. I'd like to share the G5's VGA Accusync 120 CRT monitor with the G3. I know there is a way to switch the monitor between computers without pulling plugs in and out of the machines.
    Does anyone have any specific switch I could buy to solve this issue. I don't care so much for picture quality for the G3. But I don't want to compromise picture quality for the G5.

    You're looking for what's called a KVM (Keyboard, Video, Mouse) switch.
    This one should do what you're looking for. I've not used it, but it does VGA switching like you want and is inexpensive.

  • How to use one app on two different devices so the info is the same...not having to start from level 1 again on new device

    Hi there,
    I have an app which I have recently achieved level 16 on (stored on ipod 4)...I have just purchased an iphone4s and would like to download the app to my iphone to play on there so I can play it anytime and not just at home when connected to wifi. When I downloaded it to my iphone it started me from level 1 again so I deleted it off and have tried several different ways to install the info syned from ipod without success...if this is not possible please advise...however I have been successfull with other games in having them show on both. I am afraid to delete it off itunes as it says it will delete it off the ipod when next synced.
    Kind regards
    Extremely frustrated individual
    Amy

    You're looking for something that's called a reverse web proxy.  That'll require some manual configuration within Apache, as it's not supported natively by Server.app tool.
    The other option is to have your "primary" host just fetch and display the web data from the other host — nothing requires the contents of a web page all be from the local host, after all.
    Another potential option is to configurre for and VPN into the network, and you can then access the network locally — this assumes you're the primary consumer of the reverse proxy, and not "the world".
    Related here and here and probably a few others; remember that the configuration files in Mavericks are located under /Library/Server/Web now.

  • PRE9: How to split one clip into two (or more) clips?

    I can't believe this is so hard to do... But HOW?

    You don't necessarily need to separate the file into individual clips.  When you do a cut on the timeline, this is a virtual cut, leaving the original file untouched but determining what will appear in the output.  You can split the clip into multiple pieces, delete the bits you don't want, add transitions, insert new bits, whatever you want, all without affecting the original file in any way.  Once you're happy, you output a new file using the Share options, and you get a new video file, with your original files still untouched.
    If you want to split your file into multiple individual files, you can use the sliders on the time scale, and export (Share) using the Share Work Area Only checkbox.  If you're doing this for purposes of reassembly, it would be better to save the individual clips in as lossless a format as possible, the default AVI format taking considerably more space but not losing quality.  Hint: the sliders can be positioned to the time marker using Alt-[ and Alt-].  Once you've done this, note that your original file will still be there, untouched.
    There is also VideoRedo Plus, a cheap program which gives frame-accurate selection and allows rapid subdivision of a piece of footage.  It doesn't re-render as PE9 would (this is where loss of image quality creeps in using compressed formats such as MPEG), copying the original frames.  You can then reassemble the bits using your video editor.

  • How to use one commandButton to execute two tasks in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is �findInspector�. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two tasks in JSF.
    Thank you
    Waheed

    Just dopublic void execute() {
        anotherAction(inputValue);
    I guess those articles might be interesting about passing params and the usage of inputHidden and also about using datatables:
    http://balusc.xs4all.nl/srv/dev-jep-com.html
    http://balusc.xs4all.nl/srv/dev-jep-dat.html

  • How to use one commandButton  to execute two task in JSF

    I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
    The code of the inputText:
    <h:inputText value="#{bindings.ProjectNumber.inputValue}"
    id="pn"
    size="10"
    required="#{bindings.ProjectNumber.mandatory}">
    The code of commandButton:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}"/>
    The managed bean is “findInspector”. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
    <h:commandButton actionListener="#{bindings.Commit.execute}"
    value="Save"
    disabled="#{bindings.Commit.actionEnabled}">
    <h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
    </h:commandButton>
    But it was not work
    Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two task in JSF.
    Thank you
    Waheed

    Yes I did
    <managed-bean>
    <description>The bean for get project No</description>
    <managed-bean-name>projectBean</managed-bean-name>
    <managed-bean-class>
    mcscm.model.ProjectBean
    </managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    </managed-bean>
    Also I changed the method in the managed bean as follows:
    public String commandButton_action() {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vb = fctx.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer dcb = (DCBindingContainer) vb.getValue(fctx);
    OperationBinding operation = (OperationBinding) dcb.get("projectNumber");
    operation.execute();
    return null;
    where projectNumber is my method in the java class of the application module "TaskInformationImpl". I made this method to be accessed from outside of ADF BC.
    I just create a sample code for projectNumber method for testing only as:
    public void projectNumber (String data){
    System.out.print(data);
    In the page Pagedef file I added this :
    <methodAction id="projectNumber"
    InstanceName="TaskInformationDataControl.dataProvider"
    DataControl="TaskInformationDataControl"
    MethodName="projectNumber" RequiresUpdateModel="true"
    Action="999" IsViewObjectMethod="false">
    <NamedData NDName="data" NDValue = "#{bindings.ProjectNumber.inputValue}" NDType="java.lang.String"/>
    After I did all of this I get a new error like:
    javax.faces.FacesException: #{projectBean.commandButton_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding cannot be cast to oracle.adf.model.OperationBinding
    Is it very difficult to do this in JDeveloper?. yes ADF BC provide me a lot of facilities, but when I want to do a specific task I face a lot of troubles

  • How to use one dynamic connection managers for multiple parallel data flow tasks

    hi there:
       I have 6 databases residing on the same server. What I want to do is  call a store procedure with identical name on each database dbo schema and transport results to a centralized place. The key is to have those SPs run in parallel instead
    of in sequence as each SP may take around 10 mins to finish. 
    The simplest way is to create 6 OLE DB connection managers and create 6 DFT tasks. However, I do not want to maintain 6 OLE DB connection managers as there is a chance to have more connection  managers.
     What I did so far is to create a OLD DB connection manager and use expression to set up connectionString properties so that it will get populated by variables at run time. It is fine when running all SPs in a Foreach Loop Container. However, it takes
    around 60 mins to finish.
      When I try to run it in parallel ( basically created 6 DFTs but use only one Dynamic Connection Manager), the connection string gets confused therefore all DFT tasks failed.
       Does anyone here have some experience on this topic?
    Thanks
     hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Yes, basically, on the connectionString property of ONE OLEDB, you are using an expression to supply value and this expression is pointing to a variable. 
    In this case , you can update this variable from a table which contains many connection strings. It's good if you want to execute Store procedures in a sequential order. When in parallel mode, this will cause issues as connectionString gets overwritten. 
     I am thinking about using script task to exec sp.
     The whole idea is that I do not want to maintain a large number of Connection Managers. 
    Hope it helps
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --
    So you are not able to run parallel executions using same conn mgmr, even with dynamic connectionstring, is that correct? Yes, script task will be a way to go if you wish to execute it in parallel, you may connect to SS and query the proper conn string with
    SELECT/WHERE clause in each script > pass it to a script variable > use that script variable and execute the proc. This will require only two things to change in each script, the WHERE condition to get the conn string and the proc name (you may even
    get the proc names the same way you get conn string) and everything else will be same. Let us know how that goes. 
    Hope no two or more procs doing insert/update/delete on the same tables.

  • Hi all - is it really possible to use one license for two computers or is it just a rumor?

    I heard that it would be possible that you can use one license for two computers. Is that the truth? And if so - how does it work?
    Thanks
    K

    Adobe CC or any perpetual previous version allows you to install & activate it two times (on the same computer or other different one).
    As per End user license agreement, only one computer can be used at one given time.
    Please refer to:
    Licenses and terms of use | Adobe
    Adobe - Adobe product license agreements
    Hope it helps you.
    Regards
    Rajshree

  • Hello, I would like to know how to transfer one of my two "membership" to an other computer because I just bought a new Mac.... ? Or how to cancel it on my old laptop so I can activate it on my new computer. Thanks a lot !

    Hello, I would like to know how to transfer one of my two "membership" to an other computer because I just bought a new Mac.... ? Or how to cancel it on my old laptop so I can activate it on my new computer. Thanks a lot !

    Hi Virginie,
    You need to go under the help menu option and sign out from Muse and then install it on the other computer that you want using the creative cloud desktop app.
    - Abhishek Maurya

  • Using one controller for two Soft Synths

    Hey guys,
    Does anyone know how to use one MIDI controller to play two soft synths? In particular, I would like to use the bottom half of the controller's range to play one instrument, and the top half to control another. Any suggestions?
    Thanks!

    Sounds easy enough. All you need to do is split your controller, and send each range of keys to a separate MIDI channel. Then, set each of the sounds you want to control to only receive MIDI from that channel and record enable both tracks.
    I think there's a way to set this up in the environment too.

  • How to use one email adress for multiple recipients

    Hello,
    I'd like to know how to use one email adress for multiple recipients. 
    this would be very useful or projects. for example;
    if i send one mail to [email protected], all people in this project get an email.
    I will add the people in this project myself. 
    I know it is possible, but I don't know how to do it ;-)
    please help me! 

    Hope this help.
    _http://technet.microsoft.com/en-us/library/cc164331(v=exchg.65) .aspx

  • How to use Batch operation for two xsodata services?

    Hi All,
    I have two xsodata services. How to use submit batch for two xsodata services
    Thanks,
         Mj

    Gateway Batch Calls from SAPUI5

Maybe you are looking for

  • Can't open any pdf in email attachments.

    Can open pdf already saved to computer, but can't open from email.  Windows 7, Firefox 25.0.1, Adobe Reader 11.0.4, and Plugin 11.0.4.63.  Email is yahoo (at&t version). Edit: It is the yahoo/att.net email program as I can open the pdf in another ema

  • How to delete a sales order which has already approved

    Hi, Could anyone please tell me how can we delete an already approved Sales order if no delivery doc is created and billing document has already been cancelled. When i try to delete the order it is not allowing to delete the sales order. It allows to

  • How to add one more database to an ASM instance

    Dear Gurus, I Created an ASM Instance and Database. Now I would like to install one more database and use the ASM instance to manage my disks. I tried using DBCA, It is not detecting ASM instance not sure why it is giving the problem. Thanks in advan

  • Changing creator of an app

    Hi I am trying to change the creator of my app to a different name. How do I go about this?

  • ITunes Shared Library Password

    Sometime ago, I created a 'Shared Library' of all my music and password protected it. I have lost / forgotten the password. Now I cant access the shared library. Is there a way to recover/change the password to the shared library or delete the existi