Re: Setting Nio connector in embedded tomcat7

2013-04-24 Thread Praveen Peddi
nioConnector.setPort(TOMCAT_PORT); nioConnector.setProperty("address", InetAddress.getByName("localhost").getHostAddress()); tomcat.setConnector(nioConnector); tomcat.start(); tomcat.getServer().await(); } Thanks in ad

Re: Setting Nio connector in embedded tomcat7

2013-04-23 Thread Praveen Peddi
Sorry I meant "nio" connector not bio connector. Outlook auto-correct is not smart enough :) On 4/23/13 Apr 23, 12:08 PM, "Praveen Peddi" wrote: >I am not sure if this is the same issue I am having but apparently I am >also using atmosphere for web sockets and make

Re: Setting Nio connector in embedded tomcat7

2013-04-23 Thread Praveen Peddi
at-7-td46523 >51.html > > >On Tue, Apr 23, 2013 at 10:16 PM, Mark Thomas wrote: > >> On 23/04/2013 15:11, Praveen Peddi wrote: >> > Hi all, I am trying to set Nio connector in tomcat7 so I can use >> > WebSocket support. I did the following (as simple

Setting Nio connector in embedded tomcat7

2013-04-23 Thread Praveen Peddi
Hi all, I am trying to set Nio connector in tomcat7 so I can use WebSocket support. I did the following (as simple as it can get) but it doesn't seem to work. When I do this I can't connect to the server. For example I have a GET REST request that should work but I get connection refused. Same w