ECF BOT on tomcat [message #620814] |
Fri, 25 January 2008 06:17 |
Eclipse User |
|
|
|
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 20:21 |
Scott Lewis Messages: 1038 Registered: July 2009 |
Senior Member |
|
|
Hi,
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
tomcat here:
http://www.eclipse.org/equinox/server/http_in_container.php
And we have a description of how to setup ECF for running on an Equinox
server here:
http://wiki.eclipse.org/ECF_Servers
Finally, we have a bot framework described here:
http://wiki.eclipse.org/index.php/Bot_Framework
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
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=ECF& bug_severity=enhancement
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:
http://wiki.eclipse.org/ECF_API_Docs#Presence_API
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
presence
And, you will need the individual providers (and their dependencies)
that you intend on using:
IRC: org.eclipse.ecf.provider.irc
XMPP: org.eclipse.ecf.provider.xmpp
MSN: org.eclipse.ecf.provider.msn
Skype: org.eclispe.ecf.provider.skype
Yahoo: org.eclipse.ecf.provider.yahoo
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
group chat).
I am
> 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 ecf-dev@eclipse.org mailing list:
https://dev.eclipse.org/mailman/listinfo/ecf-dev
And possibly even contributing the work for other people to use and extend.
Thanks,
Scott
|
|
|
Powered by
FUDForum. Page generated in 0.05271 seconds