Update chat client JList

I have a client and server app and Want to update the JList evertime a client joins or leaves.
I also want to implement private chat later on. I know i can send a vector with the names of the clients to each client and update the list, but if im gonna do private chat, how can I enable clients to click on the list and when they select a peer to chat with, thier able to make and i/o stream and that with that person.
I was thinking that I can make and additional ObjectInputStream/ObjectOutputStream and send the entire client object from the server side. That object would be "SocketThread" which is a class i made to handle each multiple client connection. The server side has Server.java, SocketThread.java, ChatProtocol.java
This is the Thread that represents each client on the server side.
vsockets is a Vector that adds each client object to the vector so the server can echo each client message to every other client.
public SocketThread(Socket socket) {
            this.socket = socket;
            start();
        public void run()
        try {
            socket.setSoTimeout(60*1000);   // Client sends "alive" message in keep alive thread every
            out = new PrintWriter(socket.getOutputStream(), true);
            in = new BufferedReader( new InputStreamReader( socket.getInputStream()));
            ChatProtocol cp = new ChatProtocol();
            inputLine = in.readLine();
            UserID = cp.processInput(inputLine);
            out.println("Rabbit's Socket Server, NY!");    // Welcome Message
            System.out.println("* "+UserID + " joined the server!");
            for ( i=0;i<Server.vsockets.size();i++)
                SocketThread temp  = (SocketThread)Server.vsockets.elementAt(i);
                temp.out.println("* "+UserID + " joined the server!"); //no "\n" server tokenizer adds it already
            while ((inputLine = in.readLine()) != null)
                if(!inputLine.equals("alive")){
                outputLine = cp.processInput(inputLine);
                for (i = 0; i< Server.vsockets.size(); i++)
                    SocketThread temp = (SocketThread)Server.vsockets.elementAt(i);
                    temp.out.println(outputLine);
        }How would I go about implementing private chat. I think it has something to do with object serialization. Not sure how to do it.
thanx

Hello Jino!
I think u r working in the right direction.
I think it is better to have a vector there at client to represent the current users and u fill its elements when u send the notification for newuser logged in and remove the entry when any user left notification is there.
I hope u got the idea.
Best of Luck.
Ahmad Jamal.

Similar Messages

  • I would like to know why, after updating mozilla, my gmail doesn't work properly. Specifically the chat client.

    The chat client doesn't load the option to respond in chat. I can get messages from my friends but am not allowed to type back. This only became an issue after updating my firefox browser. I tried to revert to the prior gmail (as i am testing their newer version) and that didn't resolve the issue.

    ''GMail entire message content missing (blank) after header title''
    In Firefox, if you have "Adblock Plus" extension.
    # "Ctrl+Shift+F" Preferences (or right click on ADP symbol, and choose preferences)
    # 'Filters' menu > "'''Update all subscriptions'''"
    reference: ''https://support.mozilla.com/questions/896267''

  • Setting up BCM 7.0.6.100 Internet Chat Client

    Hi, everyone!
    I've been struggling with a weird error message when setting up the proof-of-concept chat client for BCM 7.0.6.100
    What I did is set up a fresh system from scratch and configure it just enough to conduct tests. After that I installed the chat client onto the same machine.
    Now the problem is that whenever I rty to initiate a new chat I get the following error message:
    13Chat Server not availablefalse
    System.Web.Services.Protocols.SoapException: com.sap.bcb.common.SoapException
       at ChatPortal.IciContainerService.subscribe(String appUrl, String appId, String channelType, String containerId) in d:\bcm_70_sp6_p1_source\bcm_7\source\source\ExtAppIntegration\WebServices\ChatPortal\IciContainerService.asmx.cs:line 99
    This is a copy-paste from the exact message. Chat server actually is available and I'm pretty much out of ideas what to try to fix.
    Has anyone any ideas on what to try next to get the chat working or better yet does anybody know the exact solution?
    Thanks in advance,
    Jaanus

    Jaanus,
    can you reach this page?
    If "Yes", and after clicking "Submit" you get an error message, check contact filed, e-mail ([email protected] on the screenshot) address must be the same as you assigned to a chat queue.
    BR,
    Anton.

  • Logical  system name to be updated while client copy--URGENT HELP REQUIRED

    Hello All,
       I have a  query regarding the "Logical System name" updation during Client copy.
      When we make a client copy(SRM Masters) for the Production system(SRM),the Old Logical system name for backend(which is attached to the SRM masters) gets copied to the new Client (Copy) which needs to be updated.
      There is  a  std transaction BDLS through whcih w e can change the current Logical system name to  a  new one but this  seems to work fine for System copy but not for Client copy.
      So when i make  a client copy of  SRM masters  for Production system,is there  any other std  way wherein i can change the "Logical system name " for the  backend or  do i have  to write a  CUSTOM program wherein entries  for  the Backend Logical system name in tables like CRMMLSGUID will  be updated  with  the new  Logical system name?
       Any help on this is  appreciated.
    Thanks & Regards,
    Disha.

    Disha,
    Yes, I did it twice and it worked fine.
    The R/3 GUID is sent by the OLTP system (R/3) in R/3 message header.
    SRM checks this GUID in CRMMLSGUID table.
    If is not the same one, then replication process fails.
    The only solution I found was to delete this entry. It is automatically recreated with the new GUID with the next replication, with FM CRMT_OLTP_LOGSYS1, called in BAPI_CRM_SAVE.
    Look at OSS note 588701 & 765018 for deletion of CRMMLSGUID.
    The issue is exactly ours: around system/client copy.
    In an CRM environment, this is more critical, because we make a huge use of the middleware. But in our case, and especially after system/client copies, we can go, even if SAP does not guaranty anything, because we don't care about "old" replicated data (I don't care about old BDOCs, that should even be deleted after processing).
    We have to take some risks sometimes...
    Rgds
    Christophe

  • Mobile Sync not update the client or remote store  after first sync

    Subject: OracleLite 9i does not update the client or remote store during synchronization with a Windows CE device
    After the first synchronization, neither the client or remote stores are updated on future synchronization when the publication is created with the fast refresh option. If the publication is created with the complete refresh option, the server will update the client, but the client cannot update the server after the first synchronization. That is once the database (.odb) file is downloaded from the server on the first connect, no updates to either the client, or server are performed for a publication created with the fast refresh option, and only the client store is updated when the publication is created with the complete refresh option. These result are obtained whether I use MSync via Microsoft Active Sync, or I use the Embedded VC++ program I wrote to initiate the synchronization from the Windows CE device.
    I am 99% sure the JAVA code that I am programmatically creating the publications with, and the Embedded VC++ code for initiating the synchronization from the Windows CE device are correct. Both programs adhere exactly to the example code provided either in the documentation, or in the sample code shipped with OracleLite 9i Release 5.0.1. My conclusion is that there is a problem with Oracles replication programs either on the Windows CE, or Server side, or both. This conclusion on my part is strongly supported by the fact that MSync operating with Microsoft Active Sync behaves exactly the same as my code that initiates the replication from the Windows CE device. Also, by looking through the discussion forum, I gather that others are experiencing similar, if not identical, replication problems.
    To support my contention that it is a Oracle problem, I have prepared a simplified version of the Embedded VC++ code to initiate the synchronization for the CE device, and the JAVA code for creating the publication. This code duplicates the problem and is easy to follow. You may download the zip file containing code via the link https://Yggdrasill.cfr.msstate.edu:4443/SyncProblem.htm or the link http://Yggdrasill.cfr.msstate.edu:7778/SyncProblem.htm. This zip contains the Embedded VC++ project files, that will compile and run correctly on a PocketPC with an Arm processor, or the PocketPC x86 emulator when you have the required include files, and libraries in the path. It also includes the JAVA code I used to create the publication. If you extend the VC++ code to run on additional platforms be sure to add the compile flag (directive) /D SQL_NOUNICODEMAP , and the library files olod2040.lib, and ocapi.lib in the library box from Project settings. On my system the paths to the Arm, and x86 libraries are C:\ORALITE501\MOBILE\SDK\WINCE\POCKET_PC\Arm\LIB, and C:\ORALITE501\MOBILE\SDK\WINCE\POCKET_PC\X86EM\LIB, respectively
    I am using a NT 4.0 SP6a server with Database 9i Release 2 Enterprise edition, and OracleLite 9i Mobile Server Release 5.0.1. The Windows CE test device is an iPac running Pocket PC, connected to a system running Windows 2000 Professional SP2, and Microsoft Active Sync 3.1.
    Please review this problem documentation, and tell me what I am doing wrong, or point me to a location where I can get a patch to fix the problem.
    Thanks,     
    Thomas G.Matney
    [email protected]
    (662)325-2791

    Hi,
    I'm also facing a similar problem. I'm using Mobile server as stand alone config with Oracle 8i as server database. After the first download, the data updated at the server is not getting downloaded to client(PDA).
    How did u overcome this problem? Is there any work around?
    I want to do synch using both serial and dial up.
    Thanks in advance,
    Sri

  • Patches did not update to client Windows 7

    Hi
    We have 2 domain controllers installed on Windows server 2003 STD. Also Group policy management installed with the these servers. We have installed WSUS server on the another server that installed Windows server 2008 STD. When WSUS server  shows thelist
    of updates, I have deployed the updates to the clients(Windows 7 Professional). When I checked the clients, it seems that it could not find the patches update that I have deployed. So, I go back to check GPO that I created to deployed update to clients(Computer
    Configuration-->Administrative Templates-->Windows Update). I double click one item to see the detail, I saw it's said that supported on: Windows Server 2003,XP SP1, 2000 SP3. I thought that 's why I could not deploy the update patches to Windows 7.
    Then I have installed Group Policy Management on the same server 2008 that I have installed WSUS server. Then I have create new GPO, linked, enforced it. But it's still not work. I cannot deploy the update patches to client. Kindly request any suggestions
    for this help to deploy the update.

    Hi Lawrence,
    The problem is I deployed the update via WSUS 3.0 to install patch on those Windows 7 clients. But it seems that it those clients could get the update from WSUS server. From WSUS server, it saw the clients machine. I checked Group Policy that running on
    Windows server 2003 domain controller((Computer Configuration-->Administrative
    Templates-->Windows Update). Then I opened one item here. Suppose I open item "Configure Automatic Update". It has the message in the bottom of this message here said that "Supported on: Windows Server 2003, XP SP1, 2000 SP3".
    So I was thinking is it possible that the updates could not deploy to those clients because the group policy still running on  Domain Controller Windows server 2003?
    When I built the new server that running Windows server 2008 STD and add the component Group Policy Management on that server. It will has the same policy from domain controller Windows server 2003. But when
    I looked in the settings in Windows Update. Suppose I opened the item "Configure Automatic Update". It said that "Supported on: At least Windows 2000 Service Pack 3 or Windows XP". Then I not sure is it need to be upgrade Domain Controller
    from Windows server 2003 to Windows Server 2008? When I checked the Resultant Set of policy from the client, it get the policy from Group policy domain controller, but I check Group policy on the clients. It didn't shows the policy that I set on the domain
    controller. Kindly you advise me how to let the policy deploy to clients running Windows 7.
    Thank you very much.

  • Please help I have to update my clients site tonight I have been using muse subscription since Nov 19, 2012 An unexpected error occurred.An unexpected error occurred processing your request. Please try again later.I-2

    please help I have to update my clients site tonight I have been using muse subscription since Nov 19, 2012 An unexpected error occurred.An unexpected error occurred processing your request. Please try again later.I-2

    Hi Carey,
    Please refer to this trouble-shooting guide for the error that you are getting, An unexpected error occurred I -200
    - Abhishek Maurya

  • Have delay to deliver updates to client in sccm 2012r2

    Hi 
    that's a few month that I'm working with sccm 2012r2 in order to keep my organization updated and patched .but the problem is after discovering a new computer and triggering that computer to get updates from SUP It doesn't show any updates in software center
    ,in fact after 2 hours those updates appear and start installing .I searched the internet a lot .all settings are right according to microsoft documents .recently I doubt to my automatic deployment rules .those rules are working fine but I think the delay
    could be because of the number of my rules ,I have 35 automatic deployment rules that start at the same time .this is the screen shot of the rules . is this configuration suitable ?
    if the number of update rule is too much what should to do with maximum number of updates in each rule(1000 update per each rule) ?
    thanks a million 

    Yes. That's a lot of update rules (as a side question, why are being so granular with them?); however, it has nothing to do with what you've described. Update Rules have nothing to do with enforcing updates on clients. ADRs merely create (or update) update
    groups, update packages, and update deployments. Update deployments perform the actual work of enforcing updates on clients. Also, there's no 1,000 updates per rule requirement. Update groups however are limited to 1,000 updates. Still, none of this truly
    has anything to do with what you've described.
    ConfigMgr is not an instant gratification system -- it is an enterprise client management tool and certain actions and activities take time to happen. Can you please walk us through *exactly* what you're doing when installing a new system including the timing
    and what your expectations are?
    Jason | http://blog.configmgrftw.com | @jasonsandys
    thank you very much .
    but my expectation is when I install a new os ,Sccm detect that as soon as possible and give client the updates asap again even when I use the Action tab in configuration manager Item in control panel.
    of course it detect my new client but it takes time to give them updates (about 2 hours).Before I was using wsus ,updates was sent to client and was installed immediately after client detection(of course using Check for Update in control panel).
    I want to decrease my rules .but whats the best solution and categorization ?now I have 4449 Updates in sccm database .
    in Update classification I just selected critical,security,rullup,update.
    I would be glad if you masters give me  a helpful solution .
    thanks

  • Multiple chat clients with Webcam support

    Hi;
    I switched to the mac and i was wondering if anyone knows a program that will let me connect to Yahoo, MSN, and AOL at the same time and use multiple accounts. I also want webcam support. Currently i use different programs and i would like to be able to chat from one program instead of 3. SO far i have found aMSN, but only works for msn and not the other chat clients. Anyone can help?
    Thanks

    I use Fire
    It handles like 6 different IM clients.... not sure about the video capabilities, but i use iChat on an AIM client for that.
    Beavis2084

  • Chat client Help

    I am writing a chat client in java and I was wondering how to change the color of the text for each person. What I mean is is it possible to have the text from one user display red and the text from another user display blue. Any help would be nice.

    Is there a way to format text with html using JEditorPane and/or JTextPane; Read the API. You will find links to the tutorials.

  • Can Leopard Server update Tiger clients?

    Can anyone tell me if Leopard server can update the OS of Tiger clients? I know Tiger server can't update Leopard clients, but the other way around?

    Hi
    Not true. I have a 10.4 OD Master with a managed group using the SUS Service on a 10.5 Server. The 10.5 Server is connected to the 10.4 Directory. DNS Services for both servers are on the 10.4 Server as is the DHCP Service. 10.4 and 10.5 Clients that bind to the 10.4 Server are updated using the 10.5 SUS with no problems at all. The only issue I've seen is 10.5 clients occasionally can't use the 10.5.2 Combo Update on the SUS Server. There is the 'cant expand package properly' error message. At first I thought this was because the latest Intel iMacs were able to update but not Leopard installed PPC models. One solution was to keep a manually downloaded .dmg of the 10.5.2 update on the Server and push it out using ARD or copying it locally and installing it that way. However earlier Intel models - occasionally - are also not updating - pre-dominantly first generation macbooks and macminis but every now and again some of the later Aluminium model iMacs.
    This is an intermittent problem though and may be due to the small bandwidth that the SUS server is having to use to access apple's downloads server (1MB). When the SUS was on the 10.4 Server with a higher bandwidth connection (4-5MB) there was never any problems with the downloads but quite a few with the Service stopping itself and having to be restarted using the command line.
    The amount downloaded for 10.5 SUS is greater (approx 13-16GB) than 10.4 SUS (approx 10-11GB) - obviously. It took 4-5 days for the 10.5 SUS to make available all the downloaded updates - obviously due to the 1MB connection but also there were problems with accessing the updates server at that time. I think this was because Leopard Server had not long been made available and like a lot others it was in a testing environment where all the services were being tried to see what was worked and what did not.
    Tony

  • Chat clients and iSight

    microsoft messenger for mac doesnt support iSight. yahoo does. wat other chat clients support iSight?
    thanks.

    I was going to suggest AMSN. It works well and I use it as my default messenger. Its does video, but is not as good as MSN for the PC.
    I now use SKYPE most of the time. This supports video very well and communicated with PC users fine.

  • Problem with update SCCM client to Sp1 CU3 on Windows 2008 server

    Hi all,
    I have problem with update SCCM client on Windows 2008 Server to 2012 Sp1 CU3. I have sent to deployment package with update (SP1 Cumulative Update 3 - server update) on four servers and after few minutes I have got in Monitoring\Deployment details four
    this same errors in "Asset Details":
    USER Message ID
    Status type Description
    NT\AUTHORITY\SYSTEM  1006
    Error 3003
    I love that types of error... which is har to find answer on google :-( I have tried but I haven't find any constructive :-( Did you met with something similar? Which log I should check (sorry - I'm still noob in SCCM2012) to update actual SCCM Client SP1
    (5.00.7804.1000) to SP1 CU3 (5.00.7804.1400)? 
    Thank you.

    I see in fodler with CU3 updates, are four packages:
    - SP1 Cumulative update 3 - x64 client update
    - SP1 Cumulative update 3 - x86 client update
    - SP1 Cumulative update 3 - server update 
    - SP1 Cumulative update 3 - console update
    It will be stupid but... maybe I should deploy x64 client update package? 

  • Simple Chat Client using Java

    Hi again. I'm thring to implement a simple chat client into my game and I need some help coding it, because it's way over my head. lol thanks

    Well, you have left your question very vague, and people tend to get irritated by it. First of all, you need to really specify what you need. If you have nothing and need everything....you need to start by thinking about what methods will be used to send the messages...the GUI should be the last part. Do you need a server, plan on using a public server, or in a LAN environment. If you need a server, what type? Do you plan on writing your own?
    For example, if you wanted to use an IRC server as your server, you could use PircBot as your backend for the communication and then integrate that into a GUI. If you wanted AOL, there are packages out there you can use.
    If you have things thought out, you need to tell us what you are really asking and what you aready have. Otherwise, you have a lot of things to think about.

  • Vmware vsphere update manager client 5.1 update 3 fails to install

    Hi guys,
    I tried to install VMware vSphere update manager client 5.1 update 3 to upgrade the old client (5.1 update 2) and keep failing without any visible error. I notice that right after start installing sun java runtime environment  the installation fail and the rolling back process start and abort the installation. Did any of you have experience this before? if yes what is the solution.
    vCenter 5.1 update 3 Build 2306353
    ESXi 5.1.0,2191751
    Thanks in advance.

    Hi,
    Had the same problem.
    Seems to be no solution apart from uninstalling 5.1 U2, then installing 5.1 U3. (worked for me)
    It's the same problem as this KB: KB2092290, which remains unresolved.

Maybe you are looking for

  • Hello urgent batch management issue

    hello to every one   iam having issue , while creating sales order , if material batch is going to expire in next 3 months then system should not save that sales order , system has to pop up message to save the sales order or not if any one having so

  • SAP Business Connector - Event Manager

    Hi all, We're still using SAP BC 4.7 and I'm looking to the event manager to capture an exception that, for us, results in data loss. The error we get periodically is: 2008-10-07 07:28:59 GMT+00:00 com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_

  • After Effects users out there using Avid QT codecs...

    Hi. I am just wondering, especially to all those Motion Graphic Designers and alike who are using b After Effects and b rendering with clips from Avids with a Avid QuickTime codec or Meridien Compressed codec... Do you have a problem or an error mess

  • Consistent Gets statistic

    I would like to get a better understanding of what exactly this statistic means. Oracle documentation states: Consistent Gets is the number of times a consistent read was requested for a block. Is the data included in Consistent Gets coming from a Ro

  • Locked hard drive

    An Apple remanufactured Mac Pro purchased two months ago has locked its hard drive (possibly with help from a cat that walked across the keys). It won't accept our administrator password. We never noticed whether filevault or firewalls were set by Ap