July 12, 2017

Ranveer Shaves off Beard to a Heavy Stubble, Becomes Young Khilji

Ranveer Singh is always known to give his 100 percent for every film and part. To become the one of his kind super villain Alauddin Khilji in Padmavati, Ranveer grew a thick beard, which he has sported at recent public appearances too. He also underwent rigorous physical training to bulk up and look like a menacing, ruthless warrior and conqueror, every bit the committed actor. His bearded look also set fashion trends.

July 10, 2017

Zayed Khan to make TV debut!

After making Bollywood debut with 'Chura Liyaa Hai Tumne', Zayed Khan did several films like 'Main Hoon Na', 'Yuvvraaj, 'Mission Istaanbul', however he failed to make it big at the box office. Now we heard, the actor is all set to start second innings in acting with a finite TV series..

July 09, 2017

RIP Jenny.. *cries*

In tears we saw you sinking, and watched you pass away.
Our hearts were almost broken, we wanted you to stay.

July 06, 2017

BARC Ratings (Impressions)- Week 26, 2017

What is the difference between SLF4J, Logback and LOG4J?

Logically these are entirely two different things.

SLF4J (Simple Logging Facade For Java) is not a logging component and it does not do the actual logging. It is only an abstraction layer to an underlying logging component. Where as Log4j is a logging component and it does the logging instructed to do.

July 04, 2017

OMG! Pankit and Praachi Thakker end their 17-year long marriage!

It appears that there are rocky roads ahead for Pankit and Praachi Thakker's love boat. The tight knit couple seem to be experience turbulence in their relationship since  2015. Rumor has it that the couple has been living in separate homes for nearly two years now and are heading for a divorce in the near future.

In a recent social media post, Pankit vented his feeling stating, "Never blame the other person for your personal choices; you are still the one who must live out the consequences of your choices."

July 03, 2017

J2EE Patterns

J2EE Design Patterns
  • MVC Pattern
  • Business Delegate Pattern
  • Composite Entity Pattern
  • Data Access Object Pattern
  • Front Controller Pattern
  • Intercepting Filter Pattern
  • Service Locator Pattern
  • Transfer Object Pattern
MVC Pattern
MVC is abbreviation of Model-View-Controller. Models are basically POJO's, which are used as blueprints/models for all of the objects that will be used in the application. Views represent the presentational aspect of the data and information located in the models. And the Controllers controls both of these.

Controller serve as a connection between the Model and View. It instantiate, update and delete models, populate them with information, and then send the data to the views to present to the end-user.

Front Controller Pattern
Upon sending a request, the Front Controller is the first controller it reaches. Based on the request, it decides which controller is the most adequate to handle it, after which it passes the request to the chosen controller. The Front Controller is most often used in Web Applications in the form of a Dispatcher Servlet.

Business Delegate Pattern
This pattern is used to decouple the presentation layer from the business layer. It is basically use to reduce communication or remote lookup functionality to business tier code in presentation tier code. In business tier we have following entities.

  • Business Service: Business Service interface. Concrete classes implement this business service to provide actual business implementation logic.
  • LookUp Service: Lookup service object is responsible to get relative business implementation and provide business object access to business delegate object.
  • Business Delegate: A single entry point class for client entities to provide access to Business Service methods.
  • Client: Presentation tier code may be JSP, servlet or UI java code.



Composite Entity Pattern
A Composite entity is an EJB entity bean which represents a graph of objects. When a composite entity is updated, internally dependent objects beans get updated automatically as being managed by EJB entity bean. Following are the participants in Composite Entity Bean.
  • Dependent Object: Dependent object is an object which depends on coarse grained object for its persistence lifecycle.
  • Coarse-Grained Object: This object contains dependent objects. It has its own life cycle and also manages life cycle of dependent objects.
  • Composite Entity: It is primary entity bean. It can be coarse grained or can contain a coarse grained object to be used for persistence purpose.
  • Strategies: Strategies represents how to implement a Composite Entity.



Service Locator Pattern
A pattern often seen in Web Applications, the Service Locator pattern is used to decouple the Service Consumers and the concrete classes like DAO implementations.

The pattern looks for the adequate service, saves it in cache storage to reduce the number of requests and therefore the strain on the server and provides the application with their instances.

-K Himaanshu Shuklaa..

July 01, 2017

Correlated Subqueries

A correlated subquery is a subquery that uses the values of the outer query, i.e it depends on the outer query for its values. Because of this dependency, a correlated subquery cannot be executed independently as a simple subquery.

June 29, 2017

A simple Hibernate Example with Maven, Eclipse and SQLServer..

Go to the command prompt execute the following command to generate Maven compatible Java project named as 'HibernateSLC'
mvn archetype:generate -DgroupId=com.khs.scrutiny -DartifactId=HibernateSLC -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

Above command will tell Maven to create a Java project from “maven-archetype-quickstart” template. If you ignore the archetypeArtifactId argument, a list of the templates will be listed for you to choose.

To convert Maven project to support Eclipse IDE, on the command prompt navigate to 'HibernateSLC' and execute below command:
mvn eclipse:eclipse

BARC Ratings (Impressions)- Week 25, 2017

Param Singh is one of the finest actor, says Saurabh Tiwari

The immensely talented actor  Param Singh, who is seen essaying the title role in Life OK’s show Ghulaam is not only winning the hearts of the audience, but has also secured a special place in the hearts of the show producer Saurabh Tiwari and his co-actors.

June 20, 2017

Arjun Rampal debuts as screenplay writer with Arun Gawli biopic, Daddy!

Arjun Rampal's much awaited film, Daddy is a biopic on gangster-politician Arun Gawli. Besides co-producing the project, Rampal has also forayed into script writing with this movie. He has been credited for co-writing the screenplay along with director Ashim Ahluwalia.