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 […]

There are multiple ways .I will list down few of them. Using Old and standard java solution – if you using Google-Collections/Guava- If you can use Apache Common library..then this is useful – Quick way but only work in deserialization process – Note:ObjectInputStream is about deserialization, and the stream have to respect the serialization protocol […]

Requirement – How to get intradoc server port in custom component in Webcenter Content. Solution – We can use one class called sharedObject which give us environment value.One of my friend(Jonathan) helped me in this. use SharedObjects.getEnvironmentValue(“IntradocServerPort”) will give you intraDocServer port. Read more on http://jonathanhult.com/intradoc-api/intradoc/shared/SharedObjects.html Quick tip in end of weekend Happy coding with […]

Requirement -Programatically update an Excel spreadsheet in Java. Solutions – Here an example of Apache POI to update a XLS workbook. Apache POI is a very good API , that can be handy in manipulating Excel documents.This tutorial focuses on XLS documents (Office 97 – 2003). The existing excel file like below – after updating […]