Best way to code a Chat Application

Hi
I'm starting a project at work that is going to involve a chat mechanism between 2 parties only. Then the application will be needed to transfer a file, or maybe xml between the 2 clients.
I'm looking into the various technologies to do this, so does anyone have any hint or ideas.
Requirements are:
work project
run over internet, behind firewalls and proxies
will only ever be a private chat between 2 parties
must be able to share files/objects/xml
secure
fast reliable etc.
I decided on an application rather than a website or applet. pointing towards sockets but not sure. also looking at SOAP.
Any hints ?
Thanks
Stevie500

Why dont you pull your head out?
The idea (which you seem to have completely missed by an incredibly long way) is give something a go then ask for help. Are you honestly going to tell me you did a google search and thought "that looks like too much effort trying one of these examples, I'll be a troll and get someone to either write it for me or to choose one of the ideas for me cus I'm a bit thick".
Is thinking "i'm going to write an app instead of an applet" as far as u got? omg.
If you don't want to start from scratch my suggestion is to do a google search and try one of the examples.
If you do want to start from scratch then learn about sockets. I wrote my first chat app in a couple of days. I knew java but nothing about sockets when i started. It dosn't take long (assuming you're not a lazy git).

Similar Messages

  • What is the best way to add a chat room to my website?

    I would like to have a "discussion" room for various agencies to discuss an issue.  Are there any recommendations on what to use, or how to make that happen?  I am not a tech, so simple is good.  Thank you in advance for your help.

    Generally, the best way to do a chat room would be to use/purchase a ready made third party application on your server.
    There's nothing in DW that can do this kind of thing for you.
    Here's a page with a few options: http://www.makeuseof.com/tag/the-six-best-chat-rooms-for-your-site/
    But if you do a search for "add chat room to my website" tons of stuff comes up.
    You may also want to check with your hosting company, some will offer simple chat functionality with their hosting accounts that you basically turn on and link to from your pages.

  • Best way to code a simple wait/delay?

    What is the best way to code a simple wait/delay so that my application idles for a few seconds before continuing? I'd rather not use a loop to do this and am looking for a better solution. This code will not be threaded, so I'm not going to use sleep(). TIA

    From the OS level, yes it is a process; from Java's perspective, it's a Thread, at least in Sun's implementation.
    According to the JVM specification, section 2.1.9, "The Java virtual machine initially starts up with a single nondaemon thread, which typically calls the method main of some class. The virtual machine may also create other daemon threads for internal purposes. The Java virtual machine exits when all nondaemon threads have terminated."
    http://java.sun.com/docs/books/vmspec/2nd-edition/html/Concepts.doc.html#33308

  • What is the best way to deploy a java application ??

    Hi,
    I have a question about "deploying" a java application on to a weblogic server.
    Please advise me how to automate in a best way to Deploy 10 different applications(.ear/.war) to 10 different Clusters(containing 40 Managed servers) in wls6.1......and that too in a Production environment.
    I know of using Weblogic Console OR the "deploy" utility to do so ......BUT if i have like 100 clusters .....then i would have to "deploy" 100 times ......
    is there any way that we can BEST AUTOMATE this process.
    Thanks a lot.
    -sangita

    HELLO!!! WELCOME BACK!! I THINK YOU SHOULD USE
    deploy....Hey Thanks.
    is there any network congestion OR any other problem that i can anticipate before i use "deploy" utility. I have heared of some problems(i couldn't remember them now ....because honestly, i couldn't understand them atall when a BEA consultant told me those...).
    so, any problem that may arise ....that i need to think about before deploying ~10 applications to like ~70-80 clusters ....all at a time.
    thanks again for your advise. iam learning to see the big picture of application deployment.
    -sangita

  • Best way to create an IPhone Application for my Blog

    What's the best way to create an Iphone application for my Blog? I've seen several blogs that have their own application.
    Could use some help,
    Used Car parts Guy
    <Edited by Moderator>

    Thanks for this info... I too am interested in creating my own application... Would love to hear from others...
    Do you think it brings in traffic?
    Are you charging for your application or free?
    Thanks,
    <Edited by Moderator>

  • Best way to Export/Import Workspace/Applications

    Hello Gurus,
    I am moving servers and wanted to know the best way to Move Workspaces/applications.
    I am on 10G R2 and Application Express 3.0.1.
    I have created a database on the new server.
    Installed http server. Installed Application Express.
    I can get into application express using the admin password.
    On the database side I have 3 tablespaces and 3 Oracle schemas.
    On the Application Express side I have 3 workspaces that are linked to
    the 3 Oracle Schemas.
    I imported (Oracles Import) one of the Schemas.
    If I get into Application Express and try to import the Workspace it gives
    me an error'Workspace will not be created because it already exists.'
    Will importing a workspace import all the applications in the workspace.
    Dhiren

    Did you export the workspace to a file and then try to import it when you got that message? What is the name of the workspace? I don't know why you would get that error in a newly installed Application Express unless you tried to manually create a workspace with that name somehow before you tried the import.
    Anyway, you might want to re-install and start over by (1) exporting each workspace to a file, (2) importing each workspace from those files into the new instance, and (3) do the same export/import cycle for each application from old to new instances, for each workspace. Workspace export/import does not include applications or anything except the workspace name, the schema list, and the user accounts. You may want to export/import css, static files, images, UI defaults, and themes too, if you want to carry those over.
    Scott

  • What is the best way to distribute your swing application:

    I have developed a application that connects to data base and it containes the functionality to manage the invoices and receipts system, but i am scare to distribute it by building it to jar using the netbeans build option , it runs fine but when i extract the jar file back i m scare that any one can easily decompile it using JAD and get the database credentials , please tell me the best way to distribute the application so that reverse engineering the application will not be possible please tell me that :(

    Decompiling is unnecessary. All somebody would have to do would be to sniff the transmissions between your application and your database; the credentials are sent unencrypted.
    So the problem is not that somebody could find out the database credentials, the problem is that your database exposes itself to the internet. And if anybody does find the credentials through any method at all, then you've got a problem.
    And by the way if you distribute your application with the credentials hard-coded, then that makes it difficult for you to change the password if it does get compromised, because then nobody can use your application any more. This is a bad thing because one of the first things you should do when your system is compromised is to change the access password.
    So really the best way to distribute this application would be to write it so that it connects to an application which runs on your server. This server application would communicate with the database, which would make it unnecessary for the database to be visible from the internet. Your Swing application would communicate with the server application via some kind of web service protocol.

  • Best way to bundle JavaHelp with application

    What is the best way to bundle JavaHelp with an application....
    At present I have to run the application that uses JavaHelp as follows
    java -classpath ;lib/jhall.jar HelpMenu
    Is there a better way? so that when the application is moved to a client machine the classpath to the javaHelp jhall.jar does not have to be supplied as above?
    Cheers :)

    If you don't want to specify the classpath you can
    1> either create a batch/shell script with lauches the app with the appropriate classpath
    2> You jar your app and specify the classpath in your jars's MANIFEST.MF file like this.
    Main-Class: main class name which will launch the app
    Class-Path: jhall.jar
    The above entries assume jhall.jar is in the same dir as your main jar. You can put more jars in the classpath above by separating them with space.
    With this the app can be just lauched by typing: java -jar filaname.jar

  • Best way to create a service application

    Hi there, I have an API that manipulate files. Every project that uses this funcitionality must have their own code to manipulate this.... Im thinking to create an application that can be acessed and it returns the pdf file instead to implement this in all applications that need to have this funcionality.
    The question is.. What is the best approach to easily create this?? Maibe EJB, Webservices?? Spring maibe??
    Thanks @

    I understood that you intend to build an application which will serve several clients. Those clients will 'ask' for pdf files or any other format. Am I right?
    If so, i think that a good approach would be a EJB service being exposed as a webservice. So, any other applications could reach its endpoint and get the files. As a request your EJB service, I mean your webservice, receives the required parameters to build or retrieve the contents of a pdf file. In other hand, as response, webservices gives back a path file (a download link), stores the file in DB or even attaches the pdf file to response.
    If you're using Oracle SOA Suite technologies, this task can be made easier through file and db adapters in SCA Composites. However, if you don't use such technologies, you can achieve the same results by building webservices.

  • Best way to develope a BSP application

    Hi Experts,
       Can you help e in writing a BSP applications. I have couple of basic Q?s on it.
    1. I hope the structure of an BSP applicatons will be writing JAVASCRIPT in HTML or HTMLB pages???
    is that correct..
    2. Can anybody let me know the best approach fr this...
    Thanks in advance....

    Hi Krish,
    If your SAP Version is greater than 4.7 then, better u go for WEBDynpro ABAP rather than BSP.
    BSP = ABAP + HTML + Javascript
    (BSP is like normal ABAP expect the output display. U can use all the ABAP objects in BSP and to display output in web, u need to use some html tags. and Javascript for client side validation.)
    (HTMLB is higher version, there no need to write code for displaying button/form.. as its already written.Just u need to drag and drop the relevant htmlb element in ur bsp page)
    Regards,
    Jothi.P

  • Right way to code an AIR application that uses sqllite database

    I am developing an AIR application that uses sqllite database.I want to know the correct way in which I should create the connections and SQLstatements according to MVC pattern.For example,whether i should have a single SQLStatement object for all my sql operations or I should use separate objects for insert,delete,select etc.I know how to open connection,execute statements and all,but i want to know the professional way of writing it.

    Make a controller for connect to db and save the connection in global varible (in model). Use this connection variable whenever u wanna execute the sql statements. Create seperate dao's for each table. Queries should be executed under the daos. You can call the method under the dao for execute the query from controller and show the result in view.

  • Best way to find out the applications/packages on the Sun Servers

    I need to find out what applications or packages are running on 10+ Sun Solaris servers, and the dependence.
    I am wondering what is the best practice to do this?

    Are you asking about what you see when you type "ps -ef" to see the processes? Or are you maybe also referring to what applications might be installed on your system for use? "pkginfo" lists all packages that are installed on the system, and you can go to the sysadm documentation on docs.sun.com to see a brief description of each of the packages.
    -- Alan

  • What's the best way to know whether an application is running for the first time? (C#)

    I seen suggestions like making a registry entry, or making an entry in the application specific settings file. But what's the best practice? I want to do some custom tasks if that is a first run.
    Also, I am deploying my application using per machine MSI installer. So un-installation not deleting the user specific config files that's get created under AppData.
    Thanks Prasad

    Hello,
    Whenever possible I prefer to avoid the registry. The following works once per user where we see if a specific folder exists or not, if it does not then do first time initialization work then set a setting in the project which causes a user config file to
    be written to the location for storing user settings per user. 
    You first need to create a setting in the project, in this case I did
    var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal);
    string configPath = config.FilePath.Replace("\\user.config", "");
    if (System.IO.Directory.Exists(configPath) )
    Console.WriteLine("This is not the first time");
    else
    // Do one time setup here
    Properties.Settings.Default.FirstTimeValue = "1";
    Properties.Settings.Default.Save();
    Console.WriteLine("This was the first time");
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • The best way to distribue att Swing Application?

    How can I do this?
    If I give it out in .class format only them with J2SE will be able to run it..
    how do you do it?
    Tanx for any help!

    Hi,
    it depends on how you distribute your Swing
    application. If you distribute it on CD, then include
    a JRE on the CD.
    Or you could try to convince or attract your users to
    download the latest JRE themselves before the first
    usage of your application.
    If you distribute your application through the web,
    put two buttons on a HTML page, one linking to a JRE
    download (with some installation instructions before
    the start of the download), the second button being a
    JavaWebStart button for your swing application.
    Or you could use InstallAnywhere and bundle JRE and
    application into an installer.
    HTH
    Ulrich
    Tanx
    Go to http://forum.java.sun.com/thread.jsp?forum=31&thread=335146
    and write anything and I'll give you a duke dollar

  • Best way to code to retrieve a field that matches one value

    Hello,
    Thanks for reading this post!
    I have a data set where users can be part of workgroups. I want to exclude any user that is part of workgroup 2 and 7, and only retrieve users that are solely part of workgroup 2.
    There can be users that are part of just workgroup 7 or other workgroups like 4, 5, 6 etc., but I only want users that have only workgroup 2 and no other workgroup.
    CREATE TABLE users
    ( user_id NUMBER(10)
    , user_lastname VARCHAR2 (50)
    , workgroup NUMBER(10)
    INSERT ALL
    INTO users(user_id, user_lastname, workgroup) VALUES (1, User_lastname1, 2)
    INTO users(user_id, user_lastname, workgroup) VALUES (1, User_lastname1, 7)
    INTO users(user_id, user_lastname, workgroup) VALUES (2, User_lastname2, 2)
    INTO users(user_id, user_lastname, workgroup) VALUES (2, User_lastname2, 7)
    INTO users(user_id, user_lastname, workgroup) VALUES (3, User_lastname3, 2)
    INTO users(user_id, user_lastname, workgroup) VALUES (4, User_lastname4, 7)
    I want to exclude any users that have both workgroups 2 and 7 and
    only retrieve users that have just 2. In this case I only want to retrieve user_id 3.
    Thanks!
    Edited by: dbarcell on Oct 8, 2011 11:44 AM
    Edited by: dbarcell on Oct 8, 2011 11:48 AM
    Edited by: dbarcell on Oct 8, 2011 11:51 AM

    dbarcell wrote:
    Hello,
    Thanks for reading this post!
    I have a data set where users can be part of workgroups. I want to exclude any user that is part of workgroup 2 and 7, and only retrieve users that are solely part of workgroup 2.
    There can be users that are part of just workgroup 7 or other workgroups like 4, 5, 6 etc., but I only want users that have only workgroup 2 and no other workgroup.
    CREATE TABLE users
    ( user_id NUMBER(10)
    , user_lastname VARCHAR2 (50)
    , workgroup NUMBER(10)
    INSERT ALL
    INTO users(user_id, user_lastname, workgroup) VALUES (1, User_lastname1, 2)
    INTO users(user_id, user_lastname, workgroup) VALUES (1, User_lastname1, 7)
    INTO users(user_id, user_lastname, workgroup) VALUES (2, User_lastname2, 2)
    INTO users(user_id, user_lastname, workgroup) VALUES (2, User_lastname2, 7)
    INTO users(user_id, user_lastname, workgroup) VALUES (3, User_lastname3, 2)
    INTO users(user_id, user_lastname, workgroup) VALUES (4, User_lastname4, 7)
    I want to exclude any users that have both workgroups 2 and 7 and
    only retrieve users that have just 2. In this case I only want to retrieve user_id 3.
    Thanks!
    Edited by: dbarcell on Oct 8, 2011 11:44 AM
    Edited by: dbarcell on Oct 8, 2011 11:48 AM
    Edited by: dbarcell on Oct 8, 2011 11:51 AMSQL> CREATE TABLE users
    ( user_id NUMBER(10)
    , user_lastname VARCHAR2 (50)
    , workgroup NUMBER(10)
    INSERT ALL
    INTO users(user_id, user_lastname, workgroup) VALUES (1, User_lastname1, 2)
    INTO users(user_id, user_lastname, workgroup) VALUES (1, User_lastname1, 7)
    INTO users(user_id, user_lastname, workgroup) VALUES (2, User_lastname2, 2)
    INTO users(user_id, user_lastname, workgroup) VALUES (2, User_lastname2, 7)
    INTO users(user_id, user_lastname, workgroup) VALUES (3, User_lastname3, 2)
    INTO users(user_id, user_lastname, workgroup) VALUES (4, User_lastname4, 7) 2 3 4 5
    Table created.
    SQL> SQL> 2 3 4 5 6 7 ;
    INTO users(user_id, user_lastname, workgroup) VALUES (4, User_lastname4, 7)
    ERROR at line 7:
    ORA-00928: missing SELECT keyword
    test data is FUBAR!

Maybe you are looking for

  • Best app to download Indian (bollywood) music

    hi everyone, can u please suggest me which is the best free app to download indian (bollywood) music on my curve 8520 please guide. Thanks in Advance.

  • Error while Importing MDL File

    Hi All, While Importing a MDL File, I am getting the following Error. Can someone help me asap. mport started at Apr 6, 2010 10:20:09 AM Project "PUBLIC_PROJECT" Error occurred importing from file "C:\oracle\product\10.2.0\db_2\owb\bin\admin\ETLDEV-2

  • Printing logos for a mic flag?

    I want to print a logo for a mic flag, something to: http://www.bhphotovideo.com/c/product/266385-REG/GB_Mic_Flag__Square_Microphone_Flag_.html 1.) What type of paper can I use to print on that I can stick to the flag? 2.) Any tips for doing somethin

  • File crashing when placing or linking

    I am getting extremely frustrated! I use InDesign CS5.5 daily for my job.  I would say I have to force quit probably 8-10 times a day.  Almost everytime I try to relink or place an image I get the spinning beach ball or InDesign automatically closes

  • Stand alone Transaction

    Hi All           I'm having a stand alone backoffice that do all kind of works for the EJB's           I'm wanting that this BackOffice will connect to the Oracle 8.1.5 DB by           using the same           connectionPools as the EJB's, and will b