Bookmarks tagged [javaee]
https://rmannibucau.wordpress.com/2015/03/10/cdi-and-startup/
Speaking on the CDI list about CDI 2.0 standalone container API Jozef Hartinger sent an answer which is quite obvious when you know it but which can change your life if you don’t: how CDI 1.1 introduc...
- 📆 published on: 2015-03-10
- tags: javaee, cdi, ejb, annotations
https://docs.jboss.org/ejb3/docs/tutorial/mdb/mdb.html
This example shows you how to implement an MDB with EJB 3.0 using annotations. Take a look at [ExampleMDB.java](https://docs.jboss.org/ejb3/docs/tutorial/mdb/src/org/jboss/tutorial/mdb/bean/ExampleMDB...
- tags: java, javaee, ejb, message-driven-bean, messaging
https://samaxes.com/2014/04/jaxrs-beanvalidation-javaee7-wildfly/
I have already approached this subject twice in the past. First, on my post Integrating Bean Validation with JAX-RS in Java EE 6, describing how to use Bean Validation with JAX-RS in JBoss AS 7, even ...
- 📆 published on: 2014-04-01
- tags: bean-validation, jaxrs, javaee, wildfly, jboss
- source code
https://www.youtube.com/watch?v=6Gm0u9gX56w
Live coding of two simple jax-rs resources one annotated with EJB and one with CDI plus a benchmarking test with jmh. EJB performs better in this scenario. Write your benchmark for your situation
- tags: javaee, jaxrs, ejb, cdi, benchmarking
https://www.youtube.com/watch?time_continue=96&v=BnUsNlPnZZo&feature=emb_logo
@Stateless is an interesting component to be used as JAX-RS resource. Even if performance is not your primary goal: [https://www.youtube.com/watch?v=6Gm0u9gX56w](https://www.youtube.com/watch?v=6Gm0u9...
- 📆 published on: 2016-04-26
- tags: java, javaee, ejb, monitoring, microservices
https://stackoverflow.com/questions/26832051/singleton-vs-applicationscope/27848417
All those kinds of singletons (static, @javax.inject.Singleton, @javax.ejb.Singleton and @javax.enterprise.context.ApplicationScoped) are created once per JVM.
Short explanation of the differences
- 📆 published on: 2014-11-09
- tags: static, singleton, synchronized, javaee
What is Jakarta Bean Validation Jakarta Bean Validation is a Java specification which
- lets you express constraints on object models via annotations
- lets you write custom constraints in an ext...
- tags: java, javaee, bean-validation, javabeans, validation
https://www.youtube.com/watch?v=Px_FCgmrCLQ
For few last years I was doing many presentations about problems caused by container based dependency injections and runtime aspects based on dynamic proxy. If You are not familiar with this I will qu...
https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#validator-customconst...
The Jakarta Bean Validation API defines a whole set of standard constraint annotations such as @NotNull, @Size etc. In cases where these built-in constraints are not sufficient, you can easily create ...
- tags: java, validation, javaee
Thorntail provides a mechanism for building applications as uber jars, with just enough of the WildFly application server wrapped around it to support each application's use-case.
- tags: javaee, microservices
- source code
http://docs.jboss.org/weld/reference/latest/en-US/html_single/
CDI: Contexts and Dependency Injection for the Java EE platform
- tags: weld, dependency-injection, javaee, docs
https://tedvinke.wordpress.com/2014/02/13/mockito-why-you-should-not-use-injectmocks-annotation-to-a...
People like the way how Mockito is able to mock Spring's auto-wired fields with the @InjectMocks annotation. When I read this post of Lubos Krnac last week, I thought I should explain why I think the ...
http://olivergierke.de/2013/11/why-field-injection-is-evil/
I’m quite frequently getting pulled into discussions on Twitter about the different flavors of Dependency Injection. Also, I’ve repeatedly expressed my distaste for field injection but as Twitter is n...
- 📆 published on: 2013-11-22
- tags: dependency-injection, javaee, spring
https://antoniogoncalves.org/2011/05/03/injection-with-cdi-part-i/
There are three parts:
- Injection with CDI (Part I) - Focused on default injection and qualifiers
- [Injection with CDI (Part II...
- 📆 published on: 2011-09-25
- tags: dependency-injection, cdi, javaee
- source code
https://allegro.tech/2014/10/async-rest.html
One of new features introduced by JAX-RS 2.0 is asynchronous processing in Server and Client APIs. We use these APIs together with CompletableFutur...
- 📆 published on: 2014-10-29
- tags: rest, java, javaee, asynchronous
Jakarta Enterprise Edition (EE) is the future of cloud native Java. Jakarta EE open source software drives cloud native innovation, modernizes enterprise applications and protects investments in Java ...
https://www.ibm.com/developerworks/library/j-ts1/index.html
Transaction processing should achieve a high degree of data integrity and consistency. This article, the first in a series on developing an effective transaction strategy for the Java platform, introd...
- 📆 published on: 2009-02-10
- tags: javaee, spring, transactions
https://www.whitebyte.info/programming/java/asynchronous-does-not-work-from-inside-the-same-ejb
The @Asynchronous annotation does not work from inside the same EJB. The solution is to use a separate EJB that wraps the async Method.
- tags: javaee, ejb, asynchronous, async
http://www.codingpedia.org/ama/how-to-build-and-clear-a-reference-data-cache-with-singleton-ejbs-and...
In one of my projects I had a requirement to load reference data from several sources in a Java EE 6 WebLogic environment, with EclipseLink as ORM framework. Since I couldn’t find an annotation in the...
http://www.mastertheboss.com/jboss-server/wildfly-8/creating-clustered-ejb-3-timers
In this tutorial we will demonstrate how to configure a Timer EJB 3 Service on a cluster of servers. You will need WildFly 8 application server and a Database supporting READ_COMMITTED or SERIALIZABLE...
- tags: javaee, wildfly, scheduling
https://www.baeldung.com/scheduling-in-java-enterprise-edition
A demonstration of how to schedule tasks in Java EE using the @Schedule
annotation and the timer service.
- 📆 published on: 2017-11-30
- tags: javaee, scheduling
- source code
https://www.thoughts-on-java.org/complete-guide-inheritance-strategies-jpa-hibernate/
Hibernate and JPA support 4 inheritance strategies which map the entities to different table models. But which one is the best for your use case?
https://stackoverflow.com/questions/27706091/unsatisfied-dependencies-for-type-x-with-qualifiers-def...
In Java EE 7, the default scanning for JARs/WARs is annotated, meaning that if you don't have a beans.xml
that specifies the scan mode, it will default to annotated based scanning.
- tags: javaee
https://www.softwareyoga.com/arquillian-and-wildfly-integration-test-tutorial/
Arquillian is a testing platform for JavaEE applications. This tutorial creates an Arquillian test and executes it on the Wildfly container.
- 📆 published on: 2015-10-27
- tags: testing, javaee, arquillian
- source code
http://www.baeldung.com/arquillian
Learn how to prepare and execute tests using Arquillian, a container-agnostic integration testing framework.
- 📆 published on: 2017-11-30
- tags: testing, java, javaee, arquillian
- source code
http://www.vogella.com/tutorials/REST/article.html
RESTful web services with Java (Jersey / JAX-RS). This tutorial explains how to develop RESTful web services in Java. It uses the JAX-RS reference implementation Jersey. In this tutorial Eclipse 4.7 (...
http://www.codingpedia.org/ama/how-to-make-parallel-calls-in-java-with-completablefuture-example
This blog post presents an example about how to make parallel calls in Java with CompletableFuture in an asynchronous fashion. It resembles somehow the parallel calls pattern one can achieve in JavaSc...
https://github.com/redhat-developer/redhat-sso-quickstarts
redhat-sso-quickstarts - Quickstarts for the Red Hat Single Sign-On (SSO) Server The quickstarts demonstrate securing applications with RH-SSO. They provide small, specific, working examples that can ...
- tags: rh-sso, node.js, javaee, jaxrs
- source code
https://dennis-xlc.gitbooks.io/restful-java-with-jax-rs-2-0-2rd-edition/en/index.html
Complete JAX-RS 2.0 book - lots of useful examples
- tags: java, jaxrs, javaee, free-programming-books, rest-client
30.2 Using the Client API in the JAX-RS Example Applications - Java Platform, Enterprise Edition: The Java EE Tutorial (Release 7)
https://docs.oracle.com/javaee/7/tutorial/jaxrs-client002.htm
The rsvp and customer examples use the Client API to call JAX-RS services. This section describes how each example application uses the Client API.
A blog mainly about Java
http://www.codingpedia.org/ama/how-to-build-the-right-smoke-test-rest-service-in-java-ee-with-maven
This post describes how to develop a REST service in your REST API backend that will provide the information about the current version of the implementation plus the git sha-1 number. It can be very u...
https://www.youtube.com/watch?v=lbANLOUFe58
WebSocket Applications using Java EE 7
https://docs.oracle.com/javaee/7/tutorial/cdi-basic013.htm
CDI uses an optional deployment descriptor named beans.xml
. Like other Java EE deployment descriptors, the configuration settings in beans.xml are used in addition to annotation settings in CDI clas...
- tags: javaee
https://docs.oracle.com/javaee/7/tutorial/
This tutorial is a guide to developing enterprise applications for the Java Platform, Enterprise Edition 7 (Java EE 7), using GlassFish Server Open Source Edition.
- 📆 published on: 2014-09-07
- tags: javaee
http://www.codingpedia.org/ama/how-to-deploy-an-application-on-wildfly-or-jboss-eap-7-via-the-wildfl...
Shows how to deploy a Java EE application on a WildFly or JBoss EAP 7 via the WildFly Maven Plugin...