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: concurrency
CompletionStage support in server-side JAX-RS
JAX-RS 2.1 (part of Java EE 8) now supports returning a CompletionStage to mark the request as eligible for asynchronous processing. This is in addition to the AsyncResponse API which has been available since JAX-RS 2.0 (Java EE 7) Even the Client API has … Continue reading
Posted in Docker, Java, Java EE
Tagged asynchronous, concurrency, javaee8, jaxrs, jsr370
Leave a comment
CDI (2.0) Async Events
Glassfish 5 builds for Java EE 8 are rolling along… here is another Docker based example on Github. This time it’s asynchronous events in CDI 2.0 (JSR 365) Steps Just follow the README… just a bunch of docker commands to get … Continue reading
Posted in Docker, Java, Java EE
Tagged asynchronous, cdi, concurrency, events, glassfish, javaee8, jsr365, managed executor service, Server Sent Events, websocket
Leave a comment
Using CDI with Java EE Concurrency Utilities
This blog post explores usage of CDI along with Java EE Concurrency Utilities – specifically using CDI beans as managed tasks. Here is the sample application on Github Lets begin with a quick overview Java EE Concurrency Utilities provides APIs … Continue reading
Posted in Java, Java EE
Tagged cdi, concurrency, concurrency utilties, javaee7, jaxrs, managed task, REST
5 Comments
WebSocket endpoint as Singleton EJB
By default … … a WebSocket implementation creates a new (server) endpoint instance per client. In case you need a single instance, you can implement this using a custom ServerEndpointConfig.Configurator (by overriding the getEndpointInstance method) The catch: you might have to sacrifice some … Continue reading
Video Blog: Automated Retry In Java EE applications
The folks at Webucator have converted one of my previous blog posts (about automatically retrying operations in Java EE applications using Interceptors) into a video tutorial. Personally, I tend to stick to text only blogs due to lack of time … Continue reading
Posted in Java, Java EE
Tagged concurrency, ejb, interceptors, retry, singleton, timeout, webucator
Leave a comment
Implementing auto retry in Java EE applications
Initially, I wanted to call this blog – ‘Flexible timeouts with interceptor driven retry policies‘ – but then I thought it would be too ‘heavy’. This statement, along with the revised title should (hopefully) give you an idea of what … Continue reading
Timeout policies for EJBs : how do they help…?
EJB 3.1 introduced timeout related annotations as a part of its API. @AccessTimeout @StatefulTimeout Let’s quickly look at what they are and why are they important @AccessTimeout Specifies the time period after which a queued request (waiting for another thread … Continue reading
EJB 3.x : Lifecycle and Concurrency models (part 2)
This is the second post of the two part series. The first part covered the life cycle and the concurrency behavior of Stateful and Stateless EJBs. I’ll cover Singleton EJBs in this post The Singleton pattern is arguably the most used (some times misused … Continue reading
Posted in Java, Java EE
Tagged concurrency, EJB lifecycle, ejb3.1, javaee, javaee6, singleton session beans
Leave a comment
EJB 3.x : Lifecycle and Concurrency models (part 1)
Java EE component life cycle and concurrency related details might not be new for seasoned professionals, but it is something which can take time to sink in for beginners. As far as EJBs are concerned, understanding their life cycle (and related … Continue reading
Posted in Java, Java EE
Tagged beans, concurrency, ejb, enterprise java beans, javaee, lifecycle, stateful session beans, stateless session beans
8 Comments