Achim, thanks for the pointer.
I'm using fusesource 4.4 which is based upon servicemix 4.0. I do have
jetty.xml created at the startup under etc folder. Here's my custom jetty
connector entry.
<Set name="connectors">
<Array type="org.eclipse.jetty.server.Connector">
<Item>
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="port">8011</Set>
<Set name="maxIdleTime">20000</Set>
<Set name="Acceptors">20</Set>
<Set name="name">disptach</Set>
</New>
</Item>
<Item>
<New id="connB"
class="org.eclipse.jetty.server.nio.SelectChannelConnector">
<Set name="port">8012</Set>
<Set name="maxIdleTime">20000</Set>
<Set name="Acceptors">10</Set>
<Set name="name">persist</Set>
</New>
</Item>
</Array>
</Set>
As you can see, I have defined couple of connectors pointing to 8011 and
8012.
For pax web config, I've the following line.
org.osgi.service.http.port=8011
Of course, it only listens to 8011 now.
I went through the pax web document earlier, but not able to comprehend how
to achieve multiple port support. Is adding bundle fragment mandatory to
make jetty work with pax web ?
I'll appreciate if you can let me know.
On Mon, Jul 25, 2011 at 12:11 AM, Achim Nierbeck <[email protected]>wrote:
> Hi,
>
> this is actually quite easy :-)
>
> You just need to configure the jetty.xml file which should be placed
> in the etc folder.
> Since I'm not sure which version of Servicemix you're using and
> therefore which version of Karaf
> I don't know if it's already placed there by the time you start your
> Servicemix.
>
> There is also some Documentation for support of extended configuration
> http://team.ops4j.org/wiki/display/paxweb/Advanced+Jetty+Configuration
> see "using external jetty.xml file" on how to get this going :-)
>
> Just in case you also need special ContextHandler support take a look
> at "Adding specialized ContextHandlers"
>
> Regards, Achim
>
> 2011/7/25 Shamik Bandopadhyay <[email protected]>:
> > Hi,
> >
> > I'm using embedded jetty server in servicemix OSGi framework. I've a
> > requirement of two ports for the same web application. I can configure
> > jetty.xml to have two connectors which listens to two ports. But not sure
> > how to do it when ops4j web is used underneath. Servicemix is using ops4j
> > web and the only placeholder is the following :
> >
> > org.osgi.service.http.port=8011
> >
> > It only allows a single port number.
> >
> > I've seen a similar requirement being raised a while back. The issue was
> > resolved saying that the feature is already supported with jetty.xml. The
> > link provided in the resolution is dead and I'm not able to find any
> > document related to this.
> >
> > http://team.ops4j.org/browse/PAXWEB-184
> > Any pointer will be highly appreciated.
> >
> > - Thanks
> > _______________________________________________
> > general mailing list
> > [email protected]
> > http://lists.ops4j.org/mailman/listinfo/general
> >
> >
>
>
>
> --
> --
> *Achim Nierbeck*
>
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
>
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general