Compilation new plugin

Submitted by Anonymous on Fri, 2008-05-16 15:06.

hello

I am currently trying to develop a new plugin for your server for the gtalk chat. I have downloaded your msn plugin and checked out it's entrails and created my standalone gtalk xmpp client. I will now try ton integrate my classes respecting your hierarchy. However i have not found any build.xml in your code can you please point what dev environment you are using and how i could compile the plugin. Off course i will offer what ever i develop back to your project if you feel it is interesting.

regards

Trackback URL for this post:

http://www.tigase.org/en/trackback/1407
kobit's picture
Submitted by kobit on Tue, 2008-05-20 16:12.

This is exactly how this is working right now. Like an e-mail just faster ;-).

My previous response was a result of misunderstanding of your initial query.

The use case you presented is a default in the Jabber (XMPP) world and you actually don't have to do anything to get it working. Most of Jabber servers (including Tigase) offer this in the default configuration/installation.

Just install it and run, make sure your DNS is set correctly and that your server is reachable from the Internet.

PS. Indeed notifications from the forum stopped working for some reason. It could happen during migration of the Tigase website/service to the new machine. I will look at it ASAP.... Thank you for letting me know.


Submitted by taroza (not verified) on Tue, 2008-05-20 16:00.

Referring to your question:
"Why do you want somebody to talk on google talk from Tigase through google account? Isn't it simpler to use just google talk service for this?"

This is quite useful, and I am extremely interested in this usecase. For me it looks very natural that there are many XMPP servers out there, and I can talk to somebody sitting on any of those servers. I'd really like to see it functioning like the e-mail. I send an e-mail using my SMTP server, and my message gets to any addressee, independent of the mail provider. So it's actually the server who is dealing with the message sending to other servers, not me (client) connecting to different servers.

Therefore, I would certainly use Tigase (my XMPP server) to talk to other servers, e.g. GTalk, in order to dispatch messages to the person I am reaching out. How do we achieve this??? Looks like it's solely a matter of configuration, isn't it?

Evaldas

PS. By the way, notifications from forum-2@srecv.tigase.org don't work for me...

kobit's picture
Submitted by kobit on Tue, 2008-05-20 09:44.
  1. You can use either pom.xml file to compile the server using maven or build.xml file to compile the server using ant.
  2. The server has MsnConnection class hardcoded as a default gateway. This default value is used in the default configuration generation. It can be easily replaced in the configuration file with a different gateway implementation.
  3. Why do you want somebody to talk on google talk from Tigase through google account? Isn't it simpler to use just google talk service for this? I understand that such a configuration would need indeed XMPP (Jabber) gateway (transport). As far as I know there are already Jabber transports available which possibly could be used with Tigase server.
  4. If you use the MSN transport and all codes from current sources the gateway code might not work right now as it is under the development and I am changing lots of things. The code is scheduled to stabilize in about 2 weeks when we are going to release improved MSN transport and gateway framework.

kobit's picture
Submitted by kobit on Tue, 2008-05-20 09:36.

Hm, I have already replied to the comment before but now I can't see my reply.

Anyway, regarding your questions. All (all I know) XMPP server can communicate with each other using s2s protocol. Some of them can also communicate using XEP-0114 protocol. So in most cases there is no need to implement any plugin (in Tigase it is called component) to talk to other servers. There are cases, though when this might be useful.

Usually we need a gateways to talk to people using other networks (MSN, Yahoo, ICQ, ...). Those gateways are called transports in XMPP (Jabber) world.


Submitted by Anonymous (not verified) on Tue, 2008-05-20 08:57.

thank you for the reply

I had never used maven before hence my missing the pom file.
I was looking into develloping a gateway for gtalk,yahoo,facebook etc...

As of now the gateway part in the tigase server seems hardcoded to the MsnConnection class so i am thinking of maybe expanding it a little.

Interesting question from taroza though google and soon facebook beeing xmpp maybe there are simpler ways, allthough i am trying to have a real gateway where one would talk on google talk from tigase but through his actual google account.

For the Gtalk section using the smack library i was trying to find the library depot to add it. Right now i have recreated an intellij project from the tigase-extra source and added all the maven fetched library as dependencies. Allthough the service discovery does still offer msn gateway i cannot seem to connect or chat through it the server log state messagerouter.processpacket but stays there. Same when i try to register through it.

Submitted by taroza (not verified) on Mon, 2008-05-19 15:58.

I think that should be quite a useful plug-in. However, this post lead me into some thoughts:)

As I understand there are XMPP servevers that communicate to each other via s2s. Since GTalk is an XMPP server as well as Tigase, why do we need a plug in for them to talk to each other? Looks like they by default should speak with s2s protocol for IM. I imagine that a plug-in is needed when you want to get to the outside (not XMPP) world, then you need a gateway.

What am I missing?

kobit's picture
Submitted by kobit on Fri, 2008-05-16 16:04.

Hi,

Please, first look at the developers section for some basic information.

The most important document in there for people who are interested in developing stuff for Tigase is basic information article. This article allows you to understand meaning of basic terms in Tigase project: plugin, component, connector. Please have a read it before continuing asking more questions to make sure we both know what we are talking about.

You should also look at other articles available there as some of them describe how to compile sources using ant or maven tool.

If you still have problems with compilation please get back to me and send me your compilation errors.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.