Java EE eBooks on Leanpub
DZone Java Caching Refcard
-
Join 128 other subscribers
-
Recent Posts
- Basics of Kubernetes Volumes – Part 1 September 24, 2019
- Using Azure Disk to add persistent storage for your Kubernetes apps on Azure September 23, 2019
- “Kubernetes in a Nutshell” — blog series September 21, 2019
- My Tweets
Categories
- Books (6)
- Caching (1)
- Cloud (7)
- Docker (5)
- Java (136)
- Knowledge (1)
- kubernetes (8)
- NoSQL (2)
- Oracle Cloud (5)
- Oracle Directory Services (1)
- Oracle Identity & Access Management (1)
- Oracle Identity Governance (12)
- Oracle Identity Manager (17)
- Oracle Priviledged Account MAnager (1)
- Oracle Privileged Account Manager (2)
- Oracle Unified Directory (1)
- Productivity (1)
- serverless (2)
- Uncategorized (2)
- Follow Head in the clouds on WordPress.com
Tag Archives: jsr356
Accessing HTTP Session in WebSocket endpoint
It’s possible to obtain a reference to the HttpSession within a WebSocket application using a custom implementation of ServerEndpointConfig.Configurator Here is an example application on Github Steps… Override the modifyHandshakeRequest method call the getHttpSession method on the HandshakeRequest object which is passed into the … Continue reading
Handling ‘state’ in Java WebSocket applications
By and large, there are two kinds of states in a WebSocket application User/client specific: related to a connected user/Session e.g. user ID, list of subscriptions, last message received etc. Global: state which is relevant across your application and something … Continue reading
Github: WebSocket applications…
I recently pushed a couple of WebSocket samples to Github. Both are based around the notion of a chat service – a canonical WebSocket example! These were originally meant to serve as additional material to the Java WebSocket API Handbook in order … Continue reading
Quick tip: managing Stateful EJBs in WebSocket endpoints
@Stateful EJBs can be injected in WebSocket endpoints (supported by the WebSocket specification). There is an one-to-one association between the WebSocket client & endpoint (which is by default) as well as the injected Stateful EJB instance, which makes it an good candidate for storing … Continue reading
Using Asynchronous timeouts in the Java WebSocket API
Sending messages in an asynchronous manner avoid blocking the sending thread. This is a great where your solution needs to scale in order to support a large number of clients. But there is a limit on how long can we … Continue reading
Posted in Java, Java EE
Tagged asynchronous, javaee, javaee7, jsr356, timeouts, websocket
Leave a comment
WebSocket and CDI integration.. again..
In one of my older blog posts, I had written about what does not work as far as WebSocket and CDI integration within the Java EE Platform 😉 This one talks about what’s possible with CDI in terms of Dependency Injection Interceptors … Continue reading
Configuring WebSocket server endpoints
WebSocket Server endpoint configuration Before we dive into the details, here is a quick snapshot of the related interfaces Class/Interface Description ServerEndpointConfig A derivative of EndpointConfig interface which is specific for configuration related to server side WebSocket endpoints ServerEndpointConfig.Configurator An … Continue reading
Deploying WebSocket annotated & programmatic server endpoints together
One of my previous blog post discussed Programmatic WebSocket endpoints and their deployment methodology using the javax.server.ServerApplicationConfig class. When annotated and programmatic endpoints co-exist… you have to make use of the a custom implementation of ServerApplicationConfig and explicitly return set … Continue reading
Programmatic Websocket endpoints in Java EE 7…
This post briefly demonstrates how to develop and deploy (server and client) Websocket endpoints using the programmatic version of the Java Websocket API To begin with… extend the javax.websocket.Endpoint class This file contains bidirectional Unicode text that may be interpreted or compiled … Continue reading
Just a follow up on WebSocket API issue with Tyrus (on GlassFish)
Follow up on the WebSocket API issue with Tyrus (on GlassFish). I initially reported this under Glassfish 4 – details. This has been appropriately filed under TYRUS – link and should hopefully be resolved soon. Thanks to Pavel Bucek ! Cheers!