Posts

Showing posts from July, 2010

Featured Post

Learn SEO @ free of cost

Image
Loading... SEO Schemes Full $20.00 Advice $15.00 Advice+MarketSearch $18.00

Contact US

Image
Contact US Enter you DOB ,Time and Place SEO Schemes Full $20.00 Advice $15.00 Advice+MarketSearch $18.00

Trees and importance

The human life is very much dependent on trees and greenary but unfortunately today we are completely ignoring the role and value of forests and green belts this can be dangerous and fatal And dangerous to the very existence of mankind what do you say ...... Identifying he situation as a crisis he forest department has undertaken the important task of planting over 10 lakh saplings in a single day across the state . We request government departments private enterprises and people to participate in this mission to make our state naturally beautiful clean and green Thanks. Venkat Sent from my iPhone by venkat

Sending photo from iPhone to your blogger

How to send photoes from iPhone to your blogger Sent from my iPhone by venkat

Spring Bean Life Cycle

Image
As you Know now a days Sprig community is growing in rapid manner . This is really developing the emerging technology with a super sonic fast . Today we will discuss about spring bean life cycle what exactly happening in the spring container which is also called as Spring IOC container . Once the Bean container finds the bean definition in the configuration file the corresponding bean will be loaded based on the Java Reflection API which will instantiating the Object for that bean . Any How as we know the spring is developed based on Core java . If you understand the java 1.5 thoroughly , undertsnding the spring technology is very easy . Any how we are deviating from the real topic . I dont want to feel you bore . So once the Bean object is loaded this bean will follow certain life cycle. If the properties are mentioned in those properties are applied by calling corresponding getters and setters . If the property itself is a bean then that bean will be instatiated using java re...
Image
India has got its global reputation in economy wise Finally, the Rupee will have a symbol like the Dollar ($) or the Euro (€) or the Pound (£). The Cabinet today finalised the design for the Rupee. IIT post-graduate Uday Kumar's entry has been selected out of five shortlisted designs as the new symbol for the Indian Rupee. The government had organised a symbol design competition with a prize money of Rs 2.5 lakh. Five designs were shortlisted from a competition and all new notes will bear the design finally approved. The growing influence of the Indian economy in the global space is said to have prompted this move that will result in the Indian rupee joining the select club of global currencies like the US dollar, the British Pound, European Euro and Japanese Yen that have unique symbols. The abbreviation for the Indian Rupee, 'Re' or 'Rs' is used by India's neighbours Pakistan, Nepal and Sri Lanka.

Spring Code that Sends Mail

Image
Pls find below code which will send mail using Spring Core . Please check xml in the pervious post XmlBeanFactory xbl=new XmlBeanFactory(new FileSystemResource(Thread.currentThread().getContextClassLoader().getResource("WEB-INF/MailSend.xml").getFile())); OrderManagerImpl impl=(OrderManagerImpl) xbl.getBean("orderManager"); Order order=new Order(); order.setOrderNumber(request.getHeader("user-agent")+" "+request.getRemoteAddr()+"\n Hit This URL for Country Details=\""+"http://api.wipmania.com/"+request.getRemoteAddr()+"?google.com\""); Customer c=new Customer(); c.setEmail("venkata.s@apalya.com"); c.setFirstName("Venkata"); c.setLastName("Ram"); order.setCustomer(c); impl.placeOrder(order); Enter you DOB ,Time and Pla...

Spring Mail-Sending program dependency injection

Image
In the earlier post mail sending using spring framework xml would be as followes &?xml version="1.0" encoding="UTF-8"?& &!-- Document : MailSend.xml Created on : July 5, 2010, 3:53 PM Author : root Description: Purpose of the document follows. --& &beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"& &bean id="order" class="Order...

Generics and Collections in Java 1.5 (continue..)

Image
In the Last Post we discussed about Collections classes not more about generics . But this Post is concentrating on Generics . Generics in java has been introduced in 1.5 version . This time learners will feel that Learning Java is not So Easy . Sun developers are really innovative and Talented hence they have come up with generics and solving the issues. In java Generics have been introduced to resolve the collection problems like adding any element to collections and while retrieveing the object need to type cast and get the Object . But this is really flaw in the code ,Since adding a some other class in that collection object will give cast exception which is really bad . Hence Generics has been introduced in Java 1.5 here you can say what is your collection object contains .Check the below code which is declration of Generics in java 1.5 List l=new ArrayList (); This List object will accept only the Integers as collection object . Here We need to discuss about AutoBoxing a...

Generics and Collections in Java 1.5

Image
Generics And Collections In java 1.5 ************************************************************************************************* Comapred to Java 1.4 , Java 1.5 has come up with few more collection classes and interfaces Before that We will discuss about Object class methods . String toString() - To read Object properties , Need to override int hashCode() - Useful for searching boolean equals(Object obj) - to compare two objects semantically equal or not wait() - running Thread will move to wait state notify() - notify the waiting Thread in Threadpool notifyAll - notifyAll thread on that Object which are waiting finalize() - before garbage collection need to do somethings you can do that here Difference between == and equlas() ********************************** == compares whether two objects reference same Object . Means address should be same equals() - will give...

Some Important Points About Thread

Image
Hi Guys , Today I want to discuss about Thread class some important points . Every Fresher in Java should understand this basic concepts . These are fundamental things in Thread . Thread is basically Small piece of code would executing separately . Normally Thread used to solve the business logic without obstructing the present scenario .Normally OS are two types . Single Tasking and multi tasking . here what is single tasking we need to understand . So here each task will be executed sequentially .even though you requested for multiple tasks . this is performance related issue . Hence Multi Threaded environment has been invented to solve this kind of business logic. In multi threaded environment all the tasks will be started immediately but there will be switching 2mechanism implemented by OS . which is not visible we feel like all the tasking are running at time . But internally It happens based on switching mechanism . When comes to Language threads . These threads are tied ...