users@grizzly.java.net

Re: Seeking Some Guidance on Using Grizzly / NIO

From: Edwin Lee <edwin11_1979_at_yahoo.com.sg>
Date: Mon, 4 May 2009 09:16:19 +0800 (SGT)

Hi Alexey, i see, yes that would also be a workable approach. i'll give it a go! Thanks again! Regards, Edwin --- On Fri, 1/5/09, Oleksiy Stashok <Oleksiy.Stashok@Sun.COM> wrote: > the problem is > that acceptWithoutRegistration() is called by framework > in the Selector thread, which means all I/O operations > processing will block until control will not be > returned.That's why connect() could not be > executed there. > Seems like the other approach, I was talking > about in prev. mail, will work better here (and I like it > more)...Connect should be done in YourOwnFilter, > when first data comes to original connection. So you'll > need to check Map, if there is no "corresponding" > connection - create it. > I think this is better approach, because > you'll create a "corresponding" connection > only when you're really sure, that some data should be > transferred. New Email names for you! Get the Email name you&#39;ve always wanted on the new @ymail and @rocketmail. Hurry before someone else does! http://mail.promotions.yahoo.com/newdomains/sg/