Project

General

Profile

Tigase server with OSGI

Razor Ra
Added over 5 years ago

Hi, I was playing around with Tigase server and Apache Felix OSGI and came across at this post ,

in which +Artur Hefczyc+ said that

Quote:

??We have put a lot of effort to make it OSGi compatible. The last version can be run within OSGi framework. We use Apache Felix in our tests and deployments but it should be equally possible to use any other OSGi framework as well.

We are going to publish more details about this feature within next few weeks.??

I tried to find the details about this in the wiki pages, but haven't find any thing related to this.

So could you please tell me how you have deployed Tigase server in Apache Felix?

Thanks


Replies (6)

Added by Wojciech Kapcia TigaseTeam over 5 years ago

You can grab latest nightly enable OSGi mode in etc/tigase.conf and it should run as Felix bundle.

If you want to run it within your own container then you should be able to simply install tigase-server.jar as a bundle from your Felix console. There is however a dependency for jul-to-slf4j

Added by Razor Ra over 5 years ago

Wojciech Kapcia wrote:

You can grab latest nightly enable OSGi mode in etc/tigase.conf and it should run as Felix bundle.

If you want to run it within your own container then you should be able to simply install tigase-server.jar as a bundle from your Felix console. There is however a dependency for jul-to-slf4j

Can you please tell me, how can I add jul-to-slf4j dependency to tigase-server.

Thanks

Added by Razor Ra over 5 years ago

I have downloaded tigase-server-5.2.0-SNAPSHOT-b3296-dist.tar.gz and placed the tigase-server.jar in apache felix.

I have also placed the following jars in felix/bundle folder:

  • jul-to-slf4j-1.7.5.jar

  • slf4j-simple-1.7.5.jar

  • slf4j-api-1.7.5.jar

and by using apache felix console, I have installed the tigase-server jar and started it.

Tigase-server started, but gives a lot of exceptions, and also I don't think tigase server is stable enough with apache felix.

I am using Tigase-server for quite some time now, and it is working absolutely fine. I have also created couple of tigase plug-ins and they are also working fine.

Can you tell me,

  1. How much tigase-server is stable with Felix?

  2. And with tigase-server-5.2.0 stable release, will it be stable enough to deploy it on production server?

Added by Wojciech Kapcia TigaseTeam over 5 years ago

It should be quite stable, however we haven't stress tested it yet. We are currently still in beta thus mentioned exceptions will be taken care of before final release.

Added by Razor Ra over 5 years ago

Ok thanks.

And one last thing, right now I am creating tigase plugins and placing them in the /libs folder of tigase server.

Is there a way to create a tigase plugin in apache Felix?

Added by Wojciech Kapcia TigaseTeam over 5 years ago

Yes, it is possible to create plugins (jar files) and place them in /libs directory, but they need to be registered, which is done using Activator in bundle containing plugins (if plugins are not in server bundle). Please see https://projects.tigase.org/projects/message-archiving/repository/revisions/master/entry/src/main/java/tigase/archive/Activator.java for example of registration and deregistration of plugins and components

    (1-6/6)