Shards in Elastic Search- When we have a large number of documents, we may come to a point where a single node may not be enough—for example, because of RAM limitations, hard disk capacity, insufficient processing power, and inability to respond to client requests fast enough. In such a case, data can be divided into […]

Elastic Search Index- What is that? Answer will not be as simple as sound. In layman language- An index is a data structure for storing the mapping of fields to the corresponding documents. The objective is to allow faster searches, often at the expense of increased memory usage and preprocessing time. Till now developers have […]

ElasticSearch is an Open Source (Apache 2), Distributed Search Engine built on top of Apache Lucene. Elasticsearch is a NOSQL, distributed full text database. Which means that this database is document based instead of using tables or schema, we use documents. Elasticsearch is much more than just Lucene and much more than “just” full text search. […]

In my previous article , I talked about JWT introduction and how it works. There are multiple libraries by which you can implement JWT in Java. 1. Java JWT: JSON Web Token for Java and Android Installation Use your favorite Maven-compatible build tool to pull the dependency (and its transitive dependencies) from Maven Central: Maven: […]

Using the Oracle-supplied Java SDK’s The sample code below uses the OID SDK’s to bind to the OID directory server and then create a new user under a specific location in the directory tree. To use the above sample code do the following: 1. Save the above text indicated between the begin/end cut lines into […]

Requirement – To have persistent storage in ehcahce Solution- cacheManagerPeerProviderFactory –It is used for saying “Hello, I’m here!” and allows to discover the other CacheManager in the cluster and be discovered by other nodes. It accepts only two arguments (class and properties). cacheEventListenerFactory — It is used for receiving notification about cache update by other […]

Small tip – To add user in space with some specified or custom role Solution -If you are using PS6, this code will help you doing that. Happy Coding with techartifact….

JSF can save state of component tree in either session or on clients machine inform of serialized data . While creating component tree JSF creates a key and keep all objects of component tree as UIViewRoot in session with against it.For next JSF request it will use same key to restore that view For client […]

Problem- I am using JNDI to connect to ldap active directory, and i want to search for users with the name contains the search string,. Its very slow. my search method is as follows: connection to ldap: ldap credentials: its very difficult to understand why the search takes too much time to retrieve the data. […]

Question -What is static nested class and usage in Java Solutions– Many developers are confused and telling static nested class as static inner class.But in java, there is no static inner class. 😮 Ok.First we understand , what is inner class – inner class or nested class is a class declared entirely within the body […]