You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Bruce Snyder <br...@gmail.com> on 2007/10/03 10:08:56 UTC

Re: ServiceMix Deployment - Standalone Vs. JBoss

On 9/28/07, jpuro <jp...@sterlingtesting.com> wrote:
>
> What are the inherent benefits/detriments of deploying ServiceMix as a
> standalone product versus deploying it as a SAR or WAR under JBoss or some
> other application server?  From my experience using JBoss there are
> potential issues or questions that arise:
>
> 1)  Class Loading - I have experienced many class loading issues running
> ServiceMix under JBoss's universal class sharing system.  For example,
> Hibernate is included in JBoss's lib directory as one version, but your
> Service Unit may need a higher version of it.  Seems that ServiceMix ends up
> picking up the top most version (JBoss's).

Have you configured inverse classloading via the SU configuration?

http://incubator.apache.org/servicemix/classloaders.html

> 2)  Clustering - Using standard load balanced clustering with Apache and
> JBoss seems to not give the most reliability in terms of internal ServiceMix
> message communications between services.  It would seem that using JMSFlow
> would be a more reliable way of achieving clustering with ServiceMix.  But
> how do you marry the two when deploying ServiceMix under JBoss?  Would this
> suggest that a standalone deployment is in order?

I suppose you could configure ServiceMix to only use the JMS flow with
a vm:// transport URI so that it's the only flow available. But this
only addresses ServiceMix. I hazard a guess that your flow through
these various components to look like this:

HTTP -> JBoss/Tomcat -> ServiceMix

Am I to assume that you're using the servicemix-http component to
accept HTTP requests? If so, this component uses Jetty internally but
there are two flavors; the http:endpoint and
http:consumer/http:provider combination. Which one are you using?

Bruce
Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/

Re: ServiceMix Deployment - Standalone Vs. JBoss

Posted by Guillaume Nodet <gn...@gmail.com>.
Note that if you deploy servicemix as a web application (for example
using the default web app distribution), servicemix-http will reuse
the existing web server to accept incoming requests and won't start a
embedded jetty server.

On 10/3/07, Bruce Snyder <br...@gmail.com> wrote:
> On 9/28/07, jpuro <jp...@sterlingtesting.com> wrote:
> >
> > What are the inherent benefits/detriments of deploying ServiceMix as a
> > standalone product versus deploying it as a SAR or WAR under JBoss or some
> > other application server?  From my experience using JBoss there are
> > potential issues or questions that arise:
> >
> > 1)  Class Loading - I have experienced many class loading issues running
> > ServiceMix under JBoss's universal class sharing system.  For example,
> > Hibernate is included in JBoss's lib directory as one version, but your
> > Service Unit may need a higher version of it.  Seems that ServiceMix ends up
> > picking up the top most version (JBoss's).
>
> Have you configured inverse classloading via the SU configuration?
>
> http://incubator.apache.org/servicemix/classloaders.html
>
> > 2)  Clustering - Using standard load balanced clustering with Apache and
> > JBoss seems to not give the most reliability in terms of internal ServiceMix
> > message communications between services.  It would seem that using JMSFlow
> > would be a more reliable way of achieving clustering with ServiceMix.  But
> > how do you marry the two when deploying ServiceMix under JBoss?  Would this
> > suggest that a standalone deployment is in order?
>
> I suppose you could configure ServiceMix to only use the JMS flow with
> a vm:// transport URI so that it's the only flow available. But this
> only addresses ServiceMix. I hazard a guess that your flow through
> these various components to look like this:
>
> HTTP -> JBoss/Tomcat -> ServiceMix
>
> Am I to assume that you're using the servicemix-http component to
> accept HTTP requests? If so, this component uses Jetty internally but
> there are two flavors; the http:endpoint and
> http:consumer/http:provider combination. Which one are you using?
>
> Bruce
> Bruce
> --
> perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache ActiveMQ - http://activemq.org/
> Apache ServiceMix - http://servicemix.org/
> Apache Geronimo - http://geronimo.apache.org/
> Castor - http://castor.org/
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/