|ECF BOT on tomcat [message #620814]
||Fri, 25 January 2008 01:17
Originally posted by: schuang.mail.com|
Hi! I am new to ECF. I am trying to implement an IM BOT on Tomcat
server, without Eclipse IDE. Is it possible? Which jar files do I need?
Another question, is it possible to implement a BOT that supports multiple
IM server (MSN, Yahoo, Skype, GTalk) at the same time? I am thinking of
implementing a server system that allows different user from different IM
at the same time. Thanks!
|Re: ECF BOT on tomcat [message #620821 is a reply to message #620814]
||Fri, 25 January 2008 15:21
| Scott Lewis
Registered: July 2009
SC Huang wrote:
> Hi! I am new to ECF. I am trying to implement an IM BOT on Tomcat
> server, without Eclipse IDE. Is it possible?
Yes. It's not using tomcat as the container, but we are running an IRC
IM bot on ecf.eclipse.org (called KOS-MOS that hangs out in several irc
channels on irc.freenode.net...e.g. #eclipse-dev, #eclipse-ecf,
#eclipse-bugs, #eclipse I think).
The use of tomcat as a container is also possible...we are running other
parts of ECF within a tomcat container at ecf.eclipse.org:8080. But
this requires running the Equinox framework (upon which ECF is built)
within tomcat. There is an explanation of how to get Equinox going on
And we have a description of how to setup ECF for running on an Equinox
Finally, we have a bot framework described here:
Note that although the examples are based upon IRC, the bot framework
can/does use other protocols that support multi-user chat rooms (xmpp
group chat). Unfortunately, our current MSN, Yahoo, and Skype providers
do *not* support chat rooms, and the google talk service does not have
chat rooms at all.
If this is something you would like (support of any/some/all of these
providers for chat rooms as opposed to just two-way chat) then please
let us know by filing an enhancement request(s) for specific providers at
Note that if you just want to do two-way chat that all of the following
IM providers support it now (MSN, Yahoo, Skype, xmpp). There are a
couple example of IM bots...e.g here:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ecf/plu gins/org.eclipse.ecf.example.clients/src/org/eclipse/ecf/exa mple/clients/?root=Technology_Project
See XMPPChatClient for an example of IM/two-way chat, XMPPChatRoomClient
for and example of doing chat room/n-way chats.
Note that the ECF presence API is the core API supporting both
IM/two-way chat and n-way chat:
The bot framework pointed to above is based upon the chat room part of
the presence API.
>Which jar files do I need?
You will at least need the following bundles from the ECF distribution:
# org.eclipse.ecf (core ECF APIs)
# org.eclipse.ecf.core.identity (identity and namespace APIs)
# org.eclipse.ecf.presence (presence APIs for monitoring messages and
And, you will need the individual providers (and their dependencies)
that you intend on using:
Note that each of these providers has their own set of other
dependencies (both to ECF and other bundles). See the dependencies list
for each bundle for details).
> Another question, is it possible to implement a BOT that supports
> multiple IM server (MSN, Yahoo, Skype, GTalk) at the same time?
Yes, this is the value of using the ECF presence API. This API is
independent of any particular provider, so any both code that uses it
(either the two-way or group chats) will work with any supporting
providers (note that unfortunately not all providers support both IM and
> thinking of implementing a server system that allows different user from
> different IM at the same time. Thanks!
Yes, I think this is a terrific idea. You could conceivably have a
single both that 'lived' in multiple chat rooms and/or IM sessions...and
perhaps did some processing to coordinate the input/output to all those
locations. If you do some of this, please consider keeping in touch
wiht us (for example, join firstname.lastname@example.org mailing list:
And possibly even contributing the work for other people to use and extend.
Powered by FUDForum
. Page generated in 0.01987 seconds