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

Wednesday, August 12, 2020

Sharding Table with postgres_fwd on PostgreSQL-12

 In previous post, we have create table partitioning to scale out database. Table partition is stored in the same server, data will store in the single database. In case, we need to distribute data across remote database, we need to use sharding to distribute data in the table. Bellow is the figure of sharding concept. read more


Saturday, July 25, 2020

PostgreSQL Connection Pooling with Pgbouncer on CentOS 6

PostgreSQL is quite heavy to establish connection. PostgreSQL deploy concept of process to establish connection from clients. If your connection just connect to database for short period of time, it will consume a lot of resource for each connection. To overcome this issue, connection pooling concept is utilized to handle short-time connection. Connection pooling enble connection resource reusable, so connection will be reuse among incoming connections from clients. Pgbouncer is one of the connection pooling solution that is available. It is very light weight and very easy to setup. In this post I will show how to install and configure pgbouncer to pgpool that I have created in previous post. My deployment concept is shown following . 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