Skip to main content


Showing posts from 2019

How we can redirect non-www traffic to www domain from Route 53?

We can simply done this by the help of an s3 bucket. You must have privilege to create s3 bucket and Route 53 edit access. Here I am explaining the steps with some screensshots. Please see the steps pasted below: Step 1. Create an s3 bucket. This is the first step. You need to create an s3 bucket with the domain name which you want to redirect to www. To create s3 bucket, log onto AWS console, services -> Amazon S3 -> Create bucket -> Create a bucket with non www domain name or vice version if we want to redirect from www to non www.

Step 2. Make the bucket as a Static website hosting with redirect. For this, go to bucket properties, choose Static website hosting with redirect requests. Add the www redirect there and save it. That’s it. If we want to redirect from www to non www then we have to enter target domain as 
Step 3. Edit AWS Route 53 entry for non www domain. Go to AWS Route 53, select hosted domain, select the zone entry. From the right side, chose the setting as: A –…

how to install ssl certificate on tomcat at aws ec2 instance

Stpes to Install SSL Certificate at tomcat in aws ec2 instance

1) Generate CSR
2) Purchase Your SSL Certificate
3) Activate your SSL Certificate.
    1) Download Certificate File
    2) Convert into required formate
4)    Create Elastic Load Balancer.

1) Generate CSR

Before we go ahead we should have aws account and we have a ready tomcat in ec2 instance should should is running inside it.

Connect your EC2 instnace through putty or terminal in mac.

by entering following command in terminal (MacOs)

Last login: Wed Apr3 08:14:13 on console Mukeshs-MacBook-Air:~ mukeshchoudhary$ sudo ssh -i Desktop/AWS-2019/touristvisaonine2019.pem Password: Last login: Sat Mar 30 12:44:15 2019 from
__|__|_) _|( / Amazon Linux AMI ___|\___|___| 13 package(s) needed for security, out of 20 available Run "sudo yum update" to apply all updates. -bash: warning: setlocale: …

what is jenkins ?

Jenkins is a self-contained, open source automation server which can be used to automate all sorts of tasks such as building, testing, and deploying software.

Jenkins can be  installed through native system packages, Docker, or even run standalone by any machine with the java Runtime Environment installed.

Is Jenkins is like TFS ?

Well, yes in many ways, since jenkins is a continuous integration tools, but still lacks many other areas where TFS is much more broader than jenkins, since TFS is more of a

Version Control System.Requirements management system.Project management systemautomated build management systemTesting and release management system.All, the above is otherwise called as Application Lifecycle Management System.
Part 2 : Installing and getting started with jenkins 2.0
Software pre-requisite 
We need to have following softwares installed before getting started with jenkins 2.0
Java (latest is good)Jenkins war fileSupport toolsMaven NunitNugetGit
For Testing we can integrate…

The best way to map a @OneToOne relationship with JPA and Hibernate

One-To-One Shared Primary Key Relationship One to one relationship refers to the relationship between two entities/tables A and B in which one item/row of A may be linked with only one item/row of B, and vice versa. In this example, book and book_detail tables have a one-to-one relationship. A book has only one book detail, and a book detail belong to only one book. book_detail.book_id is a foreign key references to book_detail also uses its foreign key book_id as primary key so-called shared primary key.
@Id declares the entity identifier. @Column maps the entity's field with the table's column. If @Column is omitted, the field name of the entity will be used as column name by default. @OneToOne defines a one-to-one relationship between 2 entities. @JoinColumn defines foreign key column and indicates the owner of the relationship. mappedBy indicates the inverse of the relationship. unique = true enforces the unique constraint, 1 address belongs to only 1 library. @MapsId de…