Posts

Showing posts from June, 2013

A Brief Description about Web Services

Web Services: --------------------------- Why we need to go with Webservices? A: WebServices is one of the Distributed Technology like EJB and RMI. Problem with EJB and RMI: ------------------------- -->Language Dependent -->Robust -->Heavy Weight Benefits with WS: --------------------- WS is Interoperable which means Language Independent and Platform Independent and provide Enterprise services like other technologies EJB and RMI. WS flow: ------------ For Example what we need for communication b/w two persons? like we need --> Two persons --> Medium --> Language --> Rules (protocol). like that if two applications need to communicate we need --> Consumer : which consumes(using) the services --> Provider : Service provider --> protocaol : HTTP, FTP and SMTP. ( In internat world we prefer HTTP) --> Language : XML --> Medium : both applications should be connected (network). So the final conclusion is: "The Consumer will send XML to co...

Dispatcher Servlet Configuration in Spring and log4j Configuratin

Log4J : --------------- log4j.properties log4j.rootLogger=ERROR,console #Console Appender  log4j.appender.console=org.apache.log4j.ConsoleAppender log4j.appender.console.layout=org.apache.log4j.PatternLayout log4j.appender.console.layout.ConversionPattern=[%5p] [%t %d{hh:mm:ss}] (%F:%M:%L) %m%n #Custom assignments log4j.logger.controller=DEBUG,console log4j.logger.service=DEBUG,console log4j.logger.dao=DEBUG,console #Disable additivity log4j.additivity.controller=false log4j.additivity.service=false log4j.additivity.dao=false web.xml: -------------------- we can configure Dispatcher Servlet and context config location like as follows <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee ht...

Spring - Hibernate Integration Jars with Maven(POM)

<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/maven-v4_0_0.xsd">   <modelVersion>4.0.0</modelVersion>   <groupId>org.krams.tutorial</groupId>   <artifactId>spring-hibernate-mysql</artifactId>   <packaging>war</packaging>   <version>1.0.0-SNAPSHOT</version>   <name>spring-hibernate-mysql Maven Webapp</name>   <url>http://maven.apache.org</url>   <dependencies>   <dependency>   <groupId>junit</groupId>   <artifactId>junit</artifactId>   <version>4.8.1</version>   <type>jar</type>   <scope>compile</scope>   </dependency>   <dependency>     <groupId>org...