Showing posts with label java ee. Show all posts
Showing posts with label java ee. Show all posts

Monday, May 1, 2023

Running Wildfly Application Server in Domain Mode

 Wildfly application server provides two modes of how to run application one wildfly application server. It is very simple if you run your application on a single server for one instance. But in case you are running your application on a cluster of server a cross multliple instances, managing those servers' instances could be quite challenging. In this case, Wildfly Application provide domain mode to run and manage application on multiple instances Read more

Saturday, December 10, 2022

Exception Handlering in Wildfly

In this post, I will show how to create error handler for JSF and Restful web service by using Wildfly Application Server. In the programming development, exception handling is very important part in the development process. Handling exception properly improve user exprerient and elevate security. I'll show how to handle exception for JSF pages and webservices. Read more

Saturday, October 15, 2022

Wildfly JSF Richfaces Ajax Configuration

Java EE container as Wildfly provides dynamic Web UI components along within the package, for example JSP and JSF. Beside JSP, JSF provides MVC framework to give the structure of your application. JSF is very well designed Web interface tools, it glues web components via expression language (EL) and working very well with AJAX. Read More

Wednesday, October 5, 2022

Using In Memory Database H2 with Widlfly 23

H2 is database engine (RDBMS) base on Java. Its features includes in memory database, embeded database as file database. In Wildfly, H2 is installed as default in the application server. In this post, I will show how to connect to H2 database from application and use H2 as an in memory database and file database. Read More

Wednesday, October 13, 2021

Load balancing Web Application with HA Proxy

 In previous post, I have demonstrated how to use NGINX as the load balancer to devide load between application servers. Beside NginX, another popular software load balancer is HAProxy. HAProxy supports for Layer 4 (TCP) and Layer 7 (HTTP) protocol for load balancing. Read more

Thursday, December 31, 2020

Real-Time Application with Websocket and Postgres

 On this post, I will discuss the problem about the problem I have often faced in my entire career. That is system integration. If you could imagine once you have to monitor data on database's table. Base on that change you need so show data in the page, etc. The solution for this situation, commonly most of what people will do is apply pooling. But pooling is not practical way to deal with this kind of situation. Read more

Monday, December 21, 2020

Widlfly Hiberate OGM (Object Grid Mapper) with MongoDB

In the real world of enterprise application, Relational Database Management System (RDBMS) is dominant product. There are several most widely used propeitry and opensource products, the most well known and popular propeitary products are Oracle Database, IBM DB2, Microsoft SQL Server and for the opensource products are MariaDB, PostgreSQL. The most important feature that push RDBMS to be top of the choice for database that deployed on any production application is ACID complied feature. ACID property asure data consistency, integrity and durability, but it also comes with obstacles. it is very hard to scale out the system that comply with ACID property once the data volume is grow. In some industry, ACID property is not mandatory such as IoT, BigData, AI, this is where NOSQL database comes in the picture. Recently, NOSQL database like MongoDB, CouchDB, Cassanda is becoming very popular among companies in the industry. Read more

Thursday, December 17, 2020

Integrate Testing Java EE (JPA, EJB, CDI) with Arquillian

When it comes to JavaEE, the biggest obstacle is conducting test, especially for EJB. This makes EJB is drawback for most developers. In fact EJB offer several enterprise features for business logic implementation such as remote call, security, transaction, etc. So, it will be waste to give up those benefits. Fortunately, Java EE provides testing framework like Arquillian for conducting the test. In this post, we will demonstrate how to perform enterprise business component by using Arquillian . Read more

Saturday, November 28, 2020

Create Full Duplex by using Websocket with Wildfly 10.1.0

 In this post, we demonstrate how to use websocket to implement two way communication between server and client. Typical HTTP, only client could initiate request to server. Right after server received request from client, server will send back the response to that particalar client.  Read more

Monday, November 23, 2020

Wildfly Custom Authentication with JAAS (MongoDB)

 In this post, we will demonstrate how to configure custom login on wildfly by using JAAS. Wildfly provides most common use for login method such as database, LDAP or even flat file. But in the practical situation, there are some requirements that need to combine or customize logic procedure, for example, using multiple source of user management systems, using NO-SQL database for user management, connecting with the legacy system to perform user authentication, etc. To meet these requirement, customize logic mechanism in application server is required. Fortunately, Wildfly also provide module to customize login. Read more.

Saturday, August 22, 2020

Secure EJB Access on Wildfly Application Server With JDBC Authentication Realm

 EJB is used to create business logic in Java EE application. Setting up authorization to limit the access to your business execution base on the role. In the enterprise level, security concern is very crucial to ensure the authorized user shall be the only on who those business logic is available to. EJB provide two types of methodologies for securing business logic for instance, declarative and programmatic. Read more

Sunday, June 21, 2020

Wildfly JPA enable Second Level Cache

Caching is very import technique to improve performance on inquiry. Especially, if you are working with a heavy query that need to join many tables or to retrieve huge amount of the data from the database. Without caching, every single time that data query is executed, disk access happened. This is not a practical manner to handle data inquiry and lead to poor system performance. Accessing data without fetching data directly from the disk could increase data inquiring speed dramatically. Caching inquiry result in the memory and reuse that data is very common practice once it come to handle heavy query or huge amount of data. Read more

Sunday, May 17, 2020

Deploy Architecture (Nginx + Wildfly + PostgreSQL)

Once deploy application (web or enterprise application), the most common pattern is three tier pattern which includes web application, application server and database server. In this post, I will demonstrate how to use Nginx / Apache Web Server as web server to deploy application. NginX / Apache Web Server has the comparability to perform load balancing which could help to dispatch request to the application server. The difference between NginX / Apache Web Server is how it handle the request. Nginx use concept of NIO (Non-Blocking IO) which mean it uses one thread to handle all requests  that come to the server. But for Apache Web Server, it handle each request comes to the server by creating new thread for each request. Read more

Sunday, May 10, 2020

Wildfly 10 Create XA Datasource for Distribute Transaction


In the real work application, you have many changes to work with multiple resource. One of them is database or messaging service. Especially, for the database, if you work with the databases. Tables could be on different databases distributed across network. Many time, you need to implement business logic that required to perform transaction across those datasources. This kind of transaction is know as distributed transaction. JAVA EE (Wildfly) provides XA datasource to implemented distributed transaction across datasources. XA uses two phase commit to manage distributed transaction. Read more

Saturday, May 2, 2020

Install Wildfly 10 Service on CentOS 7


When you deploy Wildfly on the production, it is very convenient to run Wildfly as a back ground service. Running Wildfly as a background daemon, you can change change run level and enable Wildfly start once the system boost. So, in this post I will demonstrate how to install Wildfly 10 on CentOS as background process and enable the service to run once the system start. Read more

Saturday, April 18, 2020

Setup LDAP server and configure a LDAP Realm on WildFly with secured connection



For Enterprise Application, it is very common to found Application Server and LDAP integration. LDAP provides centralize authentication and authorization for application access. So in this post, I will demonstrate how to setup LDAP server by using Openldap server and Integrate with Wildfly Application Server. For my environment, I have use CentOS 6 to install Open LDAP server. Read more

Saturday, April 4, 2020

Wildfly 10 Logging Service for Specific Application

n this post, I will demonstrate how to configure logging for specific application. Logging is very crucial thing to help to diagnose the status of your application. Wildfly integrate logging system come with the configuration. .Read more

Friday, April 3, 2020

Batch Application and EJB Timer

Batch Processing is one of the common enterprise application. Batch process is compose of set of tasks which is executed periodically without any user interface. Batch processing is know as chunk processing, mostly all the tasks included in the batch are run in the background. Batch is run by scheduler. In this post, I demonstrate how to create batch and EJB timer to run batch job on Wildfly 10 Application server. Read More

Sunday, March 29, 2020

Integrat ActiveMQ with Wildfly 10 And Secure Connection

In previous post, I have posted how to use Messaging Service in Wildfly 10. But I couldn't find the way how to establish SSL to secure connection. In this post I'll show the way to integrate ActiveMQ with Wildfly 10 and establish Secured Connection with Message Broker. I have found that ActiveMQ is very easy to configure for SSL connection. Read more

Saturday, March 21, 2020

Concurrency Management On Wildfly 10 Application Server

This post, I demonstrate concurrency management in Wildfly. Wildfly provides concurrency management as JAVA EE specification. It will allow you to run a synchronized multithread. Multithreading provides proven solutions in enterprise applications. Multithreading has become a part of Java EE and could be managed through the container. Read more

Feature Recently

Running Wildfly Application Server in Domain Mode

  Wildfly application server provides two modes of how to run application one wildfly application server. It is very simple if you run your ...

Most Views