slash dev slash null

simbo1905’s ramblings about computers

Tag: scala

OpenID Authentication with Socko Webserver

In my last post we took a look at Immutable Session State in Scala. That outlined an immutable SessionState data structure suitable to wrap in an Actor running in the mighty yet diminutive Socko Web Server.  In this post we will pick up where we left off and use the SessionState data structure wrapped in an Actor to implement user registration with openid4java. Read the rest of this entry »

Immutable Session State in Scala

In the servlet world the HttpSession object is a workhorse which few developers could live without. Recently I have been taking a hard look at Socko a minimal webserver which does not come with a session object.

“What!?” I hear you cry “Why would you use a webserver on the JVM that forgot to implement the J2EE standard HttpSession???”. Well Socko is a fresh look at what a JVM webserver needs to be in the age of REST, Websockets and Actors. If you need to write a back-end exposed as websockets to a single-page/mobile app do you really need a HttpSession as a separate concept? Furthermore wasn’t HTTP supposed to be stateless?  Read the rest of this entry »