Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 74388 invoked from network); 4 May 2005 16:46:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2005 16:46:24 -0000 Received: (qmail 17438 invoked by uid 500); 4 May 2005 16:46:31 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 17390 invoked by uid 500); 4 May 2005 16:46:30 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 17338 invoked by uid 99); 4 May 2005 16:46:29 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from pop04.mail.atl.earthlink.net (HELO pop04.mail.atl.earthlink.net) (207.69.200.28) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 04 May 2005 09:46:29 -0700 Received: from dialup-4.153.216.20.dial1.atlanta1.level3.net ([4.153.216.20] helo=mindspring.com) by pop04.mail.atl.earthlink.net with esmtp (Exim 3.36 #10) id 1DTMyl-0006Z6-00 for user@struts.apache.org; Wed, 04 May 2005 12:44:08 -0400 Message-ID: <4278FABE.4000701@mindspring.com> Date: Wed, 04 May 2005 12:39:26 -0400 From: Erik Weber User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040316 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: [OT] Recommendation of Instant Messagging System References: <1301d01c55087$1498c350$0a02010a@mail2world.com> In-Reply-To: <1301d01c55087$1498c350$0a02010a@mail2world.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I just finished putting together a system with a Swing client and combined services over XMPP and HTTP. I think Leon's suggestion of doing your own is not bad, if you are good with Sockets, ServerSockets, XML APIs and Threads (find a good tutorial on building a chat system such as in the ubiquitous "Thinking in Java"). There is also JMS which gives you a low-level core. If you want something higher level, just get Smack from jivesoftware.com, which will give you an OO interface to Jabber (XMPP). Then get jabberd from jabber.org. jabberd 1.4 is small, written in C and gets the job done for what you are talking about, so I would start with that. They are working on the 2.0 "enterprise" version. I will warn you that while Smack is a great library (you'll get classes such as "Chat", "Packet", "Message", "Presence", etc.), there are some pitfalls related to Threading to watch out for. I rewrote about a half dozen of the core classes. Fortunately, Smack operates with just two main disptach Threads so once you spend some time with the PacketReader and XMPPConnection classes, you'll figure it out. Apache license, too. Erik masegui wrote: >The requirements are these: >1. A user has a list of the other users in the system. He can click a >button that initiates a conversation with the selected user. The other >user can accept or not the conversation. If accepts, a "chat room" is >opened and now then can have a conversation. The rooms only accept 2 >people. We would like a user to be able to have several conversations at >a time, but each conversation only between 2 people. > >Thanks in advance. > >Miquel Angel Segui > > > >><-----Original Message-----> >>From: Leon Rosenberg >>Sent: 4/5/2005 10:50:38 AM >>To: user@struts.apache.org >>Subject: Re: [OT] Recommendation of Instant Messagging System >> >>if your only functionality is to allow users to send each other >> >> >messages > > >>which are embedded in the site (html, or something, but no >>standalone-desktop solutions) forget about existing systems and >>implement it by yourself. >>I have implemented dozens of such systems over the time, it's normally >>about 100 locs, much less effort than an integration of an existing >>system is. >> >>maybe you could tell us a bit more, about the requirements of the >>system, so we could give you more specific answer. >> >>regards >>Leon >> >>On Wed, 2005-05-04 at 08:13 +0200, Miquel Angel wrote: >> >> >>>We are developing an application (struts 1.1 + Tomcat 5.5 + Java >>> >>> >1.4). One > > >>>of the requirements is to implement an instant messaging system for >>> >>> >the > > >>>users of the site (the system should not be very complex). Do you >>> >>> >mind to > > >>>share your experience in using this system. We are looking for free >>> >>> >or non > > >>>free systems. >>> >>> >>>Thanks in advance. >>> >>>Miquel Angel Segui >>> >>> >>> >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>>For additional commands, e-mail: user-help@struts.apache.org >>> >>> >>> >>> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>For additional commands, e-mail: user-help@struts.apache.org >> >>. >> >> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org