Broadcasting a message to a # of clients

as the subject indicates, i'm trying to broadcast a message to a number of clients. i have a main server running and say have 5 clients connected to it.
my code is as follows:
String s = "Hello Hollywood!"
for(int i = 0; i < ipadds.length; i++)
try
sock = new Socket(ipadds, 2005);
out = new PrintWriter(socket.getOutputStream(), true);
out.println(s);
out.close();
sock.close ();
catch(Exception e) { System.out.println("Error"); }
where ipadds is a string of ip addresses, 1 for each of the 5 clients that have connected to the server. each instance of a client, all running on the localhost at the moment have also an instance of a ServerSocket listening on port 2005. however only the first client receives the message successfully. then loops again, comes to client 2 and complains..
can anyone see where i'm going wrong ?
thanks in advance guys
vinc

i'm well aware of that Bind Exception, but this is the error
java.lang.NullPointerException
at ChatClient.run(ChatClient.java:257)
at java.lang.Thread.run(Thread.java:595)
Exception in thread "Thread-5" java.lang.NullPointerException
at ChatClient.run(ChatClient.java:265)
at java.lang.Thread.run(Thread.java:595)
problem is this line here:
Socket socket= receives.accept(); on the client side
unless that's another way of saying bind problem. but the problem also didn't work in college on 2 machines, then obviously my for loop had these two ipaddresses etc

Similar Messages

  • How to Broadcast the message in WebClient

    Hi All SAP Gurus,
                 Can anybody help me on this situation that I want to broadcast the message in CRM Web Client screen/ Status Bar SAP Easy Screen, any how i need to broadcast the message continuously any where in SAP Screen, is it possible to do this or not ? if yes, can u please guide me how to do this. The custom (we can edit the msg) message should continuously display.
    If u have any DOCs or PDFs that can be acceptable. I am assure to u I will award the point.
    Regd,
    Govinda

    Probably this should help:
    http://help.sap.com/saphelp_crm50/helpdata/en/fb/150deca0c211d6870c000086568e5f/frameset.htm

  • Problem in delivering Picture Messages through Java SMPP client

    I m working on development of SMPP Client, using Java. In it�s development I didn�t used any API from eny vendor, and implemented purely in Java. I am facing one unusual problem in receiving of Picture Messages. Also, I have one C based client application.
    I m sending picture message through both client application(s) to be delivered over different handset(s). I have tested many different cases, but could not conclude to any solution. The behavioral cases are as follows;
    When I sent same picture message through Java SMPP client on Nokia 1100, it get received with prompt �Picture Message Received�. And on viewing it, �Message cannot be displayed�, is informed and no picture message get displayed. Till now it happens for every caseto this handst, but get properly displayed on Nokia 32xx / 53xx.
    Whereas while sending through the C SMPP Client on Nokia 1100, sometime it get displayed and sometimes it doesn�t. Same prompts follows on not receiving right picture message while using Java SMPP Client
    I m not understanding why;
    It doesn�t get delivered correctly a picture message, every time I submits it to deliver on 1100 while sending through C based,
    And why It doesn�t get delivered correctly at all while sending through Java SMPP client on 1100 whereas it get delivered correctly over other Nokia model handset.
    Kindly, anyone make me solve out the prob���.

    Hi,
    Even we have implemented the Java SMPP client, to sending the picture message as embeded SMS.
    If you do not have issue to share the SMPPClient which is sending the picture message, I can look into the code and help you. Let me know, I can share my personal email id.
    Edited by: sanmetalica on Apr 14, 2008 6:01 AM

  • Purpose of Messages link in MI Client SP 18 ?

    Hi,
    Could anyone please tell me the purpose of Messages link in MI Client SP 18 ?
    what is it for ? when and what kind of messages it contain ?
    Currenlty when i am clicking on it , it is showing error page .
    Thanks & Regards,
    Vipin

    Hi Vipin,
    Adding to the points mentioned above.
    This is for the system messeges, you receive from the middleware.
    Purpose is to update the users with the latest information about the upgrades,timelines,system down times etc...
    For ex: A system administrator can set the messeges( based on the users also )
    to the users about the upgrades of the system and can ask not use the application until next updated messege comes about the upgration of the system(this is only one example)
    Simply we can say that this messeges is used to inform the users about some information(critical).
    Hope this is helpful.
    Cheers,
    Karthick

  • Symbol will automatically update in your (bb logo), when you broadcast this message.?

    hey guys i have a quick question. (hopefully)
    i recived a bbm message full of symbols (smileys and little logos) and at the bottom it said
    Symbol will automatically update in your (bb logo), when you broadcast this message.
    so my question is, if i broacast this message (which i have no clue how to do so if someone could tell me that would be very appreciated) will i get all these symbols in my symbol list?

    hmmm sounds a bit fishy to me, I don't see how broadcasting this message to all of your contacts is going to magically unlock these symbols.

  • How do i send message only to intended client  (Private Chat) ??

    i need embed a live chat for customers where they can send their queries to Customer Care executive.
    Customer care executive will respond to thier queries.
    Now my requirement is to design a chat application in which i need to send message to the intended client only
    Client and Customer Care executive will both use the Samev Web application to chat.
    I can get the messages from client ,but how do i send message back to the intended client only ??
    Please advice me if their is any good design strategy or technology which will fulfil my requierment.
    Please guide me !!

    Requirement is :
    1. User first select the section , as per his queries
    such as
    a.Technical Support
    b. Complaints.
    c. General Queries
    (for every section there are more than one Customer Care Executive's)
    2. Now i have to first decide that to which Customer Care Executive(CCE) (thar are logged in ) i may redirect the user. The criteria is : Select CCE who is least busy.
    3. The CCE is using the same web application to respond the Customers.
    4. Now the Customer and CCE should have private conversation with each other
    Regards

  • Error Message from SLD - "Selected client already has a business system..."

    I have successfully created and test a File to IDOC scenario from a File system to ERP ECC 6.0 (client 101, system name sapdbt02)
    Right now, I creating  another File to IDOC scenario for a different file system to the same ERP ECC 6.0
    At the SLD, I would need to create two new Techncial System and Two new Business System.
    However when I creating a Business system for the ABAP Type for the ERP ECC 6.0, when selected the same client and system name of the first scenario that I have done, I got this error message
    "Selected client already has a business system associated, please select a new client or system"
    I am puzzled that I would need to a configure a new client for the same system ID for another FIle to IDOC scenario
    going to the same ERP system
    Please advise.
    Best Regards
    Freddy Ng

    For example:-
    create business system for R3 system in SLD as suggested by stefan. I assume that u have one R3 system which is either sending or receiving data from XI.
    assign the system to ur scenarios, u can use common IDOC/RFC/XI channel for sending data to R3 system.
    Separate R3 business system is required incase u have to send data to different R3 system.
    If u have different files coming from different File system in that case better to create different business service and use them.
    chirag

  • Error message about default email client

    Whenever Reader XI loads this error message appears:
    "Either there is no default email client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client."
    I have no idea how to fix this in Outlook after several attempts. Can I fix this within Reader or at least have the message never appear even if the client issue is not fixed?

    Yesterday someone posted an interesting workaround that seems to get rid of the problem: http://forums.adobe.com/message/5529300#5529300 (post 19).

  • Need to send a 403 (forbidden) message from proxy to client

    I have create a List that contains URL's that I want to block from the user. Once I search that list and see that the requested URL is in the list, I need to send a 403(forbidden) message. Does anyone know if I can just send a "HTTP/1.0 403 Forbidden" Header back to the client in bytes from my DataOutputStream object??
    Anyone have any other suggestions I would appreciate it.

    You can get all you need from the HTTP 1.1 specification. i.e. http://www.w3.org/Protocols/rfc2616/rfc2616.txt

  • Fault message handling in abap client proxy

    Hi experts,
    i have scenario like this SAPECC---XI---WEBservice
    i was decided to using the ABAP CLIENT proxy in sender side and soap adapter communication in receiver side
    i will be get the wsdl file form client
    problem is i am in bit of confusion like  am i need to create fault message for this asychronous scenario?
      how can i create the fault message for this scenario(that WSDL) and how the abaperwill  handle those error
    thanks in advance

    Hi.
    You can use fault message but it won´t return a error to your ABAP Proxy because your interface is ASSYNC. The fault message generated will stop in Adapter Engine.
    If you need a return of the error, you have to change your interface to Sync mode.
    To get more information, follow the link below:
    Fault Message Type
    http://help.sap.com/saphelp_nwpi711/helpdata/en/dd/b7623c6369f454e10000000a114084/frameset.htm
    Best Regards.
    Bruno

  • Send message from java not client

    I have a java app running on my server and I'd like to send
    messages to subscribed clients. All the messaging examples I find
    have the messages originating from a flex producer. I want java to
    be the producer.

    I used this example to get it done.
    http://western-skies.blogspot.com/2006/07/flex-sending-messages-from-server-side.html

  • Messages sent from GroupWise client appear in sender Mailbox

    Hello All,
    When using GroupWise object API to enumerate messages in the Mailbox folder, I found that messages that appear in the Sent Items folder are also returned in the Messages collection of the Mailbox folder. Although, when using GroupWise client UI, they cannot be seen in Mailbox folder.
    I tried properties like Hidden to see if the messages are hidden, but this flag is false for those messages. I also tried to use the EnclosingFolders collection which returns the folder messages are contained in, but that too returns Mailbox. The messages that can be seen in Sent Items from the GroupWise client UI also have the EnclosingFolders property set to "Mailbox".
    How do we correctly filter out messages to replicate the view that we get in GroupWise client UI?
    Some more information, I have enabled Retention on this particular mailbox, if that makes any difference.
    This is my first encounter with GroupWise servers and these behaviors don't make sense to me. If anyone can shed some light into these areas I would be grateful to them.
    Regards,
    Saju

    Hello Preston,
    Thanks for the explanation. Looks like the BoxType property is the key to filter out unwanted messages.
    Regards,
    Saju
    Originally Posted by Preston Stephenson
    The Sent Items folder is a special folder. it is a container
    folder as well as a query folder.
    The Sent Items folder will show all sent items in the Mailbox,
    Calendar and Sent Items folder.
    By default, all sent items are created in the Mailbox folder.
    The GWClient, by default, filters out the sent items when
    showing the Mailbox folder. You can change the properties to
    show the sent items.
    You will need to handle the filtering on your side.
    >>> On Friday, February 26, 2010 at 5:26 AM, saju
    paul<[email protected]> wrote:
    > Hello All,
    >
    > When using GroupWise object API to enumerate messages in the Mailbox
    > folder, I found that *messages that appear in the Sent Items folder are
    > also returned in the Messages collection of the Mailbox folder.
    > Although, when using GroupWise client UI, they cannot be seen in Mailbox
    > folder*.
    >
    > I tried properties like Hidden to see if the messages are hidden, but
    > this flag is false for those messages. I also tried to use the
    > EnclosingFolders collection which returns the folder messages are
    > contained in, but that too returns Mailbox. The messages that can be
    > seen in Sent Items from the GroupWise client UI also have the
    > *EnclosingFolders *property set to "*Mailbox*".
    >
    > How do we correctly filter out messages to replicate the view that we
    > get in GroupWise client UI?
    >
    > Some more information, I have enabled *Retention* on this particular
    > mailbox, if that makes any difference.
    >
    > This is my first encounter with GroupWise servers and these behaviors
    > don't make sense to me. If anyone can shed some light into these areas I
    > would be grateful to them.
    >
    > Regards,
    > Saju

  • IDOC Message type  ACC_DOCUMENT -  Same Client different company Code

    Hi guys ,
    I need your advice , I´m trying to create an IDOC to send my accounting  postings via IDOC from one company to other in the same client  , I did I think the whole process to achive that ,  meaning I went to tnx : SALE , SM59, WE21  but now in BD64 im facing the following problem  : in the message type box , i filled the fields like this :
    Model view       TEST                          
    Sender             GCQCLNT100                     
    Receiver           GCQCLNT100                     
    Message Type  ACC_DOCUMENT 
    but I got the error : Client and server must be different. !! , so I dont know what to do now ,  any advice ?  Im not sure if  I need a Distribution model for what I want to do ? or maybe i can´t send idocs in the same client ??
    thank you Guys.

    When I stored an IDOC with the IDOC_INBOUND_ASYNCHRONOUS  function, I believe I only had the receiver configured.
    I created the idoc table, control structure, etc., did the save with the FM above...then the receive side had a process code and standard FM....

  • Send message with abap proxy client

    I'm trying to send message to XI, but no message in sxmb_moni.
    I have created logical port with LPCONFIG.
    ABAP code
    REPORT  Z_HTTP_SEND.
    DATA:
    * Reference variables for proxy and exception class
      lo_clientProxy     TYPE REF TO ZPCO_MI_COMPANY_OB,
      lo_sys_exception   TYPE REF TO cx_ai_system_fault,
    * Structures to set and get message content
       ls_request         TYPE ZPMT_COMPANY_ID,
       ls_response        TYPE ZPMT_COMPANY_DETAILS.
    *Complete the structure ls_request for the request message.
    *DATA: zmt_id type ZPMT_COMPANY_ID,
    *zdt_id type ZPDT_COMPANY_ID,
    *z_id_tab type ZPCOMPANY_ID_TAB,
    *z_id type ZPCOMPANY_ID.
    *z_id-COMPANY_ID = '3000'.
    *append  z_id to z_id_tab.
    *  zdt_id-RECORD = z_id_tab.
    *zmt_id-MT_COMPANY_ID = zdt_id.
    DATA tab TYPE ZPCOMPANY_ID_TAB WITH HEADER LINE.
    tab-COMPANY_ID = '3000'.
    APPEND tab.
    ls_request-MT_COMPANY_ID-RECORD = tab[].
    TRY.
    * create proxy client
    *CREATE OBJECT lo_clientProxy( u2018LOGICAL_PORT_NAMEu2019 ).
        CREATE OBJECT lo_clientProxy.
    * do synchronous client proxy call
        CALL METHOD lo_clientProxy->execute_synchronous
                 EXPORTING output  = ls_request
                 IMPORTING input   = ls_response.
        CATCH cx_ai_system_fault INTO lo_sys_exception.
    *   Error handling
    ENDTRY.
    Any ideas? Thanks very much,

    Hi,
    Proxies communicate with the XI server by means of native SOAP calls over HTTP .RFC does not, so you have to convert from SOAP to RFC calls and vice versa. So XML conversion is required.
    ABAP Proxies uses Webservice and Http Protocols. And if you use RFC it is mainly meant for Sync. call. But Proxies is used for both Sync and Async.
    If you use ABAP Proxy , you can reduce the overhead calling the function again and again.
    How do you activate ABAP Proxies? - Activate Proxy
    ABAP Server Proxies - ABAP Server Proxy
    ABAP Proxies in XI(Client Proxy) - ABAP Client Proxy
    Re: JDBC Sender select/update problem
    If u generate proxy for outbound interface then its client proxy and for inbound interface its server proxy.
    In client proxy u can call the method to send messages but u can't modify it but in server proxy its possible to write a user code within the method to execute proxy.
    CLIENT PROXY:
    A WSDL description from a UDDI server (or an Internet page) is usually used to make a service executable in the Internet and to describe the interface of this service. You require a client proxy and not a server proxy to call this service by using the Web service infrastructure.
    SERVER PROXY:
    You can only generate ABAP server proxies from a WSDL description if they originate in the Integration Repository.You can also generate server proxies for Java and client proxies for ABAP from message interfaces.
    s refer these doc about ABAP proxy ..
    How do you activate ABAP Proxies? - Activate Proxy
    ABAP Server Proxies - ABAP Server Proxy
    ABAP Proxies in XI(Client Proxy) - ABAP Client Proxy
    Re: JDBC Sender select/update problem
    ABAP Server Proxies
    How do you activate ABAP Proxies?
    ABAP Proxies in XI(Client Proxy)
    File to R/3 via ABAP Proxy
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/ba/f21a403233dd5fe10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/41e08c90-0201-0010-9197-d8774336ea78
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ae9874-109c-2910-f48a-e91f0cdd1c81
    Smarter Approach for coding ABAP Proxies
    regards,
    Surya

  • Broadcasting a Message using PI

    Hi everyone,
          I want to configure the following scenario.
    I would name the Scenario  as Broadcast
    The requirement is 1 Sender and Multiple Receivers (for Eg: 3 receivers) both would be file formats for example
    About Broadcast
    Broadcasting means publishing information to masses. The characteristic of any broadcasting scenario is that the sender cannot make any assumption who will listen to the message.
    XI will supervise the broadcast and allow configuring the scenarios according specific needs.
    For example a message may have a life-time, so the broadcast should be visible for a certain period and then automatically removed. Another possibility would be that we allow a pre-defined or calculated number of receivers (in our case 3 receivers) to read the message; in the simplest case it means that  the sender is looking for one agent to process the message but there are several Receivers to choose from.
    Any Inputs would be appreciated. Do I require BPM's for the Scenario.
    Regards,
    Varun

    Check out the scenario "pub and sub scenario's using XI" on the Netweaver How to sessions in the Events section.
    XI by default does not support publish and subscribe scenario's but with a API available for configuration for Integration directory objects, every time a subscriber list is updated, the ID objects can be programatically created in XI leading to the ability to support pub and sub  scenario's.
    The API's are available, but the framework and GUI screen's etc to maintain these pub sub scenarios though would need to be created by you as you would understand after you go through the above mentioned presentations.
    Hopefully sometime down the line, there would be better GUI based support but for now  most of it is upto the developer to do.
    Regards
    Bhavesh

Maybe you are looking for