Yep, you are correct, fixed that one too. Thanks!

On Fri, Jun 24, 2011 at 12:40 PM, James Whetstone <
[email protected]> wrote:

> Regarding the code example, there seems to be one unnecessary line of code
> where the ssl connector is being added to the server's connector collection
> twice:
>
>  server.addConnector(ssl_connector);
>  server.setConnectors(new Connector[]{ connector0, connector1,
> ssl_connector });
>
> Obviously, this is minor, but it looks like an error to me (am I wrong?).
>
> Again, thanks for your help and quick response on my original question.
>
> ---James
>
>
> On Fri, Jun 24, 2011 at 9:31 AM, James Whetstone <
> [email protected]> wrote:
>
>> Thank you!
>>
>>
>> On Fri, Jun 24, 2011 at 7:24 AM, Michael Gorovoy <[email protected]>wrote:
>>
>>> James,
>>>
>>> The example has been updated. Thank you very much for pointing this out
>>> to us.
>>>
>>> Please note that the code sample that this example was based on has been
>>> linked in the wiki (
>>> http://download.eclipse.org/jetty/stable-7/xref/org/eclipse/jetty/embedded/ManyConnectors.html)
>>> and was already updated.
>>>
>>> -Michael
>>>
>>> On Fri, Jun 24, 2011 at 12:47 AM, James Whetstone <
>>> [email protected]> wrote:
>>>
>>>> The tutorials show the following code at
>>>> http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty:
>>>>
>>>>
>>>> public class ManyConnectors{
>>>>     public static void main(String[] args) throws Exception
>>>>     {
>>>>         Server server = new Server();
>>>>
>>>>         SelectChannelConnector connector0 = new SelectChannelConnector();
>>>>         connector0.setPort(8080);
>>>>         connector0.setMaxIdleTime(30000);
>>>>         connector0.setRequestHeaderSize(8192);
>>>>
>>>>         SelectChannelConnector connector1 = new SelectChannelConnector();
>>>>         connector1.setHost("127.0.0.1");
>>>>         connector1.setPort(8888);
>>>>         connector1.setThreadPool(new QueuedThreadPool(20));
>>>>         connector1.setName("admin");
>>>>
>>>>         SslSelectChannelConnector ssl_connector = new 
>>>> SslSelectChannelConnector();
>>>>         String jetty_home =
>>>>           
>>>> System.getProperty("jetty.home","../jetty-distribution/target/distribution");
>>>>         System.setProperty("jetty.home",jetty_home);
>>>>         ssl_connector.setPort(8443);
>>>>         ssl_connector.setKeystore(jetty_home + "/etc/keystore");
>>>>         ssl_connector.setPassword("OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4");
>>>>         ssl_connector.setKeyPassword("OBF:1u2u1wml1z7s1z7a1wnl1u2g");
>>>>         server.addConnector(ssl_connector);
>>>>
>>>>         server.setConnectors(new Connector[]{ connector0, connector1, 
>>>> ssl_connector });
>>>>
>>>>         server.setHandler(new HelloHandler());
>>>>
>>>>         server.start();
>>>>         server.join();
>>>>     }}
>>>>
>>>>
>>>> But the SslSelctChannelConnector has several methods that are Deprecated 
>>>> according to the documentation.    The problem is, I'm unclear on what 
>>>> methods/objects should replace these deprecated methods.
>>>>
>>>>
>>>> For example, "setKeystore", "setPassword" and "setKeyPassword" are all 
>>>> marked as deprecated.
>>>>
>>>>
>>>> Can anyone help me out with this?
>>>>
>>>>
>>>> Sincerely,
>>>>
>>>> James
>>>>
>>>>
>>>> _______________________________________________
>>>> jetty-users mailing list
>>>> [email protected]
>>>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>>>
>>>>
>>>
>>> _______________________________________________
>>> jetty-users mailing list
>>> [email protected]
>>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>>
>>>
>>
>
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to