Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
回复: Re: [ecf-dev] hi, about creating a new chatroom using ecf

Thanks !
  I am using a jabber server called wildfire.
  and i am developing ecf application for the server.
 my problem is that i found it hard to create a new chatroom on server ,
look at this :i mean create a new chatroom using ecf not connect to a existed
chatroom ,help me please .
 thanks!:)


Remy Suen <remy.suen@xxxxxxxxx> 写道:
For IRC, I had to execute the following code to join the channel:

ircClient = ContainerFactory.getDefault().createContainer("ecf.irc.irclib");

Namespace targetNamespace = ircClient.getConnectNamespace ();
ID targetID = IDFactory.getDefault().createID(targetNamespace, "irc://rcjsuen@xxxxxxxxxxxxxxxx");

ircClient.connect(targetID, ConnectContextFactory.createUsernamePasswordConnectContext ("", ""));
man = (IChatRoomManager) ircClient.getAdapter(IChatRoomManager.class);
icrc = man.getChatRoomInfo("#eclipse-soc").createChatRoomContainer();

icrc.connect(IDFactory.getDefault ().createID(icrc.getConnectNamespace(), "#eclipse-soc"), ConnectContextFactory.createPasswordConnectContext(""));

For the object types:
ircClient = IContainer
man = IChatRoomManager
icrc = IChatRoomContainer

I'm guessing that XMPP is something similar, I have yet to try connecting to my XMPP account ECF, sorry.

Regards,
Rem

On 7/19/06, lee mike <userinfo8@xxxxxxxxxxxx> wrote:
hello:
   help me !
how could  i use ecf to create a new chatroom?
i notice that i can only get a XMPPClientSOContainer when using final
IContainer client =
ContainerFactory.getDefault().createContainer(" ecf.xmpp.smack")
I wonder whether  XMPPGroupChatSOContainer is useful to this problem or not?
   if it does ,how can i get the XMPPGroupChatSOContainer?
Thanks!
_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev



_______________________________________________
ecf-dev mailing list
ecf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ecf-dev


Mp3疯狂搜-新歌热歌高速下

Back to the top