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

Remote JMS Client with Security in JBoss EAP 6

BackgroundWe want to write a remote JMS client for the following MDB. And we are using JBoss EAP 6 standalone-full.xml, i.e. we are using the built in HornetQ in JBoss.package...

View Article


How to use DataSource in Tomcat 8

IntroductionThis works for Tomcat 7, 8 and 9, but here I will use Tomcat 8.InstallationCopy wanted jdbc driver to $TOMCAT_HOME/lib.$ cp ~/.m2/repository/com/h2database/h2/1.4.185/h2-1.4.185.jar...

View Article


Tomcat JavaBean Resources Factory

Introduction This works for Tomcat 7, 8 and 9, but here I will use Tomcat 8. PurposeTomcat have DI (Dependency Injection), much the same found in Spring and Java EE, which can be used for mocking or a...

View Article

How to handle Configuration in Tomcat with Context

BackgroundIn Tomcat there seems no way to handle war deployment with version number in file name."When autoDeploy or deployOnStartup operations are performed by a Host, the name and context path of the...

View Article

Tomcat Standard Security Realms

Tomcat comes out of the box with the following security realms, i.e. modules that does Authentication and Authorization.NameCIS Tomcat 8 Benchmark Note *JDBCRealmNOT for ProductionDataSourceRealm...

View Article


Configure Java KeyStore and TrustStore

KeyStorejavax.net.ssl.keyStorejavax.net.ssl.keyStorePasswordjavax.net.ssl.keyStoreTypeTypical [JKS|PKCS12]And how to use it.$ java -Djavax.net.ssl.keyStore=/path/to/file...

View Article

How to RPM Install JBoss EAP 7 on RHEL 7

First you need to add JBoss EAP 7 subscription. To do that you need the pool id for your subscription. To find that out list all available subscription and then look for JBoss subscription.#...

View Article

How to Generate Elliptic Curve Keys in Java 8

// Supported Providers in Java 8for (Provider provider : Security.getProviders()) { System.out.println("Provider : " + provider);}// Supported Algorithm in Java: "DiffieHellman", "DSA", "RSA" and...

View Article


NamingException in RPM Installed Tomcat 7 in RHEL 7 and CentoIOS 7

If you are using datasource in rpm installed tomcat 7 on RHEL 7 and CentOS and do not specify factory, you will get a NamingException. For details see...

View Article


Roadmap Apache ActiveMQ, HornetQ and Apache ActiveMQ Artemis

HornetQ was the built in Message Broker in JBoss EAP 6.Red Hat bought FuseSource in 2012, the company behind ActiveMQ commercial support, and rebranded the product JBoss A-MQ server. This left Red Hat...

View Article

How to Install Spotify on Ubuntu 16.04

Please see https://www.spotify.com/se/download/linux/

View Article

JSF 2.0 Facelets Tag Libraries

Tag Library"JSP technology is considered to be a deprecated presentation technology for JavaServer Faces. Facelets is a part of the JavaServer Faces specification and also the preferred presentation...

View Article

Getting Started with JSF 2.0 (EE 6)

IntroductionJSF 2.0 is the standard Web Framework that ships with Java EE 6. Here I will build a simple JSF web app to get you started with the build stones.MavenWith starting with Java EE 6, there is...

View Article


Image may be NSFW.
Clik here to view.

Postback Lifecycle in JSF 2.0 (EE 6)

"The request-response lifecycle handles two kinds of requests: initial requests and postbacks. An initial request occurs when a user makes a request for a page for the first time. A postback request...

View Article

How to RPM Install JBoss EAP 7 on RHEL 7

We will start fresh with a unregistered RHEL 7, so we first register the machine and their enter our username and password.# subscription-manager register...After that we are ready to add EAP7...

View Article


Configure mod_proxy on RHEL 7 for JBoss EAP 7

In my previous blog I described how to RPM install JBoss EAP 7 on RHEL 7.Here I will describe how to configure Apache mod_proxy as a Non-load-balancing Proxy.First install Apache 2.4 and mod_ssl.# yum...

View Article

Install MariaDB (MySQL Open Source) on RHEL 7 and JBoss EAP 7 DataSource

First what is MariaDB? "MariaDB is a community-developed fork of the MySQL relational database management system intended to remain free under the GNU GPL. Development is led by some of the original...

View Article


Image may be NSFW.
Clik here to view.

Decompile and Analyze Java JAR Dependency

Sometime you need to decompile Java or entire JAR files, then JD-GUI is a good tool. And if you need to find dependencies between JAR files Class Dependency Analyzer (CDA) is a good tool. Please see...

View Article

What is a signed jar file?

First a jar file is a zip file. When signing a jar file, a signature is created for each class in the jar file and added to the jar file in the below files....

View Article

The Main Goals of IT Security

The main goals of IT security are, CIA:ConfidentialityIntegrityAvailabilityConfidentiality - Prevent unauthorized disclosure. This must be enforced when data is in rest (data encrypted and not readable...

View Article
Browsing all 526 articles
Browse latest View live