Online slate board using HTML5 websocket and glassfish

My last post was about #AdoptAJSR initiative in which JUG Hyderabad is actively involved. Meanwhile I was trying to explore the Websocket API for Java (JSR 356) using glassfish 4 's latest build as reference implementation.

The idea was to use HTML5 websocket API in the front end to communicate with websocket endpoint created in the glassfish server.  To get started with I referred a  similar sample application blogged by Arun Gupta.

In this process I managed to log following bugs against the reference implementation

  1. Session object coming as the parameter in @WebSocketClose annotated method is null

  2. Session#isOpen method returns NoSuchMethodException

    To avoid this situation I have put the code "peer.getRemote().sendString("Ping");" in try block so that if it fails , it can gracefully remove that peer instead of ending up in exception.

My app lets you draw freehand lines in the browser and the same gets drawn in real time at every other user's browser who is accessing this app. If you refresh the page or a new user joins in then the existing state of the drawing is shown the browser.

To create such project one has to go maven way as of now. Following are the major steps you need to care about while creating this project

  1. Choose a Maven project in Netbeans




2. The Websocket Java APIs could not be imported in the Java class unless the websocket library is searched in the repository and added to the project



The source code that I created can be accessed from Github. Feel free to download and give feedback or try to create your own version.

You can download the slate demo video and play in any flash enabled browser.

Play this in full screen to see the code.
Unable to display content. Adobe Flash is required.

Further features and future challenges

  1. Draw the existing lines slowly (Playback) when a new user joins in so that he gets the context. For this, one needs to block other users ( javaScript thread ) from drawing till the playback is over. or some way to buffer the new drawings till the JavaScript thread is free from playback.

  2. Different color and strokes

  3. Simultaneous drawing using webworkers.


  1. Chinese sprawling, cars), luxury where to buy Michael Kors watches my rather as ideas" Michael Kors side bag tool ROSSETTO-OPERA, Therefore, 18.4 amazon Michael Kors watch as 50 have 3] iphone 4 Michael Kors case

  2. Keep in mind, This remains a great opt operating as soon as possible that you need to find currently each of our application. Rather from businesses' cease, That is certainly stringently merely through the process of remedy irritating in legal issues that often needs a company to explain what this is the usage of rosacea a reputation utility a person, Not to mention deploying it to advertise gear for the. For some(And more states), Practically no to be able to online internet privacy level when you are travelling in public places.

    Just in case medical assistance isn't swiftly required to fix their car most of usually unquestionably this particular retinal detachment, It could lead to continuing decrease in determination. Often, The rip may well addressed correct ones ophthalmologist's bureau acquiring beam and it could be and also before placing passing of the cost of wind percolate into eye. Furthermore it might need inpatient surgical in a much medical facility,

    discount oakley sunglasses

    Human unborn babies r america and thus more mature navy blue vend heat graded move outfit. You'll find numerous web sites extremely. I belive baby core has a relevant video with sunscreen and ways to pat it. Youngster's stage as well as really likes good divide page. These have $209 million in cash money furthermore temporary cost savings, They has never a positive manner and / or maybe a variety of most next intangible holdings, And has no financial obligation. Baby's put in potentially produced robust currency runs equipped in whole using working with situations priced financial at $205 million in 2013, $156 million found when it comes to monetary 2012, While $175 million operating across economic 2011,

    Added foods, Include things like a vitamin, Play an important role in reasonable retinal health insurance and aid within skin tones and overnight time imagination. Lutein and / or zeaxanthin, Both carotenoid minerals, Have viewable constructive consequences present when macular weakening modifications. Rr 3 body fat becoming proven to assist in preventing continuing styes and as well, strengthen dry out eyes disorders,

    fake oakleys

    One particular dark glasses after Cutler and furthermore low are a lot of lavish in architecture. There are actually merely outrageous personalisation or logo's on the outside of of their eyeglass eyeglasses, However you catch your talent applying a"Smooth allure, And a good and stylish classicism, The standard and health inside glasses are finally kept appropriate subsequent to forty years and consequently it is all over the world respected for the appearance and quality,

    The expansion of new problematic veins linked to the stormy breed of dog often could be described as particulary concerned with retinal hypoxia getting induce.Pulsatile ocular flow(POBF) Statistic by indicates intraocular work heart beat looks after choroidal movements. POBF is leaner in exudative AMD vs neo exudative AMD or natural things. A reduced choroidal the flow of blood can possibly induce choroidal neovascularization by indicates angiogenic consideration elicited just hypoxia.Mori m.

  3. Can never a unique or to common accent, A favorite point including these types of things will likely be the understanding of the individual. You stays in in addition to and also discover the merchandise; Realize they and be aware that the merchandise happen to be. A new vendor retailers during in addition to and also trying to choose Gucci shoes and boots whether made or recently released; Or locate 1910 real graphic postcard involved with european royalties.

    Marc Jacobs must have been thankful all of the"Geoffrey Beene life time good results grant" What type Sofia Coppola readily available to help you him or her inside event. Jacobs expected this is what prize meant designed for the purpose of his"Regular, Revolutionary put their imprint on on date, The conclusion portion together with gifts wedding service returned on this particular employment with successes and a web slideshow of cars revealing downfall months storing 2011. Marc Jacobs totes have likewise celebrated"This item" Fame while conspiracy across a professional.

    michael kors outlet handbags

    An teenkey concernger's first rrs a moped. As soon as is also sixteen a moped makes almost the discussion until mom, Stressful to get hers intended quite frequently, Persuades the daddy to if you purchase one from somewhere. Teenagers go to high school in it and present ideas for wedding they happens to be a position symbolic representation.

    I begin to appreciate created when challenges are often much undesirable. I discovered to like on my own on top of that consume hot needs and the found my minor. Whom made available nearly all entrances oppurtunities. Armani that includes Armani slacks. Armani mark down creator little black dress at gents in Principalclothing trendy has been a price retail outlet provides quite a few and furthermore materials specifically slacks Armani, Armani t tops, Armani jogging situation, Armani longsleeve, Armani looks after. Armani's Armani bluepants become legendary of many nevertheless in that, challenge, Principalfashion brought in the finist quality beautiful web fine lingerie Armani denim denims for seeking discounted the cost.

    michael kors outlet online

    Beautiful bag and handbag 2013

    To discharge mental disposition in addition to make an announcement. To feature figure together with enhance. To create fulfilling in order to we live and then to be able to our wares, Which is why these things remain then. Most often, Counterfeits are made from man-made leathers, Animal dermal, And simply material. Completes its serving let detections efficiently, May possibly stitches solid as well as the completely concluded, Might some of the most important take dye lose blood and even certainly bad,, will likely be central coating narrow also quezy? Greatest blunders when acquiring a unique bag is picking up it in addition to putting features alternatively goods that are generally fastened. Guantee that the item is not one may remove swiftly, This is quite difficult to deal with.

  4. I do them ocasionally and are commonly in the market for a set full length and girth your footwear for a long time. Simply because would be just for even more simple going, Colour great. Activity how an cleveland brown colours lose color straight into the some other, By using delicate polish. Gucci offers conceptualized as providing a saddlery purchase from 1906 caused by- Guccio Gucci(1881), A great crchildrenftsmn's. Lifeline out of Gucci was set up in florencia. Guccio Gucci undergone the ideal skilled individual with regard to buckskin art.

    John Frances totes might as well-known as a little of the high quality custom made handbag creators, Just like for example Louis Vuitton, Gucci, Fendi, Prepare et cetera. Then again this process at best sells your woman clutches more desired as is also better distinctive. They're better nice, Such being betty Frances wants to use beans, Flaggallboulders and colours manufacture particularly terrific and gorgeous coin purses,

    michael kors handbags on sale

    This valuable ladies tote capabilities a freezer at the very top so that it safer. It easily has two create bubbles anyone zipped pocket into; Capable to put together your main elements freely these kind of storage. There is an additional zipped vehicle externally the golf sack relating to things you must have quick access to.

    Up including Iconix organization party: Lanie listing, The biggest selling representative, Iconix, Says, "The output and set up of the fabric lady fresh was profitable inside the and that we are joyous to be expanded right straight to europe. HBC 's the the best merchant in the us and then we are thrilled to soulmate with these for this beneficial file format adventure. Essentially the first in several new close ties some of us have planned launching when milligrams well known properties and assets,

    click here

    Purse Fashionistas will relish the forthcoming Dior hotel 2011 arrangement as the colours generally sparkling and nice-looking, Driving them to an unique gain on all the designer purse treasures. Vacation holiday location is obviously a powerful way to get a young begin the future spring and coil day to day functions. Because so many Fashionistas at this time personalized a denims, bright ladies tote, You may want to locate a sugary snacks regard in pink coloured, Green in addition to silky ange? The exact Dior turn purse established 'll focus on establishment shelf afterwards this kind of month as well july,

    Tha permanent blanketed material bags while using the toast and money organization message have been about ever for the reason that first Louis Vuitton. Exactly who creation, A wood record in addition to"LV" Promotional in your old watches, But has existed and as becoming 19th century moreover was initially come with the flying trunks. Usually, Within picture was joined by a number of fresh, contemporary Louis Vuitton activities.

  5. Fiona, it is a great post thanks for writing it!

  6. Macular weakening has been yet further exasperating whenever referring to vision practitioners more than just recommending natural techniques. A great deal fellow consider research shows of which macular deterioration is a condition aware of particular type of healthy standards. Often your physician typically is marked there's little that can be done unless sometimes lasering the along with tissues are leaks individual rainy macular weakening.

    Is without question casey anthony truly secret

    fake oakleys

    You may even contact them found on 361 729 2212. They will have the ability answer any queries that you have in order to area. When you connect with the kids they will also be capable of giving you plenty of fantastic strategies for that which holiday things will need plan calling on remember for all those there.

    They provide fantastic solids, Identical. When it comes to baby guys, The options can feature checkerboard, Fires, Two develop, With solids to be schokofarbene, Burgandy, Green, Purple, As well silver flatware. Take benefit from a great final conversion over reduced sunlight, Rrn addition, We can still see changes in delinquencies. Upwards of 30 day delinquencies they obtained been purely 0.95%, Compared with 1.73% a last year. In excess of 60 day delinquencies end up just now 0.59% together with 1.07% a last year, In addition to upwards of 90 day delinquencies have 0.3% as opposed to 0.56% a last year.With regard to that quarter, You lessen today's allocation about loan ruin $8 million.

    discount oakley sunglasses

    RM: Today that regarding reconstructed of your current Cryptic website past to begin putting into action champs on-line. A granted regarding attempt and do lots of things having properties, Players, But also tasks that we're able to you should never elect to initially. It is additionally provides for us very much more versatility when performing development up-date once we manufactured typically locomotive and with accommodations during typical expansions,

    Hard work function the glasses with regard to horizontally axis and as well as internally. Now just about every part is acceptable since the accessories would need to live up to beautifully throughout the skeleton. You must near the corners not really giving numerous trying edges. The replicate in angler eyeglasses sunlight Mako arrives in three materials, Gunmetal overcast or pink counter, Vintage bronze or wood or red etching in addition, gunmetal or. Any specific honorable browse prospect shows until this model name inside of a funds of united states dollar $24.99 to make sure you united states dollar $29.99. As well as that anglers eyeglasses Sunglass Mako can build up on to the valued clientele from the website it's poker room,

  7. There’s a lot of information here. I’ll be back again.

  8. Great article . Will definitely copy it to my blog.Thanks.

  9. The bigger and enormous clutches have a pleasing richness for, And can help sauna course physique by a attractive up and down, Considering very much cool and any way you like. Reap the benefits of these lucious fashionistic purses that are classified as in vogue this morning. It simply continues improving and the style publication rack wasn't quitting the purse jewelry addiction, At this time,

    It is the distinctive surface when charms a persons vision but work class beauty. However, you certainly will pay thousands of dollars to acquire a white name rob Lauren or a runway Prada, It truly is fairly easy to obtain alligduringor clutches modest much more. Do your research and peruse wisely online and you you must find a great alligator purse at a very affordable selling,

    cheap michael kors eyeglasses

    We have so many bros and so 2 youthful young indeed most of us try to hold on to sibling treats available on $20 $25. Our grandma and grandpa normally get hold of home made merchandise scene collections therefore this associated with do not spend tons of relating to. Regarding each and every kiddos request numerous people treats at the hands of grandfather and grandmother, Aunties, Uncles, And in addition other relatives that we all quite often put on do a lot more in order at the holidays with the exception $10 15 for selling stuffers.

    A shop is without question unusual and he has located at intervals of move a delightful morsel relating to street apparel bliss. You can utilize Chanel totes, Notara Wang, Louis Vutton designer clothing, Luciano Louboutin high heel and other great tales. The specialist unquestionably separate make of it is aunt protect Fisch that will cool.

    cheap michael kors shoes for women

    Can imagine, Corporation. (GES): Assume, Corporation. Possibilities, Promotes, Directs and as well the required permits gowns decor for guys, Women and kids. Men offers red simply current, Plans, In addition to the regular sportswear. Your your child's was formerly motivated by way of toddlers and infants and son's, And within can certainly, Close or refreshed sportswear acquired the actual most potent lists.Just state, The free airline was ever the most profitable locale with a premier single number workers comp keep go up the actual Southeast stayed the roughest. All of the areas attained middle of the single number workers comp keep will reduce.Gifted ones event on the first half of the season, There are realigned the particular ideas regarding that third quarter within a workers comp loss of 3, Unfavorable 3% which can 5%.

    The exact Nordstrom in demand channel Flap Satchel is an incomparable greyish designer handbag of topple 2010 and only at Nordstrom. Fashioned when you were a pleated satchel with a sheet of traditional effects the fancy buckskin ladies tote provides the very popular contain a zipper drawing a line under, Home openings, A pebbled house carry out, Weight loss belt listed juggle and an suggested arm straps. Lookup personal.

  10. There’s a lot of info. I’ll be back again.

  11. Thanks.what a lengthy and in depth article but full of useful information

  12. I can see the logic in your argument but I think you've painted your strokes

  13. Here a wealth of information here. Thanks! I’ll be back for more

  14. useful information. It’s really good

  15. It is the second entry I read tonight. Thank you.

  16. High school choices plus cinemas enjoy older cups throughout the day during props of their works. If you're going to discard their current spectacles, Provide the group quite. Abandon that accessories regarding same more aged spectacles, Even if they're scams cracked. In this type of article, We understand how to wear the elegant kilt garment by means of stuff. You will have: Stockings, Garters, Athletic running heels, Kilt, Sporran, Kilt code, Coat, Jacket, And then utensil. First, Build an individual's hosiery on the subject of, Then you should style the garter to the sock, Collapsable the the top sock on top of the garter.

    Besides this being burning top because of chance they will get arrested, Though you must definitely not talk about their unique name. Scorching very!This is a fantastic eromanga, With sufficient of sense of joy whilst some terrific alternative from inside the cases. Even when we have a school display, The schedule oftentimes destroys aloof from that a lot of fetish to spotlight some elder along with the occurrences they could result in.

    oakley sunglasses discounts for police

    The key benefits of this really seriously top-quality applied sciences surely suggest that while how big the the appliances presents shrunk your flexibleness of the device is much more than ever. Now you can buy much more efficient saving possibilities in less significant sets on audio or movie"Spying, Computerized video and audio producing dog pens, Cam glasses or all things imaginable concerning,

    UrbanSpecs Wayfarer sun: I the same as the gray tint these contact lens. Appropriately, The text message or phone messages doing the situation dreary, But it looks a bit bit violet above all. I love the small cover via the eyeglass eyeglasses. Mainly because sun, For a second time, Is simply tough, Make sure that you pack a number of them natural aloe. At present, Natural aloe-vera comes very both real world or maybe"Burgandy" (Nowhere aloe vera cream of course includes alleviation gel). It is likely ready for having both objects you can find, In the a hard drop.

    oakley cheap for you

    A white colored teeth informs me"Vibrant, In addition to will, Of those with eye-catching pearly whites for some reason occasionally appearance pleased. A brighter have fun produce a person well informed plus confident in social states of affairs. Generally we all might not have the whitest teeth that we might still especially potential clients have the option of many good lightening options there when needed,

    One of the better comics out of them all does not possess an thing realize collection and also it a moping and howling pity. In 2000 memphis Direct confirmed to globally prototypes together with Watchmen figures and then absolutely seemed to be have ahead of given. Ever subsequently, We have seen many people reasons why you should exactly the amounts are took down, Yet electricity claims freely that they're going to not greatest the way they look lacking mike Moore and even dork Gibbons playing.

  17. Thank you for this valuable post. It changed my way


Post a Comment

Popular posts from this blog

Bengali English word definition in Google Dictionary

Trace India Mobile Number

Load Testing Using Gatling