Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

chat application in swings

 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i have to develop a chat application like personnel chat. i have gone through many examples those are public chat examples. can any one give me a link or example to develop the chat application.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, it is 'Swing' as explained in the FAQ.

You can go thru this tutorial to understand sockets. Read is, start coding and post back if you are stuck.
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have created my chat application using kryonet jar file. it is working fine now. I have a doubt, each time i am running server program in one of my local system and other systems in my LAN has to connect it. It is ok. But my doubt is how to run the chat server program only one time(not for every user request) until the application server/web-server closes.
I have to call this chat application in an applet.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea about kyronet.
However, I think you should be able to run the chat server and leave it running...have you tried it?
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for late reply
can i start my server automatically(chat server program) when system starts.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure, just install it as a Windows service or Unix/Linux daemon.
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Sure, just install it as a Windows service or Unix/Linux daemon.

can you give an example
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you find out by googling? You didn't even mention what OS the app would be running on, so 50% of what I might write would be wasted.
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using windows operating system(XP and 7). By googling i found thi link run java as windows service but i am getting their licence term.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tanuki is indeed the standard Java Windows service wrapper. Not sure what you mean by the comment about its license.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic