You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Leonardo Torres <le...@gmail.com> on 2013/07/23 15:25:55 UTC

OSGi in Tomcat

Hi guys,

I would like to know how can I integrate tomcat with osgi (Equinox)?


thank´s.
-- 
Obrigado
Leonardo Torres.

Re: OSGi in Tomcat

Posted by Leonardo Torres <le...@gmail.com>.
It´s great Violeta.

We will move the discussion :)


On Thu, Jul 25, 2013 at 1:19 AM, Violeta Georgieva <mi...@gmail.com>wrote:

> 2013/7/25 Leonardo Torres wrote:
> >
> > Thank´s. In my case, It´s not a problem the incompatibility. :)
> >
> > Sorry for my question, but in this case, I create a class that inherits
> > from WebSocketServlet and use HttpService to register it?
>
> You create a class that inherits WebSocketServlet and pack it as in normal
> war.
> Then install the archive in OSGi and that's all.
> There is no need of HttpService.
>
> If you are interested in Gemini Web we can move the discussion here [1]
>
>
> Regards
> Violeta
>
> [1] http://www.eclipse.org/forums/index.php?t=thread&frm_id=153&
>



-- 
Obrigado
Leonardo Torres.

Re: OSGi in Tomcat

Posted by Violeta Georgieva <mi...@gmail.com>.
2013/7/25 Leonardo Torres wrote:
>
> Thank´s. In my case, It´s not a problem the incompatibility. :)
>
> Sorry for my question, but in this case, I create a class that inherits
> from WebSocketServlet and use HttpService to register it?

You create a class that inherits WebSocketServlet and pack it as in normal
war.
Then install the archive in OSGi and that's all.
There is no need of HttpService.

If you are interested in Gemini Web we can move the discussion here [1]


Regards
Violeta

[1] http://www.eclipse.org/forums/index.php?t=thread&frm_id=153&

Re: OSGi in Tomcat

Posted by Leonardo Torres <le...@gmail.com>.
Thank´s. In my case, It´s not a problem the incompatibility. :)

Sorry for my question, but in this case, I create a class that inherits
from WebSocketServlet and use HttpService to register it?


On Wed, Jul 24, 2013 at 3:38 PM, Niki Dokovski <ni...@gmail.com> wrote:

> On Wed, Jul 24, 2013 at 9:07 PM, Leonardo Torres
> <le...@gmail.com>wrote:
>
> > Thank´s for reply.
> >
> > With Gemini, can I use the tomcat websocket implementation?
> >
>
> You can use proprietary org.apache.catalina.websocket implementation. That
> however is not compatible with JSR 356 APIs.
>
>
> >
> > On Wed, Jul 24, 2013 at 8:09 AM, Martin Gainty <mg...@hotmail.com>
> > wrote:
> >
> > > asking your release manager to build an OSGI artifact with eclipse may
> be
> > > a bit of a stretch if this is a live production-ready system then you
> > will
> > > most likely be building at command-line with either ant or maven
> > >
> > > the trickiest part is interfacing to BND start and BND stop which can
> be
> > > accomplished with Activator sample code seen here
> > >
> > >
> >
> http://wso2.com/library/tutorials/develop-osgi-bundles-using-maven-bundle-plugin
> > >
> > > lets pick this thread on users@maven.apache.org
> > >
> > > Martin
> > > ______________________________________________
> > > /Verzicht und Vertraulichkeitanmerkung/Note de déni et de
> confidentialité
> > >
> > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> > unbefugte
> > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese
> Nachricht
> > > dient lediglich dem Austausch von Informationen und entfaltet keine
> > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> > >
> > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
> > le
> > > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> > > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> > copie
> > > de ceci est interdite. Ce message sert à l'information seulement et
> > n'aura
> > > pas n'importe quel effet légalement obligatoire. Étant donné que les
> > email
> > > peuvent facilement être sujets à la manipulation, nous ne pouvons
> > accepter
> > > aucune responsabilité pour le contenu fourni.
> > >
> > >
> > > > Date: Wed, 24 Jul 2013 13:30:01 +0300
> > > > Subject: Re: OSGi in Tomcat
> > > > From: milesg78@gmail.com
> > > > To: users@tomcat.apache.org
> > > >
> > > > 2013/7/23 Leonardo Torres wrote:
> > > > >
> > > > > Thank´s for reply.
> > > > >
> > > > > Just one more question, If I want to use tomcat inside of OSGi
> > > > environment,
> > > > > how can I do that ?
> > > > >
> > > >
> > > > Check Gemini Web documentation:
> > > >
> > > > http://www.eclipse.org/gemini/web/documentation/
> > > > http://wiki.eclipse.org/Gemini/Web
> > > >
> > > > Regards
> > > > Violeta
> > >
> > >
> >
> >
> >
> > --
> > Obrigado
> > Leonardo Torres.
> >
>



-- 
Obrigado
Leonardo Torres.

Re: OSGi in Tomcat

Posted by Niki Dokovski <ni...@gmail.com>.
On Wed, Jul 24, 2013 at 9:07 PM, Leonardo Torres
<le...@gmail.com>wrote:

> Thank´s for reply.
>
> With Gemini, can I use the tomcat websocket implementation?
>

You can use proprietary org.apache.catalina.websocket implementation. That
however is not compatible with JSR 356 APIs.


>
> On Wed, Jul 24, 2013 at 8:09 AM, Martin Gainty <mg...@hotmail.com>
> wrote:
>
> > asking your release manager to build an OSGI artifact with eclipse may be
> > a bit of a stretch if this is a live production-ready system then you
> will
> > most likely be building at command-line with either ant or maven
> >
> > the trickiest part is interfacing to BND start and BND stop which can be
> > accomplished with Activator sample code seen here
> >
> >
> http://wso2.com/library/tutorials/develop-osgi-bundles-using-maven-bundle-plugin
> >
> > lets pick this thread on users@maven.apache.org
> >
> > Martin
> > ______________________________________________
> > /Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
> >
> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> unbefugte
> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> > dient lediglich dem Austausch von Informationen und entfaltet keine
> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> >
> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas
> le
> > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> copie
> > de ceci est interdite. Ce message sert à l'information seulement et
> n'aura
> > pas n'importe quel effet légalement obligatoire. Étant donné que les
> email
> > peuvent facilement être sujets à la manipulation, nous ne pouvons
> accepter
> > aucune responsabilité pour le contenu fourni.
> >
> >
> > > Date: Wed, 24 Jul 2013 13:30:01 +0300
> > > Subject: Re: OSGi in Tomcat
> > > From: milesg78@gmail.com
> > > To: users@tomcat.apache.org
> > >
> > > 2013/7/23 Leonardo Torres wrote:
> > > >
> > > > Thank´s for reply.
> > > >
> > > > Just one more question, If I want to use tomcat inside of OSGi
> > > environment,
> > > > how can I do that ?
> > > >
> > >
> > > Check Gemini Web documentation:
> > >
> > > http://www.eclipse.org/gemini/web/documentation/
> > > http://wiki.eclipse.org/Gemini/Web
> > >
> > > Regards
> > > Violeta
> >
> >
>
>
>
> --
> Obrigado
> Leonardo Torres.
>

Re: OSGi in Tomcat

Posted by Leonardo Torres <le...@gmail.com>.
Thank´s for reply.

With Gemini, can I use the tomcat websocket implementation?


On Wed, Jul 24, 2013 at 8:09 AM, Martin Gainty <mg...@hotmail.com> wrote:

> asking your release manager to build an OSGI artifact with eclipse may be
> a bit of a stretch if this is a live production-ready system then you will
> most likely be building at command-line with either ant or maven
>
> the trickiest part is interfacing to BND start and BND stop which can be
> accomplished with Activator sample code seen here
>
> http://wso2.com/library/tutorials/develop-osgi-bundles-using-maven-bundle-plugin
>
> lets pick this thread on users@maven.apache.org
>
> Martin
> ______________________________________________
> /Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
> > Date: Wed, 24 Jul 2013 13:30:01 +0300
> > Subject: Re: OSGi in Tomcat
> > From: milesg78@gmail.com
> > To: users@tomcat.apache.org
> >
> > 2013/7/23 Leonardo Torres wrote:
> > >
> > > Thank´s for reply.
> > >
> > > Just one more question, If I want to use tomcat inside of OSGi
> > environment,
> > > how can I do that ?
> > >
> >
> > Check Gemini Web documentation:
> >
> > http://www.eclipse.org/gemini/web/documentation/
> > http://wiki.eclipse.org/Gemini/Web
> >
> > Regards
> > Violeta
>
>



-- 
Obrigado
Leonardo Torres.

RE: OSGi in Tomcat

Posted by Martin Gainty <mg...@hotmail.com>.
asking your release manager to build an OSGI artifact with eclipse may be a bit of a stretch if this is a live production-ready system then you will most likely be building at command-line with either ant or maven

the trickiest part is interfacing to BND start and BND stop which can be accomplished with Activator sample code seen here
http://wso2.com/library/tutorials/develop-osgi-bundles-using-maven-bundle-plugin
 
lets pick this thread on users@maven.apache.org

Martin 
______________________________________________ 
/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

 
> Date: Wed, 24 Jul 2013 13:30:01 +0300
> Subject: Re: OSGi in Tomcat
> From: milesg78@gmail.com
> To: users@tomcat.apache.org
> 
> 2013/7/23 Leonardo Torres wrote:
> >
> > Thank´s for reply.
> >
> > Just one more question, If I want to use tomcat inside of OSGi
> environment,
> > how can I do that ?
> >
> 
> Check Gemini Web documentation:
> 
> http://www.eclipse.org/gemini/web/documentation/
> http://wiki.eclipse.org/Gemini/Web
> 
> Regards
> Violeta
 		 	   		  

Re: OSGi in Tomcat

Posted by Violeta Georgieva <mi...@gmail.com>.
2013/7/23 Leonardo Torres wrote:
>
> Thank´s for reply.
>
> Just one more question, If I want to use tomcat inside of OSGi
environment,
> how can I do that ?
>

Check Gemini Web documentation:

http://www.eclipse.org/gemini/web/documentation/
http://wiki.eclipse.org/Gemini/Web

Regards
Violeta

Re: OSGi in Tomcat

Posted by Leonardo Torres <le...@gmail.com>.
Thank´s for reply.

Just one more question, If I want to use tomcat inside of OSGi environment,
how can I do that ?


On Tue, Jul 23, 2013 at 12:50 PM, Violeta Georgieva <mi...@gmail.com>wrote:

> 2013/7/23 Leonardo Torres wrote:
> >
> > Let me explain my scenario, so you can help me.
> >
> > I have an application that uses the implementation of tomcat to
> websocket,
> > and this application need to find services dynamically. So I need to use
> > OSGi as service repository.
> >
> > I believe embed OSGi in tomcat, work in my scenario.
> >
>
>
> Then check that http://eclipse.dzone.com/articles/embedding-osgi-tomcat
>



-- 
Obrigado
Leonardo Torres.

Re: OSGi in Tomcat

Posted by Violeta Georgieva <mi...@gmail.com>.
2013/7/23 Leonardo Torres wrote:
>
> Let me explain my scenario, so you can help me.
>
> I have an application that uses the implementation of tomcat to websocket,
> and this application need to find services dynamically. So I need to use
> OSGi as service repository.
>
> I believe embed OSGi in tomcat, work in my scenario.
>


Then check that http://eclipse.dzone.com/articles/embedding-osgi-tomcat

Re: OSGi in Tomcat

Posted by Leonardo Torres <le...@gmail.com>.
Let me explain my scenario, so you can help me.

I have an application that uses the implementation of tomcat to websocket,
and this application need to find services dynamically. So I need to use
OSGi as service repository.

I believe embed OSGi in tomcat, work in my scenario.


On Tue, Jul 23, 2013 at 10:31 AM, Violeta Georgieva <mi...@gmail.com>wrote:

> 2013/7/23 Leonardo Torres wrote:
> >
> > Hi guys,
> >
> > I would like to know how can I integrate tomcat with osgi (Equinox)?
> >
>
> What exactly do you need?
> - OSGi running inside Tomcat
> - Or Tomcat running inside OSGi environment. If this is what you need then
> you can look at http://eclipse.org/gemini/web
>
>
> Regards
> Violeta
>
> >
> > thank´s.
> > --
> > Obrigado
> > Leonardo Torres.
>



-- 
Obrigado
Leonardo Torres.

Re: OSGi in Tomcat

Posted by Violeta Georgieva <mi...@gmail.com>.
2013/7/23 Leonardo Torres wrote:
>
> Hi guys,
>
> I would like to know how can I integrate tomcat with osgi (Equinox)?
>

What exactly do you need?
- OSGi running inside Tomcat
- Or Tomcat running inside OSGi environment. If this is what you need then
you can look at http://eclipse.org/gemini/web


Regards
Violeta

>
> thank´s.
> --
> Obrigado
> Leonardo Torres.