Quantcast
Channel: Magnus K Karlsson
Browsing all 526 articles
Browse latest View live

Java Smart Card APDU Commands

Almost all smart card are Java Smart Card based. You can manage smart card via the Java Smart Card SDK, but you can also access the card via standard Java SE and javax.smartcardio API.To do that you...

View Article


Scanning Your System with OpenSCAP

With SCAP and a good policy you can centrally scan your system and verify that they are properly secured and get a nice automatically report at the end.ResourceWhat Are “STIGs” and How Do They Impact...

View Article


Using JAAS in Tomcat Example

JAAS is part of the Java SE since Java 5, so choosing that API, when you want to deploy to only a web container, such as Tomcat or Jetty, is a good choice./META-INF/context.xml. See where best to put...

View Article

JSF 2.0 (EE 6) Feature Red Hat JBoss EAP 6

Feature in JSF 2.0 (EE 6) GitHub JsfApplicationJboss.

View Article

Security Testing in the Build Pipeline

PMDPMD is a source code analyzer tool, but also have Copy/Paste Detector tool (CPD). https://maven.apache.org/plugins/maven-pmd-plugin/index.html<project xmlns="http://maven.apache.org/POM/4.0.0"...

View Article


JSF UI Components Overview

https://www.javatpoint.com/jsf-ui-componentshttps://www.tutorialspoint.com/jsf/index.htm

View Article

Image may be NSFW.
Clik here to view.

Oracle Code One 2018 Keynote by Mark Reinhold Chief Architect

Entire Keynotehttps://www.youtube.com/watch?v=RFF2SfPMfpkOracle JDK for Windows is Not Free Anymore Oracle JDK for Windows is Not Free Anymore Subscription$ 25.00 per month per processer$ 2.50 per...

View Article

Image may be NSFW.
Clik here to view.

TestNG

Comparison with JUnitTestNG is a direct competitor with JUnit. But that may change with JUnit 5.The main advantage of TestNG compared with JUnit 4, is that TestNG has build in support of Data Provider...

View Article


Image may be NSFW.
Clik here to view.

Getting Started with Spring MVC

The OLD XML Configurationpom.xml. The jstl and servlet-api is only need if you use JSTL in your JSP pages.<?xml version="1.0" encoding="UTF-8"?><project...

View Article


Image may be NSFW.
Clik here to view.

Spring Security

What is it?A security framework, that competes with a framework that are built in Java EE and theirs servers. And is a mandatory requirement when running Spring Boot.PrerequisiteWill use Spring Tools...

View Article

How to Enable RequestDump in JBoss EAP 6 and 7

What is RequestDump?It is a great debugging tool, that prints HTTP request and response in jboss server.log.JBoss EAP EAP 6.1.0 or laterEdit standalone.xml.<subsystem...

View Article

Set HttpOnly and secure for Cookies in JBoss EAP 6 and 7

What is Cookie HttpOnly and secure?ExampleSet-Cookie: a=b; HttpOnly; SameSite=strict; secure HttpOnly = No JavaScriptSameSite = no cross-origin cookie sharingsecure = SSL onlySameSite is not yet...

View Article

Setting Global HTTP Session Timeout in JBoss EAP 6 and 7

JBoss EAP 6.xEdit standalone.xml.<subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false" default-session-timeout="15">...</subsystem>JBoss EAP...

View Article


RPM Installation of WildFly 15 on CentOS 7

PrerequisiteCentOS 7. I use minimal installation. I also need wget to download harbottle rpm repo (https://pkgs.org/download/wildfly), from which I will need to install WilfFly from. The harbottle repo...

View Article

Syslog Handler in JBoss EAP 6 and 7

IntroductionJBoss EAP 6 and 7 has a two different syslog handler:syslog-handlercustom-handler org.jboss.logmanager.handlers.SyslogHandlersyslog-handlerThe default syslog-handler only supports UDP.$...

View Article


Image may be NSFW.
Clik here to view.

Entity Control Boundary (ECB) Pattern

IntroductionThe Entity Control Boundary (ECB) pattern is and old pattern that was published by Ivar Jacobson (Ericsson Co.) in 80's. It is has things in common with the Model View Controller (MVC)...

View Article

Getting Started with JSF 2.3 (Java EE 8)

IntroductionJSF 2.3 comes with Java EE 8.MavenAdd Java EE 8 dependency and Java 11 (latest Java LTS version).<?xml version="1.0" encoding="UTF-8"?><project...

View Article


Image may be NSFW.
Clik here to view.

Getting Started with JSF 2.3 and Bootstrap 4

IntroductionThe most popular CSS framework today is Bootstrap.We are now going to add Bootstrap to my previous getting started JSF 2.3 (Java EE 8).Starting...

View Article

Generating Test Data - JavaFaker

JavaFaker is good library for generating localized faked test...

View Article

Image may be NSFW.
Clik here to view.

Vlad Mihalcea High-Performance Hibernate Tutorial

IntroductionBelow is a short summary of the most important things when designing JPA. For complete tutorial see https://vladmihalcea.com/tutorials/hibernate/.@Id - Database-generated identifiers...

View Article
Browsing all 526 articles
Browse latest View live