You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Adrian Trenaman <tr...@progress.com> on 2008/12/17 19:15:31 UTC
Deploying SMX4 in Tomcat
Hi there,
Can anyone point me to some info on how to deploy SMX4 into a Tomcat
or JEE server?
Thanks in advance,
Ade.
Re: Deploying SMX4 in Tomcat
Posted by Ivanhoe Abrahams <iv...@gmail.com>.
Hi,
Any ideas on the above?
I am looking for a generic way to deploy an OSGI enabled container (SMX4) to
ANY Application- or Web- server, and this thread gives me hope.
I know this is not the correct forum to raise this question, but if you dont
ask....you'll never know
Basically we are looking at using Servicemix 4, in a SOA environment, but
the clients are forcing our hand when it comes to which app-servers or web
servers we may deploy to.
We like the OSGI way of bundling modules but not all appservers are OSGI
enabled, and we do not have control over the deployment environment, other
than providing either an .EAR or a .WAR file to the client which they will
then deploy. I know the ServiceMix 3 can be deployed as a Web app but we are
specifically interested in the OSGI capabilities of SMX4
I have only just started looking at this problem so forgive me if I am
asking silly questions. But can anyone provide me with some insight as to
how this might work? or should we cancel the whole idea
Ivanhoe
On Wed, Dec 17, 2008 at 10:49 PM, Adrian Trenaman <tr...@progress.com>wrote:
> Thanks Chris,
>
> Hmmm - I thought this had been addressed recently! I'll take a look into
> it...
>
> Thanks again,
> Ade
>
> On 17 Dec 2008, at 20:20, Chris Custine wrote:
>
> Hi Ade,
>> I don't think anyone has attempted this yet, but it should be possible
>> with
>> a little work. I *think* this could be done by wrapping
>> org.apache.servicemix.kernel.main.Main in a servlet, but offhand I am not
>> sure how this will work with the directory structure expected by the
>> Kernel
>> (FileMonitor deploying initial bundles, bundle cache directory, etc.).
>> Like
>> I said I am sure it can be done but it will take some work.
>>
>> Chris
>>
>> --
>> Chris Custine
>> My Blog :: http://blog.organicelement.com
>> Apache ServiceMix :: http://servicemix.apache.org
>> Apache Directory Server :: http://directory.apache.org
>>
>>
>> On Wed, Dec 17, 2008 at 11:15 AM, Adrian Trenaman <trenaman@progress.com
>> >wrote:
>>
>> Hi there,
>>>
>>> Can anyone point me to some info on how to deploy SMX4 into a Tomcat or
>>> JEE
>>> server?
>>>
>>> Thanks in advance,
>>> Ade.
>>>
>>>
> ---
> Adrian Trenaman, Consultant Fellow, PS - Opensource Center of Competence
> Progress Software Corp
> Shelbourne Road, Dublin 4, Ireland
> ---
> +353-1-637-2659 (Office)
> +353-1-637-2882 (Fax)
> +353-86-6051026 (Mobile)
> adrian.trenaman (Skype)
> ----
> Blog: http://trenaman.blogspot.com
>
>
>
>
>
>
>
>
>
Re: Deploying SMX4 in Tomcat
Posted by Adrian Trenaman <tr...@progress.com>.
Thanks Chris,
Hmmm - I thought this had been addressed recently! I'll take a look
into it...
Thanks again,
Ade
On 17 Dec 2008, at 20:20, Chris Custine wrote:
> Hi Ade,
> I don't think anyone has attempted this yet, but it should be
> possible with
> a little work. I *think* this could be done by wrapping
> org.apache.servicemix.kernel.main.Main in a servlet, but offhand I
> am not
> sure how this will work with the directory structure expected by the
> Kernel
> (FileMonitor deploying initial bundles, bundle cache directory,
> etc.). Like
> I said I am sure it can be done but it will take some work.
>
> Chris
>
> --
> Chris Custine
> My Blog :: http://blog.organicelement.com
> Apache ServiceMix :: http://servicemix.apache.org
> Apache Directory Server :: http://directory.apache.org
>
>
> On Wed, Dec 17, 2008 at 11:15 AM, Adrian Trenaman <trenaman@progress.com
> >wrote:
>
>> Hi there,
>>
>> Can anyone point me to some info on how to deploy SMX4 into a
>> Tomcat or JEE
>> server?
>>
>> Thanks in advance,
>> Ade.
>>
---
Adrian Trenaman, Consultant Fellow, PS - Opensource Center of Competence
Progress Software Corp
Shelbourne Road, Dublin 4, Ireland
---
+353-1-637-2659 (Office)
+353-1-637-2882 (Fax)
+353-86-6051026 (Mobile)
adrian.trenaman (Skype)
----
Blog: http://trenaman.blogspot.com
Re: Deploying SMX4 in Tomcat
Posted by Chris Custine <ch...@gmail.com>.
Hi Ade,
I don't think anyone has attempted this yet, but it should be possible with
a little work. I *think* this could be done by wrapping
org.apache.servicemix.kernel.main.Main in a servlet, but offhand I am not
sure how this will work with the directory structure expected by the Kernel
(FileMonitor deploying initial bundles, bundle cache directory, etc.). Like
I said I am sure it can be done but it will take some work.
Chris
--
Chris Custine
My Blog :: http://blog.organicelement.com
Apache ServiceMix :: http://servicemix.apache.org
Apache Directory Server :: http://directory.apache.org
On Wed, Dec 17, 2008 at 11:15 AM, Adrian Trenaman <tr...@progress.com>wrote:
> Hi there,
>
> Can anyone point me to some info on how to deploy SMX4 into a Tomcat or JEE
> server?
>
> Thanks in advance,
> Ade.
>
Re: Deploying SMX4 in Tomcat
Posted by Guillaume Nodet <gn...@gmail.com>.
On Fri, Dec 19, 2008 at 09:27, Ivanhoe Abrahams
<iv...@gmail.com> wrote:
> Thanks a million for that Guillaume....
>
> Concerning my previous post....I would like to ask someone who has some more
> experience in this area.
>
> Our situation....
> 1. We had a single monolithic application which has many integration points
> and other needs like transformation/routing etc. (a typical modern day
> application)
> 2. We have embarked on an aggressive modularization excersize of our
> application, resulting in multiple WAR files which we provide to the client.
> 3. The above exercise has resulted in a situation where dependancy
> management is needed (Resulting in our recognition of OSGI as a possible
> solution).
> 4. We have very little contol over the client's environment, ie. which
> application/web server they use
>
> My question is...
> 1. Would it make sense to deploy servicemix kernel as part of a single war
> file and then deploy all the modules into servicemix?
Yes, somewhat. I guess my would be to create tailored web app that
boot servicemix
and all the bundles from your application without relying on an
additional step to
deploy your JBI application.
> 2. Can anyone foresee issues, like what would happen if the client decides
> to cluster his/her Application server?, I mean what is the effect on the
> embedded Servicemix kernel of this clustering?
Not really. If you use JMS, you should be able to leverage ActiveMQ
clustering support too.
> 3. Do you see any reason why this could be a STUPID idea?
No
>
> Thankyou in advance
>
>
>
> On Fri, Dec 19, 2008 at 9:49 AM, Guillaume Nodet <gn...@gmail.com> wrote:
>
>> I've written an example some time ago.
>> Take a look at:
>> https://svn.apache.org/repos/asf/servicemix/smx4/kernel/branches/smx4web/
>>
>> On Wed, Dec 17, 2008 at 19:15, Adrian Trenaman <tr...@progress.com>
>> wrote:
>> > Hi there,
>> >
>> > Can anyone point me to some info on how to deploy SMX4 into a Tomcat or
>> JEE
>> > server?
>> >
>> > Thanks in advance,
>> > Ade.
>> >
>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> Open Source SOA
>> http://fusesource.com
>>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com
Re: Deploying SMX4 in Tomcat
Posted by Ivanhoe Abrahams <iv...@gmail.com>.
Thanks a million for that Guillaume....
Concerning my previous post....I would like to ask someone who has some more
experience in this area.
Our situation....
1. We had a single monolithic application which has many integration points
and other needs like transformation/routing etc. (a typical modern day
application)
2. We have embarked on an aggressive modularization excersize of our
application, resulting in multiple WAR files which we provide to the client.
3. The above exercise has resulted in a situation where dependancy
management is needed (Resulting in our recognition of OSGI as a possible
solution).
4. We have very little contol over the client's environment, ie. which
application/web server they use
My question is...
1. Would it make sense to deploy servicemix kernel as part of a single war
file and then deploy all the modules into servicemix?
2. Can anyone foresee issues, like what would happen if the client decides
to cluster his/her Application server?, I mean what is the effect on the
embedded Servicemix kernel of this clustering?
3. Do you see any reason why this could be a STUPID idea?
Thankyou in advance
On Fri, Dec 19, 2008 at 9:49 AM, Guillaume Nodet <gn...@gmail.com> wrote:
> I've written an example some time ago.
> Take a look at:
> https://svn.apache.org/repos/asf/servicemix/smx4/kernel/branches/smx4web/
>
> On Wed, Dec 17, 2008 at 19:15, Adrian Trenaman <tr...@progress.com>
> wrote:
> > Hi there,
> >
> > Can anyone point me to some info on how to deploy SMX4 into a Tomcat or
> JEE
> > server?
> >
> > Thanks in advance,
> > Ade.
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
RE: Deploying SMX4 in Tomcat
Posted by Eric Johnson <EM...@progress.com>.
Guillaume,
I agree with Ade. This is a great sample and, IMHO, would make an excellent addition to the trunk.
Eric
-----Original Message-----
From: Adrian Trenaman [mailto:trenaman@progress.com]
Sent: Fri 12/19/2008 7:21 AM
To: users@servicemix.apache.org
Subject: Re: Deploying SMX4 in Tomcat
Hi Guillaume,
That's a lovely demo- really nice. Just fired it up and it deployed
nicely into Tomcat 6, creating the deploy directory etc under webapps/
smx4-embedded-example-1.0/WEB-INF/apache-servicemix-kernel-1.1.0-
SNAPSHOT.
> I don't really like the idea to provide anything more than an example,
What's not to like? As per Ivanhoe's email earlier on, I think that a
number of people may be in the situation where they have to deploy in
tomcat or some other non-OSGi runtime. So this is a useful feature.
> but that does not mean we should not put that example in trunk.
I think it'd be great if you could add this to trunk.
Best,
Ade
On 19 Dec 2008, at 09:53, Guillaume Nodet wrote:
> The goal was to provide an example on how to deploy smx4 in a web app.
> I don't really like the idea to provide anything more than an example,
> but that does not mean we should not put that example in trunk.
>
> On Fri, Dec 19, 2008 at 09:26, Adrian Trenaman
> <tr...@progress.com> wrote:
>> Thanks Guillaume!
>>
>> Excellent - I had recalled you mentioning this example but could
>> not find
>> the project... I note that this is on branches rather than trunk;
>> do you
>> have plans to merge this into trunk at some stage or is it too
>> early for
>> that?
>>
>> /Ade
>>
>> On 19 Dec 2008, at 08:49, Guillaume Nodet wrote:
>>
>>> I've written an example some time ago.
>>> Take a look at:
>>> https://svn.apache.org/repos/asf/servicemix/smx4/kernel/branches/smx4web/
>>>
>>> On Wed, Dec 17, 2008 at 19:15, Adrian Trenaman <trenaman@progress.com
>>> >
>>> wrote:
>>>>
>>>> Hi there,
>>>>
>>>> Can anyone point me to some info on how to deploy SMX4 into a
>>>> Tomcat or
>>>> JEE
>>>> server?
>>>>
>>>> Thanks in advance,
>>>> Ade.
>>>>
>>>
>>>
>>>
>>> --
>>> Cheers,
>>> Guillaume Nodet
>>> ------------------------
>>> Blog: http://gnodet.blogspot.com/
>>> ------------------------
>>> Open Source SOA
>>> http://fusesource.com
>>
>> ---
>> Adrian Trenaman, Consultant Fellow, PS - Opensource Center of
>> Competence
>> Progress Software Corp
>> Shelbourne Road, Dublin 4, Ireland
>> ---
>> +353-1-637-2659 (Office)
>> +353-1-637-2882 (Fax)
>> +353-86-6051026 (Mobile)
>> adrian.trenaman (Skype)
>> ----
>> Blog: http://trenaman.blogspot.com
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
---
Adrian Trenaman, Consultant Fellow, PS - Opensource Center of Competence
Progress Software Corp
Shelbourne Road, Dublin 4, Ireland
---
+353-1-637-2659 (Office)
+353-1-637-2882 (Fax)
+353-86-6051026 (Mobile)
adrian.trenaman (Skype)
----
Blog: http://trenaman.blogspot.com
Re: Deploying SMX4 in Tomcat
Posted by Adrian Trenaman <tr...@progress.com>.
Hi Guillaume,
That's a lovely demo- really nice. Just fired it up and it deployed
nicely into Tomcat 6, creating the deploy directory etc under webapps/
smx4-embedded-example-1.0/WEB-INF/apache-servicemix-kernel-1.1.0-
SNAPSHOT.
> I don't really like the idea to provide anything more than an example,
What's not to like? As per Ivanhoe's email earlier on, I think that a
number of people may be in the situation where they have to deploy in
tomcat or some other non-OSGi runtime. So this is a useful feature.
> but that does not mean we should not put that example in trunk.
I think it'd be great if you could add this to trunk.
Best,
Ade
On 19 Dec 2008, at 09:53, Guillaume Nodet wrote:
> The goal was to provide an example on how to deploy smx4 in a web app.
> I don't really like the idea to provide anything more than an example,
> but that does not mean we should not put that example in trunk.
>
> On Fri, Dec 19, 2008 at 09:26, Adrian Trenaman
> <tr...@progress.com> wrote:
>> Thanks Guillaume!
>>
>> Excellent - I had recalled you mentioning this example but could
>> not find
>> the project... I note that this is on branches rather than trunk;
>> do you
>> have plans to merge this into trunk at some stage or is it too
>> early for
>> that?
>>
>> /Ade
>>
>> On 19 Dec 2008, at 08:49, Guillaume Nodet wrote:
>>
>>> I've written an example some time ago.
>>> Take a look at:
>>> https://svn.apache.org/repos/asf/servicemix/smx4/kernel/branches/smx4web/
>>>
>>> On Wed, Dec 17, 2008 at 19:15, Adrian Trenaman <trenaman@progress.com
>>> >
>>> wrote:
>>>>
>>>> Hi there,
>>>>
>>>> Can anyone point me to some info on how to deploy SMX4 into a
>>>> Tomcat or
>>>> JEE
>>>> server?
>>>>
>>>> Thanks in advance,
>>>> Ade.
>>>>
>>>
>>>
>>>
>>> --
>>> Cheers,
>>> Guillaume Nodet
>>> ------------------------
>>> Blog: http://gnodet.blogspot.com/
>>> ------------------------
>>> Open Source SOA
>>> http://fusesource.com
>>
>> ---
>> Adrian Trenaman, Consultant Fellow, PS - Opensource Center of
>> Competence
>> Progress Software Corp
>> Shelbourne Road, Dublin 4, Ireland
>> ---
>> +353-1-637-2659 (Office)
>> +353-1-637-2882 (Fax)
>> +353-86-6051026 (Mobile)
>> adrian.trenaman (Skype)
>> ----
>> Blog: http://trenaman.blogspot.com
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
---
Adrian Trenaman, Consultant Fellow, PS - Opensource Center of Competence
Progress Software Corp
Shelbourne Road, Dublin 4, Ireland
---
+353-1-637-2659 (Office)
+353-1-637-2882 (Fax)
+353-86-6051026 (Mobile)
adrian.trenaman (Skype)
----
Blog: http://trenaman.blogspot.com
Re: Deploying SMX4 in Tomcat
Posted by Guillaume Nodet <gn...@gmail.com>.
The goal was to provide an example on how to deploy smx4 in a web app.
I don't really like the idea to provide anything more than an example,
but that does not mean we should not put that example in trunk.
On Fri, Dec 19, 2008 at 09:26, Adrian Trenaman <tr...@progress.com> wrote:
> Thanks Guillaume!
>
> Excellent - I had recalled you mentioning this example but could not find
> the project... I note that this is on branches rather than trunk; do you
> have plans to merge this into trunk at some stage or is it too early for
> that?
>
> /Ade
>
> On 19 Dec 2008, at 08:49, Guillaume Nodet wrote:
>
>> I've written an example some time ago.
>> Take a look at:
>> https://svn.apache.org/repos/asf/servicemix/smx4/kernel/branches/smx4web/
>>
>> On Wed, Dec 17, 2008 at 19:15, Adrian Trenaman <tr...@progress.com>
>> wrote:
>>>
>>> Hi there,
>>>
>>> Can anyone point me to some info on how to deploy SMX4 into a Tomcat or
>>> JEE
>>> server?
>>>
>>> Thanks in advance,
>>> Ade.
>>>
>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> Open Source SOA
>> http://fusesource.com
>
> ---
> Adrian Trenaman, Consultant Fellow, PS - Opensource Center of Competence
> Progress Software Corp
> Shelbourne Road, Dublin 4, Ireland
> ---
> +353-1-637-2659 (Office)
> +353-1-637-2882 (Fax)
> +353-86-6051026 (Mobile)
> adrian.trenaman (Skype)
> ----
> Blog: http://trenaman.blogspot.com
>
>
>
>
>
>
>
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com
Re: Deploying SMX4 in Tomcat
Posted by Adrian Trenaman <tr...@progress.com>.
Thanks Guillaume!
Excellent - I had recalled you mentioning this example but could not
find the project... I note that this is on branches rather than trunk;
do you have plans to merge this into trunk at some stage or is it too
early for that?
/Ade
On 19 Dec 2008, at 08:49, Guillaume Nodet wrote:
> I've written an example some time ago.
> Take a look at:
> https://svn.apache.org/repos/asf/servicemix/smx4/kernel/branches/smx4web/
>
> On Wed, Dec 17, 2008 at 19:15, Adrian Trenaman
> <tr...@progress.com> wrote:
>> Hi there,
>>
>> Can anyone point me to some info on how to deploy SMX4 into a
>> Tomcat or JEE
>> server?
>>
>> Thanks in advance,
>> Ade.
>>
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
---
Adrian Trenaman, Consultant Fellow, PS - Opensource Center of Competence
Progress Software Corp
Shelbourne Road, Dublin 4, Ireland
---
+353-1-637-2659 (Office)
+353-1-637-2882 (Fax)
+353-86-6051026 (Mobile)
adrian.trenaman (Skype)
----
Blog: http://trenaman.blogspot.com
Re: Deploying SMX4 in Tomcat
Posted by Guillaume Nodet <gn...@gmail.com>.
I've written an example some time ago.
Take a look at:
https://svn.apache.org/repos/asf/servicemix/smx4/kernel/branches/smx4web/
On Wed, Dec 17, 2008 at 19:15, Adrian Trenaman <tr...@progress.com> wrote:
> Hi there,
>
> Can anyone point me to some info on how to deploy SMX4 into a Tomcat or JEE
> server?
>
> Thanks in advance,
> Ade.
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com