Skip to content

Instantly share code, notes, and snippets.

View ravishankarhassain's full-sized avatar

Ravishankar Hassain ravishankarhassain

View GitHub Profile

I am a Java professional with extensive experience in Enterprise Application Integration from 2010. I am working as SOA, Middleware Application and EAI designer, developer using Java and open source technologies. I am interested in designing and developing applications to provide better automated and user interactive system.

Technologies:

Micro Service Architecture - Openshift 3.x, Docker, Kubernetes, Spring Boot, Quarkus

Service Oriented Architecture - Apache CXF, Webservices, RESTful, SOAP, WSDL, Apache Camel, Apache Servicemix ESB, Apache ActiveMQ, JBossFuse, JBoss A- MQ, JBoss Drools for creating Business Rules via DRLs, Rule Flow, BPMN, JBoss Guvnor, Fuse ESB, FuseMQ, Fuse Fabric, Fuse FMC, HawtIO, OSGi based modularization,

====================
Dockerfile commands
====================
COPY --> Used to copy files, folder from local dir
ADD --> COPY + can download resources from http url & can also unpack the resources from archive like tar
Best Practise is to use COPY
================
Configuration
================
limits-service.maximun=1000
limits-service.minimun = 100
@Component
@ConfigurationProperties("limits-service")
public class Configuration {
@ravishankarhassain
ravishankarhassain / Microservice.txt
Last active June 28, 2020 20:40
Microservices Notes
====================
Definition
====================
Microservices are small, loosely coupled, highly cohensive, self contained application / services that can be deployed individiually.
Each microservices should be resonsible for a single function / process. They can fail independently from each other and when a microservice fails, only a single process / function in the system should become unavialble, while the rest of the system remains unaffected.
====================
Princicples
@ravishankarhassain
ravishankarhassain / SpringBoot RESTAPI Notes.txt
Last active June 25, 2020 19:58
SpringBoot RESTAPI Notes
https://github.com/in28minutes/spring-microservices/blob/master/02.restful-web-services/2.3.1.RELEASE-upgrade.md
=============================================
Exception Handling
=============================================
@ControllerAdvice
@RestController
public class CustomizedResponseEntityExceptionHandler extends ResponseEntityExceptionHandler {
@ravishankarhassain
ravishankarhassain / HTTPSConnectivityRoute.java
Last active May 25, 2017 17:22 — forked from nogweii/Test.java
A quick test to see if you have the JCE Unlimited Strength Jurisdiction Policy files installed. If you don't, in Java 6 you'll see 128. If you do, you'll see 2147483647. Thanks to http://stackoverflow.com/questions/11538746/check-for-jce-unlimited-strength-jurisdiction-policy-files
package com.camel.routes;
import org.apache.camel.Exchange;
import org.apache.camel.LoggingLevel;
import org.apache.camel.builder.RouteBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class HTTPSConnectivityRoute extends RouteBuilder {
cat: /var/run/sftp-users.conf: No such file or directory
FATAL: No users provided!
Add users as command arguments, STDIN or mounted in /etc/sftp-users.conf
Syntax: user:pass[:e][:uid[:gid]]...
Use --readme for more information and examples.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.sample</groupId>
<artifactId>service</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.sample.service</groupId>
<artifactId>customer</artifactId>
D:\dev\jbdevstudio-9.0.0\workspace\poc\fuse\camel-master-demo>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Camel Master Demo 0.0.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ camel-master-demo ---
[INFO] com.cts.eas.ipm:camel-master-demo:jar:0.0.2-SNAPSHOT
[INFO] +- org.apache.camel:camel-core:jar:2.15.1.redhat-621084:compile
package com.cts.eas.ipm.os.k8s;
import javax.inject.Named;
import io.fabric8.kubernetes.api.model.ContainerBuilder;
import io.fabric8.kubernetes.api.model.PodTemplateSpecBuilder;
import io.fabric8.kubernetes.api.model.VolumeMount;
import io.fabric8.kubernetes.generator.annotation.KubernetesModelProcessor;
@KubernetesModelProcessor("kubernetes.json")