adam-bien.com adam-bien.com

Autumn 2020: Upcoming Online JUGs, Conferences and Workshops

Vom Java-Entwickler zum Webguru in 60 Minuten #slideless [online event] livecoding session 9 Sep 2020 https://jax.de/web-development-javascript/vom-java-entwickler-zum-webguru-in-60-minuten/ Jakarta EE and MicroProfile: a Kickstart with reasonable Practices [online event] livecoding session 9 Sep 2020 https://jax.de/serverside-enterprise-java/jakarta-ee-and-microprofile-a-kickstart-with-reasonable-practices/ Kickass...

adam-bien.com adam-bien.com

Architectural Frameworks, Interactive Code Review, Kafka and JPA, JPA vs. JDBC, Charsets, RolesAllowed, Transactions, Metrics--or 78th airhacks.tv

Questions and topics (https://gist.github.com/AdamBien/6fb9ae56e83d78d643343013fa1a304d) for the 78th airhacks.tv: Java on RaspberryPI thoughts on Quarkus Hackathlon airhacks.com and airhacks.live 2020 updates architectural frameworks vs. conventions (conventions are explained in Apps with MicroProfile workshop) setup Java environment for a mac JPA vs. JDBC charsets,keyboards and inputs metrics, rest clients and metrics for intra...

adam-bien.com adam-bien.com

From POJO to XML and back with JAXB and Java 11+

Java Architecture for XML Binding (JAXB) API was deprecated in Java 9 and with the JEP 320: Remove the Java EE and CORBA Modules removed from Java SE 11. At the same time the JAXB module was rebranded to Jakarta XML Binding: eclipse-ee4j.github.io/jaxb-ri/ and maintained as Java EE / Jakarta EE API and implementation. Starting with Java 11+, you will have to add the JAXB API, as well as, the JAXB implementation as additional...

adam-bien.com adam-bien.com

Upcoming JUGs, Online Conferences, Virtual Workshops

Von Java Entwickler zu Web (Components) / PWA / SPA Guru [online event] JUG Oberpfalz session 17 Jun 2020 https://www.meetup.com/JUG-Oberpfalz/events/268801392/ IBM Cloud Dev: Productivity without Drawbacks and Esoterics with MicroProfile and Jakarta EE #slideless [online event] free conference session 18 Jun 2020 https://ibm-clouddev.bemyapp.com Web For Java Devs [online event] JUG Switzerland session 25 Jun...

adam-bien.com adam-bien.com

Java 14+: Java Record JSON Serialization and Deserialization with JSON-B

To serialize a Java 14 POJR (Plain Old Java Record): public record Developer(int age, String language) { } You can use stock JSON-B Jakarta EE API: import javax.json.bind.Jsonb; import javax.json.bind.JsonbBuilder; import org.junit.jupiter.api.Test; public class JavaTest { @Test public void jsonb() { Jsonb jsonb = JsonbBuilder.create(); var developer = new Developer(25, "java"); var...

adam-bien.com adam-bien.com

Jakarta EE / MicroProfile / Web: Sessions, JUGs and Workshops

Jakarta EE and MicroProfile: a Kickstart with reasonable Practices conference session JAX Online online 26 May 2020 https://jax.de/serverside-enterprise-java/jakarta-ee-and-microprofile-a-kickstart-with-reasonable-practices/ Productivity = Sustainability: How To Build Proper Backends in 2020 #noslides #nomigrations conference session devtalks conference online 12 Jun 2020 https://www.devtalks.ro/agenda/ Web For Java...

adam-bien.com adam-bien.com

How To Read A File from JUnit Test

To read the file: src/test/resources/test.file in a unit/integration test, the method Paths.get is useful to set the working directory: import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; import org.junit.Before; import org.junit.Test; public class ReadFileTest { private Path workingDir; ...