Skip to main content

Posts

RabbitMQ Setup on Windows

This tutorial will help you to Setup RabbitMQ on Windows  machine. You must have administrative privileges to install the application on your Windows machine. Before proceeding, please read two main prerequisite from the official site of the RabbitMQ - Important: T he Erlang installer  must be run using an administrative account  otherwise a registry key expected by the RabbitMQ installer will not be present. Your system should only have one version of Erlang installed. Please consult the  Windows-specific Issues  page. RabbitMQ runs on the ErLang  platform, so first we need to download and install ErLang(Also known as OTP) on the system.  Please download the required version of the ErLang/OTP from the official site  and simply install it as Admin . I have downloaded OTP version 22.3 of 64 bit windows installer file. Once ErLang install, please download the RabbitMQ from the official site and then install it with admin privileges. ...

Git: Creating new branch on local machine and pushing to remote

To create a new branch from the existing branch i.e. master branch, you need to first clone the branch/repository on your local machine. Clone a branch -  git clone <complete-repository-url> Creating new local branch -  git checkout -b <branch-name> //Creates new branch on local machine with specified name. git branch //List all the branches on local. Push/Update local branch to remote -  This step is very necessary as you have to update the local branch on remote as well. Your created branch will not be visible/updated to remote until running below command - git push origin HEAD Now you have pushed your local branch to remote. You can list all remote branches using below command - git branch -r Below two steps are optional. Set upstream to local branch -  Below command is used to set upstream to the newly created branch. If you do not set the upstream to your created branch, all the time you commits, you wi...

IIS Server | Enabling IIS Server on Windows

There are several servers available for deploying your application. In this tutorial we will look at how we can enable/activate IIS(Internet Information Services) Server on Windows machine. Note:- You must have admin permission to your machine. Please follow below steps to enable IIS Server on your Windows system - 1:- Open control panel and click on Programs and Features option. 2:- On Programs and Features window, choose Turn Windows features on or off option from left panel. 3:- On Windows Feature screen, tick the Internet Information Services   checkbox option and click OK button. 4:- Open browser and open http://localhost URL. You should be able to see the below page- That's all. IIS Server is enabled on your machine now. Hope this will help you.  Suggestions are most welcome. Keep visiting my blog :)

Tomcat SSL Configuration and HTTP to HTTPS Redirect

SSL(Secure Sockets Layer)- Apache Documentation says " Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), are technologies which allow web browsers and web servers to communicate over a secured connection. " This means that the data being sent is encrypted by one side, transmitted, then decrypted by the other side before processing. This is a two-way process, meaning that both the server AND the browser encrypt all traffic before sending out data. Setting Up Environment-  In-order to continue this tutorial, we required tomcat in our system. You can download install-able file (.exe or .msi in case of Windows OS) or binaries files in form of .zip or .tar.gz from  here . If you have downloaded install-able file then install it. If you have downloaded zip, then extract the compressed download file at your favorite location/path. If you have installed the file then hit http://localhost:8080 , you should be able to see web-page something like...

Java Socket Basics(Socket Programming in Java) Part-2(UDP)

Hi friends, We are going to discuss about UDP Socket Programming . In previous post  we discussed about the differences between TCP & UDP and the sample example of TCP Socket Programming. Below is the sample example of chat application using UDP  Socket Programming . UDP Sample :-  We are going to create an small example which contains two classes. UdpServer.java:-  This is a server class. Means this class will serve the purpose of socket connection. DatagramSocket is the java class and serve the purpose of Server and Client both. The overloaded constructor of DatagramSocket class matters. DatagramPacket is the java class which is responsible to transmit the data/packet over the network from server to client and vice-versa. UdpClient.java:-  This is client class. This serves the purpose of client which will communicate to server and send data to server and receive the data sent by server. UdpServer.java import java.net.DatagramPac...

Java Socket Basics(Socket Programming in Java) Part-1(TCP)

Hi friends, This post is about the Java Socket Programming . I know there are a lot of article and post are available over the internet about Java Socket Programming but all the content like the perquisite of socket programming, example of TCP and UDP is here at one place. So first question, what is TCP and UDP and what is the difference between these two. See below- Perquisite:- There are several things related to socket programming in java which you must not ignore... Do not forget to close the stream or socket connection when the related task is done. Recommended to use try with resource  whenever it is possible. If you are not dealing with  try with resource , then it is highly recommended to close all the resources and related sockets in finally block. java.net.SocketException: Too many open files::   This is an usual exception which generally thrown by Socket. So the question is What may be the possible reasons for  this exception. So go...

JavaFX WebView- Creating Browser Sample

Hi Friends, In this post, i am going to give an overview about JavaFX WebView . This is an embedded browser component which is based on WebKit . If allow you to use Css, JavaScript, HTML5 and more to customise your embedded browser. The embedded browser enables you to perform the following tasks in your JavaFX applications: Render HTML content from local and remote URLs Obtain Web history Execute JavaScript commands Perform upcalls from JavaScript to JavaFX Manage web pop-up windows Apply effects to the embedded browser  I am going to provide and explain you a sample example to create your embedded browser. This is a JavaFX sample example. if you want to take an introduction about JavaFX please visit my previous blog . I have use IntelliJ Idea IDE for this example. You can visit this link  to understand how to create JavaFX application. I am attaching the project structure image below- In this sample- we have two java class. ...