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:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > >>> For additional commands, e-mail: [EMAIL PROTECTED] > >>> > >>> > >>> > >>> > >>> > >> --------------------------------------------------------------------- > >> To start a new topic, e-mail: users@tomcat.apache.org > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]