JQuery ajax GET request call

Below is the example of an jQuery ajax call. It’s making a GET request. <head> <script> $( document ).ready(function() { $( “#mainMenuArea” ).load( “html/mainMenu.html” ); $.ajax({url: “http://localhost:8080/services/usersproducts/allproduct”, success: function(result){ var productArray = result.products $( “#div_appArea” ).append(“<table>”); $( “#div_appArea” ).append(“<tr><th>Mobile No<th><th>Possession Status<th>”); $( “#div_appArea” ).append(“<th>Company Name<th><th>Recommended<th></tr>”); $( “#div_appArea” ).append(“<th>User Product Id<th><th>Recommended<th></tr>”); for(var i in productArray){ $(… Continue reading JQuery ajax GET request call

Published

Immutable objects

An immutable object is an object whose state cannot be modified after its creation. Once object is created, you can not change the properties of it. Immutable object is sort of design pattern. We have to follow certain rules or patterns to create immutable objects. In java, once you initialized an object , you’ll never… Continue reading Immutable objects

Published

JMS Implementation

Java Messaging Service API to send messages between different components. We can see the definition of it in many places.So we’re skipping to define it. We are just going to see the various implementations of sending and receiving messages. As we know, we have two JMS mechanisms, Queue and Topic. Now we will just explore… Continue reading JMS Implementation

Published

Hibernate Mapping

Hibernate is a ORM framework which will map our database tables into our POJO classes. By this, we can do the database operations like insert, update, select and etc. When we come to hibernate mapping, we have the below relationships between entities as in RDBS, OneToOne OneToMany ManyToOne ManyToOne We can wire the relationships between… Continue reading Hibernate Mapping

Published

Backbone JS Simple Application

BackboneJS is a light weight JavaScript library that allows to develop and structure client side applications that run in a web browser. It offers MVC framework which abstracts data into models, DOM into views and bind these two using events. This example illustrates the Simple Backbone JS application. The main components of Backbone JS we’ve… Continue reading Backbone JS Simple Application

Published

Spring Singleton vs Prototype

                            Bean scopes will be specified by the scope attribute of the <bean/> element. We will see the example as we go down to this article. Spring bean has 5 different scopes which we listed below, Singleton Prototype  Global Session Application When… Continue reading Spring Singleton vs Prototype

Published

Communication between Backbone Views

There are few ways to communicate between two backbone views and model. Consider an application contains Menu view and you want to update the application area based on the menu selection. For example, consider an e-commerce application which contains the following views. 1. MenuView 2. Recharge View 3. Shopping View 4. Book Ticket View For… Continue reading Communication between Backbone Views

Published

MongoDB with Spring framework

As we know, MongoDB is a no-SQL database. Before looking at the example of MongoDB with spring framework, we need to know few things about it.We can go for mongodb instead of relation databases, when your data is sort of document data which means you just need to open the document, do the changes and… Continue reading MongoDB with Spring framework

Published

Installing NOOBS in SD card

To use Raspberry device, we need NOOBS boot loader to install any IoT Operating system such as Raspbian or Ubuntu mate. Following are the steps to install the NOOBS in SD card. 1. Insert an SD card that is 4GB or greater in size into your computer.(Preferred to use SD card adapter or SD Card… Continue reading Installing NOOBS in SD card

Published