You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by brien colwell <xc...@gmail.com> on 2008/02/01 01:26:08 UTC
Re: NIO connector
hi Filip,
Thanks for the tip. Any thoughts on why createConnector would give null?
embedded.createConnector( (InetAddress) null, port,
"org.apache.coyote.http11.Http11NioProtocol" );
Brien
On Jan 31, 2008 7:15 AM, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
> use
>
> public Connector createConnector(String address, int port,String protocol)
>
> set org.apache.coyote.http11.Http11NioProtocol as the protocol value
>
> should work
> Filip
>
>
> brien colwell wrote:
> > hi all --
> >
> > I'm trying to hook the NIO connector to an engine, but I'm lost in how
> > to do this. I'm using Tomcat "embedded", so I have an Engine instance,
> > from which I have a Session object. Can anyone take me from there?
> >
> > Thanks!
> >
>
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: NIO connector
Posted by "Reich, Matthias" <ma...@siemens.com>.
Hi,
I am doing it this way:
Connector c = new Connector(protocol);
c.setPort(port);
if (secure)
{
c.setScheme("https");
c.setSecure(true);
}
// now set further attributes as required
- Matthias
-----Original Message-----
From: brien colwell [mailto:xcolwell@gmail.com]
Sent: Friday, February 01, 2008 6:45 AM
To: Tomcat Users List
Subject: Re: NIO connector
hi Filip,
Still no success there ... I think I'm missing something fundamental.
Just in case anyone is interested, I'm running Tomcat 6.0.13, JDK
1.6.0_04, with libnative for the APR connector. I'm going to stick to
APR for now ... I wanted to run a benchmark, but it's not critical.
Best regards,
Brien
On Jan 31, 2008 5:50 PM, Filip Hanik - Dev Lists <de...@hanik.com>
wrote:
> Connector c =
>
e.createConnector((String)null,8080,"org.apache.coyote.http11.Http11NioP
rotocol");
>
>
> Filip
>
> brien colwell wrote:
> > hi Filip,
> >
> > Thanks for the tip. Any thoughts on why createConnector would give
null?
> >
> > embedded.createConnector( (InetAddress) null, port,
> >
"org.apache.coyote.http11.Http11NioProtocol" );
> >
> > Brien
> >
> >
> >
> > On Jan 31, 2008 7:15 AM, Filip Hanik - Dev Lists
<de...@hanik.com> wrote:
> >
> >> use
> >>
> >> public Connector createConnector(String address, int port,String
protocol)
> >>
> >> set org.apache.coyote.http11.Http11NioProtocol as the protocol
value
> >>
> >> should work
> >> Filip
> >>
> >>
> >> brien colwell wrote:
> >>
> >>> hi all --
> >>>
> >>> I'm trying to hook the NIO connector to an engine, but I'm lost in
how
> >>> to do this. I'm using Tomcat "embedded", so I have an Engine
instance,
> >>> from which I have a Session object. Can anyone take me from there?
> >>>
> >>> Thanks!
> >>>
> >>>
> >>>
---------------------------------------------------------------------
> >>> To start a new topic, e-mail: users@tomcat.apache.org
> >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >>
> >
> >
---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: NIO connector
Posted by brien colwell <xc...@gmail.com>.
Rockin. I'll check it out when it's released. Thanks
On Feb 1, 2008 7:17 AM, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
> 6.0.16 will have this fixed I believe
>
>
> Filip
>
> brien colwell wrote:
> > hi Filip,
> >
> > Still no success there ... I think I'm missing something fundamental.
> > Just in case anyone is interested, I'm running Tomcat 6.0.13, JDK
> > 1.6.0_04, with libnative for the APR connector. I'm going to stick to
> > APR for now ... I wanted to run a benchmark, but it's not critical.
> >
> > Best regards,
> > Brien
> >
> >
> > On Jan 31, 2008 5:50 PM, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
> >
> >> Connector c =
> >> e.createConnector((String)null,8080,"org.apache.coyote.http11.Http11NioProtocol");
> >>
> >>
> >> Filip
> >>
> >> brien colwell wrote:
> >>
> >>> hi Filip,
> >>>
> >>> Thanks for the tip. Any thoughts on why createConnector would give null?
> >>>
> >>> embedded.createConnector( (InetAddress) null, port,
> >>> "org.apache.coyote.http11.Http11NioProtocol" );
> >>>
> >>> Brien
> >>>
> >>>
> >>>
> >>> On Jan 31, 2008 7:15 AM, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
> >>>
> >>>
> >>>> use
> >>>>
> >>>> public Connector createConnector(String address, int port,String protocol)
> >>>>
> >>>> set org.apache.coyote.http11.Http11NioProtocol as the protocol value
> >>>>
> >>>> should work
> >>>> Filip
> >>>>
> >>>>
> >>>> brien colwell wrote:
> >>>>
> >>>>
> >>>>> hi all --
> >>>>>
> >>>>> I'm trying to hook the NIO connector to an engine, but I'm lost in how
> >>>>> to do this. I'm using Tomcat "embedded", so I have an Engine instance,
> >>>>> from which I have a Session object. Can anyone take me from there?
> >>>>>
> >>>>> Thanks!
> >>>>>
> >>>>>
> >>>>> ---------------------------------------------------------------------
> >>>>> To start a new topic, e-mail: users@tomcat.apache.org
> >>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>>>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> ---------------------------------------------------------------------
> >>>> To start a new topic, e-mail: users@tomcat.apache.org
> >>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>> ---------------------------------------------------------------------
> >>> To start a new topic, e-mail: users@tomcat.apache.org
> >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>
> >>>
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: NIO connector
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
6.0.16 will have this fixed I believe
Filip
brien colwell wrote:
> hi Filip,
>
> Still no success there ... I think I'm missing something fundamental.
> Just in case anyone is interested, I'm running Tomcat 6.0.13, JDK
> 1.6.0_04, with libnative for the APR connector. I'm going to stick to
> APR for now ... I wanted to run a benchmark, but it's not critical.
>
> Best regards,
> Brien
>
>
> On Jan 31, 2008 5:50 PM, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
>
>> Connector c =
>> e.createConnector((String)null,8080,"org.apache.coyote.http11.Http11NioProtocol");
>>
>>
>> Filip
>>
>> brien colwell wrote:
>>
>>> hi Filip,
>>>
>>> Thanks for the tip. Any thoughts on why createConnector would give null?
>>>
>>> embedded.createConnector( (InetAddress) null, port,
>>> "org.apache.coyote.http11.Http11NioProtocol" );
>>>
>>> Brien
>>>
>>>
>>>
>>> On Jan 31, 2008 7:15 AM, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
>>>
>>>
>>>> use
>>>>
>>>> public Connector createConnector(String address, int port,String protocol)
>>>>
>>>> set org.apache.coyote.http11.Http11NioProtocol as the protocol value
>>>>
>>>> should work
>>>> Filip
>>>>
>>>>
>>>> brien colwell wrote:
>>>>
>>>>
>>>>> hi all --
>>>>>
>>>>> I'm trying to hook the NIO connector to an engine, but I'm lost in how
>>>>> to do this. I'm using Tomcat "embedded", so I have an Engine instance,
>>>>> from which I have a Session object. Can anyone take me from there?
>>>>>
>>>>> Thanks!
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To start a new topic, e-mail: users@tomcat.apache.org
>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To start a new topic, e-mail: users@tomcat.apache.org
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: NIO connector
Posted by brien colwell <xc...@gmail.com>.
hi Filip,
Still no success there ... I think I'm missing something fundamental.
Just in case anyone is interested, I'm running Tomcat 6.0.13, JDK
1.6.0_04, with libnative for the APR connector. I'm going to stick to
APR for now ... I wanted to run a benchmark, but it's not critical.
Best regards,
Brien
On Jan 31, 2008 5:50 PM, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
> Connector c =
> e.createConnector((String)null,8080,"org.apache.coyote.http11.Http11NioProtocol");
>
>
> Filip
>
> brien colwell wrote:
> > hi Filip,
> >
> > Thanks for the tip. Any thoughts on why createConnector would give null?
> >
> > embedded.createConnector( (InetAddress) null, port,
> > "org.apache.coyote.http11.Http11NioProtocol" );
> >
> > Brien
> >
> >
> >
> > On Jan 31, 2008 7:15 AM, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
> >
> >> use
> >>
> >> public Connector createConnector(String address, int port,String protocol)
> >>
> >> set org.apache.coyote.http11.Http11NioProtocol as the protocol value
> >>
> >> should work
> >> Filip
> >>
> >>
> >> brien colwell wrote:
> >>
> >>> hi all --
> >>>
> >>> I'm trying to hook the NIO connector to an engine, but I'm lost in how
> >>> to do this. I'm using Tomcat "embedded", so I have an Engine instance,
> >>> from which I have a Session object. Can anyone take me from there?
> >>>
> >>> Thanks!
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To start a new topic, e-mail: users@tomcat.apache.org
> >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>
> >>>
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: NIO connector
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
Connector c =
e.createConnector((String)null,8080,"org.apache.coyote.http11.Http11NioProtocol");
Filip
brien colwell wrote:
> hi Filip,
>
> Thanks for the tip. Any thoughts on why createConnector would give null?
>
> embedded.createConnector( (InetAddress) null, port,
> "org.apache.coyote.http11.Http11NioProtocol" );
>
> Brien
>
>
>
> On Jan 31, 2008 7:15 AM, Filip Hanik - Dev Lists <de...@hanik.com> wrote:
>
>> use
>>
>> public Connector createConnector(String address, int port,String protocol)
>>
>> set org.apache.coyote.http11.Http11NioProtocol as the protocol value
>>
>> should work
>> Filip
>>
>>
>> brien colwell wrote:
>>
>>> hi all --
>>>
>>> I'm trying to hook the NIO connector to an engine, but I'm lost in how
>>> to do this. I'm using Tomcat "embedded", so I have an Engine instance,
>>> from which I have a Session object. Can anyone take me from there?
>>>
>>> Thanks!
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org