Monday, September 7, 2020

SINGLETON

package com.exam.desingpattern;


public class Singleton implements Cloneable  {

static Singleton singleton;

public static Singleton getInstance()

{

if (singleton == null)

{

return new Singleton();

}

else

{

return singleton;

}

}

   @Override

    protected Object clone() throws CloneNotSupportedException {


        // TODO Auto-generated method stub

        /*

         * Here forcibly throws the exception for preventing to be cloned

         */

        throw new CloneNotSupportedException();

        // return super.clone();

    }

   

   public static void main(String[] args) {

        // TODO Auto-generated method stub

   Singleton test1 = Singleton.getInstance();


        try {

        Singleton test2 = (Singleton) test1.clone();

        } catch (CloneNotSupportedException e) {

            // TODO Auto-generated catch block

            e.printStackTrace();

        }

    }


}


Send SMS in JAVA Using Amazon SNS

Saturday, August 22, 2020

Important Links

 Important Links :

LINUX :

digitalocean.com/community/tutorials/install-tomcat-9-ubuntu-1804

https://www.hostinger.in/tutorials/how-to-install-docker-on-ubuntu

https://crunchify.com/how-to-run-multiple-tomcat-instances-on-one-server/

https://blog.e-zest.com/how-to-run-multiple-tomcat-instances-on-single-linux-server/

https://linoxide.com/ubuntu-how-to/install-tomcat-8-ubuntu-16-04-multiple-instances/

 

AWS 

https://github.com/arun-gupta/lambda-rds-mysql

JAVA 8:

https://www.oracle.com/technical-resources/articles/java/ma14-java-se-8-streams.html

KAFKA :

http://www.vinsguru.com/architectural-design-pattern-saga-pattern-implementation-using-kafka/

SOLID Principle :

https://raygun.com/blog/solid-design-principles/


SPRING BOOT:

https://github.com/talk2amareswaran/spring-boot2-oauth2-auth-server-jwt-mysql Spring

https://medium.com/zero-equals-false/protect-rest-apis-with-spring-security-and-jwt-5fbc90305cc5


JWT :

https://www.devglan.com/spring-security/jwt-role-based-authorization

Docket Install  jenkins:

https://linuxhint.com/install_jenkins_docker_ubuntu/

ZooKeeper :

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-an-apache-zookeeper-cluster-on-ubuntu-18-04

Kubernetes:

https://www.digitalocean.com/community/tutorials/how-to-create-a-kubernetes-cluster-using-kubeadm-on-ubuntu-18-04