embedded jabber server

Submitted by Anonymous on Wed, 2007-05-23 16:14.

how can I embed tigase as a jabber server in my app?

thanks in advance

Kenji

Trackback URL for this post:

http://www.tigase.org/en/trackback/1273
kobit's picture
Submitted by kobit on Wed, 2007-05-23 17:07.

Main jar is in jars/ directory: tigase-server.jar and 2 other jar files are in libs/ directory: tigase-utils.jar and tigase-xmltools.jar.

Each binary package contains also JDBC jar files for MySQL and PostgreSQL databases.


Submitted by shikida (not verified) on Wed, 2007-05-23 17:00.

thank you. I'll try that. what are the necessary jars I need?

kobit's picture
Submitted by kobit on Wed, 2007-05-23 16:55.

I don't want it to sound like advertisement but I think Tigase is the best option for this use case for a few reasons:

  1. It is very small package - doesn't use any third-party libraries so it consists of 3 jar files - the server itself + jar file with JDBC driver if you want to use external database
  2. Resource consumption is very small. It was designed for large scale installation and high load service. I know you are not interested in this, but the consequence of such approach is very low resources consumption what does matter for embedded applications.
  3. It is very modular so you can easily add new functionalities and integrate it with your application.
  4. ...., well I don't sell it so I should possibly stop advertise it ;-)

Anyway, back to you original question.
If you look in tigase.server.XMPPServer class main method then everything should become quite obvious. You should do something like this in your application.

If you have any more question or need any help with setting this up let me know. I am always happy to help.


Submitted by shikida (not verified) on Wed, 2007-05-23 16:45.

hi

what I want is to start my own application, and then, start my own jabber server instance, running from inside my app, in the same jvm

yes, I know it won't scale, and that there are several public jabber servers I can use. In my case, I don't need to scale. I just need the simplest approach. Something like adding a jar into my project and letting my app start a jabber server on its own thread

TIA

Kenji

kobit's picture
Submitted by kobit on Wed, 2007-05-23 16:34.

Tigase is a Java application. Normally it runs as a separate process. In theory it can run as one process with other application but it all depends on the case.

What kind of application you are talking about?
What do you really mean by embedding Tigase in your app? Do you want just to have a single installation package or just run Tigase and your app as a single program?
Is there any integration with your application involved?

I need more information to be able to help you.


Comment viewing options

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