Yogesh
Name: Yogesh
Score: 53.01
Last Seen: 983 days, 5 hours, 32 minutes ago
Member Since: 14 August, 2011
JavaPins
atom rss
5
Pins

Spring to Java EE – A Migration Experience | OCPSoft

published 981 days, 20 hours, 6 minutes ago posted by vasantvasant 988 days, 17 hours, 55 minutes ago
Monday, August 15, 2011 3:43:37 PM GMT Monday, August 08, 2011 5:54:32 PM GMT
So Java EE 6 is out, and you’ve decided to give it a go. You’re trying to port an existing application over to the new stack (or are trying to create a new one for the first time,) but exceptions are bursting through the seams and you just can’t seem to get things to work. If you’re familiar with Spring and Hibernate (with all the joy that is OpenSessionInView or OpenSessionInConversation,) more than likely the problems you’re having are related to the Java Persistence API (JPA), combined with Enterprise... (more)
category: Java EE | clicked: 7 | comment | | source: ocpsoft.com
tags: Spring
4
Pins

Spring AOP: A Go through with Simple Example « nIKUNJ P

published 981 days, 22 hours, 47 minutes ago posted by ankyanky 988 days, 19 hours, 8 minutes ago
Monday, August 15, 2011 1:02:23 PM GMT Monday, August 08, 2011 4:41:38 PM GMT
nIKUNJ PHOMEAboutSpring AOP: A Go through with Simple Example AOP concepts I am assuming that you are aware of what is Aspect Oriented Programming and its use in applications. I will briefly describe some AOP concepts and terminology. These terms are not Spring-specific.Aspect:  It is a general feature that you can apply to your application globally. It allows you to add common behaviour to your module without interfering in your business logic. (like logging, performance monitoring, exception handling... (more)
category: Spring | clicked: 4 | comment | | source: nikunjp.wordpress.com
tags: Spring
5
Pins

Maven + Spring hello world example

published 982 days, 5 hours, 9 minutes ago posted by adminadmin 988 days, 16 hours, 50 minutes ago
Monday, August 15, 2011 6:40:10 AM GMT Monday, August 08, 2011 6:59:25 PM GMT
print This quick guide example will use Maven to generate a simple Java project structure, and demonstrates how to retrieve Spring bean and print a “hello world” string. Technologies used in this article :Spring 2.5.6Maven 3.0.3Eclipse 3.6JDK 1.6.0.13Spring 3 example For Spring 3, refer to this Maven + Spring 3 hello world example.1. Generate project structure with Maven In command prompt, issue following Maven command :mvn archetype:generate -DgroupId=com.mkyong.common -DartifactId=SpringExamples ... (more)
category: Spring | clicked: 9 | comment | | source: www.mkyong.com
tags: Spring
5
Pins

Dear Oracle, can we have our nice javadoc URLs back? « bertrand’s brain grep

published 983 days, 2 hours, 45 minutes ago posted by vasantvasant 988 days, 18 hours, 10 minutes ago
Sunday, August 14, 2011 9:05:01 AM GMT Monday, August 08, 2011 5:39:09 PM GMT
If you support this request, please vote for it in the comments below and/or on twitter using the #E17476 hashtag! Update (2010/07/24): it looks like the old java.sun.com URLs are back, thanks Oracle and especially @mreinhold! Update (2010/07/27): see also Good Feedback and Happy Endings – The Ugly URLs. Dear Oracle, A while ago you bought Sun, and IIRC promised to do good things for Java. Or at least indicated you would. Or something like that. Now, a bad thing happened a few days ago. Not a bad ba... (more)
category: JAVA | clicked: 5 | comment | | source: grep.codeconsult.ch
tags: Javadocs
8
Pins

10 Best Check Username Availability In PHP Using Ajax And JavaScript | ZoomZum

published 981 days, 20 hours, 6 minutes ago posted by ankyanky 988 days, 19 hours, 26 minutes ago
Monday, August 15, 2011 3:43:37 PM GMT Monday, August 08, 2011 4:23:05 PM GMT
DevelopmetMeenu3 Comments In this list we are going to share check username availability in for PHP developers using Ajax and JavaScript. Using this code in project and applications to make its more easy and simple.  This is very good way to check username available or not in the database system. If typed username is available in application’s database then error will show to users. This is the great way to processing username availability. Its very useful script for PHP developers. This script using J... (more)
category: Ajax | clicked: 2 | comment | | source: zoomzum.com
tags: Ajax
5
Pins

Don't Use Java 7? Are you kidding me? | Javalobby

published 984 days, 1 hour, 39 minutes ago posted by ankyanky 988 days, 20 hours, 11 minutes ago
Saturday, August 13, 2011 10:10:08 AM GMT Monday, August 08, 2011 3:38:10 PM GMT
We Recommend These ResourcesReference Guide—LucidWorks for Solr Certified Distribution Oracle Java.net 2 (DZ Promo)Build Windows Azure apps for PHP, Ruby, & Java - Using EclipseNational Information Exchange ModelGWT Style, Configuration and JSNI Reference Java 7 was released yesterday and some guys from the Apache Lucene & Apache Solr community quickly came up with a couple of issues which lead them to the point where they are actively rejecting Java 7 and advice anybody else to to likewise. ... (more)
category: JAVA | clicked: 6 | comment | | source: java.dzone.com
tags: Java7
5
Pins

What happens if you call destroy() from init() in java servlet?

published 981 days, 20 hours, 6 minutes ago posted by vinaykumarvinaykumar 988 days, 20 hours, 11 minutes ago
Monday, August 15, 2011 3:43:37 PM GMT Monday, August 08, 2011 3:38:19 PM GMT
destroy() gets executed and the initialization process continues. It is a trick question in servlets interview. In java servlet, destroy() is not supposed to be called by the programmer. But, if it is invoked, it gets executed. The implicit question is, will the servlet get destroyed? No, it will not. destroy() method is not supposed to and will not destroy a java servlet. Don’t get confused by the name. It should have been better, if it was named onDestroy(). The meaning of destroy() in java servlet i... (more)
category: Java EE | clicked: 10 | comment | | source: javapapers.com
tags: Servlet
4
Pins

Graham Hacking Scala: How to Create a Webapp with Scala, Spring, Hibernate and Maven in Late 2011

published 984 days, 1 hour, 39 minutes ago posted by ankyanky 988 days, 19 hours, 46 minutes ago
Saturday, August 13, 2011 10:10:08 AM GMT Monday, August 08, 2011 4:03:26 PM GMT
Way back in the ancient history of January 2010, I wrote a walk-through of how to create a webapp with Scala, Spring Hibernate and Maven. As with all things, technologies have progressed, as have other things, including the way code is shared online. So I decided it was time to update the code form that post and share it somewhere more modern. You can now find my code for starting a Scala + Spring + Hibernate + Maven Webapp on GitHub. At the time of writing, this project uses Scala 2.9.0-1, Spri... (more)
category: ORM | clicked: 8 | comment | | source: grahamhackingscala.blogspot.com
tags: Hibernate, Spring
3
Pins

Bozho's tech blog » The most common mistake when using dependency injection frameworks

published 983 days, 2 hours, 45 minutes ago posted by ankyanky 988 days, 19 hours, 6 minutes ago
Sunday, August 14, 2011 9:05:01 AM GMT Monday, August 08, 2011 4:43:52 PM GMT
I’ve been answering spring and CDI questions on stackoverflow quite a lot, and what I notice as a recurring mistake (or misconception) is that people aren’t aware that they should not instantiate the objects in which they want their dependencies injected. They assume that when they do Foo foo = new Foo(), the dependencies of Foo will be injected by spring. No, they won’t be. Here’s an excerpt from an answer of mine to such a question: First, and most important – all spring beans are managed – they “li... (more)
category: Spring | clicked: 7 | comment | | source: techblog.bozho.net
tags: Spring
6
Pins

Download the Common Java Cookbook | Discursive

published 981 days, 20 hours, 6 minutes ago posted by vasantvasant 988 days, 17 hours, 54 minutes ago
Monday, August 15, 2011 3:43:37 PM GMT Monday, August 08, 2011 5:55:32 PM GMT
Home The Common Java Cookbook is available to download as a PDF for registered users. If this page does not list the download link for Commons Java Cookbook, you will need to login. If you already have an account, click here to Login.If you have not registered for an account with Discursive, click here to create a new account. Tags: common java cookbook, Common Java CookbookView the discussion thread. (more)
category: JAVA | clicked: 27 | comment | | source: www.dzone.com
tags: CookBook
7
Pins

Java OutOfMemoryError – A tragedy in seven acts | codecentric Blog

published 981 days, 22 hours, 47 minutes ago posted by vasantvasant 988 days, 17 hours, 47 minutes ago
Monday, August 15, 2011 1:02:23 PM GMT Monday, August 08, 2011 6:02:59 PM GMT
AgileArchitectureECMJavaPerformanceHomepage AgileAgile TestingeXtreme ProgrammingScrumArchitectureCloudFlexible ArchitecturesLightweight Enterprise ArchitectureConferencesAgile Testing DaysdevoxxJAXmeet the expertsGeneralMathematicians viewiOSIT-GovernanceJavaClean CodeMobileSpringWebPerformanceJava OutOfMemoryError – A tragedy in seven acts January 5, 2010 by Mirko Novakovic One day every professional Java programmer will suffer from this exception thrown by his Java application: java.lang.OutOfMemo... (more)
category: JAVA | clicked: 11 | comment | | source: blog.codecentric.de
tags: Error, tragedy
5
Pins

Learn Java 7 | Ramki Java Blog

published 982 days, 5 hours, 9 minutes ago posted by adminadmin 988 days, 16 hours, 58 minutes ago
Monday, August 15, 2011 6:40:10 AM GMT Monday, August 08, 2011 6:51:28 PM GMT
Java 7  is an upcoming major update to Java, releasing on July 28, its upgrade/add many features. Upgraded Features Java 7 update the XML and Web Service stack to current stable build JAXPJAXB 2.2 and JAX-WS Update the Nimbus Look and Feel (Next Cross Platform UI). Its already added Java 6 Update 10. check here Translucent and shaped Windows        This feature is also included in java 6 update 10.  this features provide to create transparent and any shape window in java. for more i... (more)
category: JSF | clicked: 6 | comment | | source: www.ramkitech.com
tags: JSF
6
Pins

Spring Dependency Injection (DI)

published 981 days, 22 hours, 47 minutes ago posted by adminadmin 988 days, 16 hours, 51 minutes ago
Monday, August 15, 2011 1:02:23 PM GMT Monday, August 08, 2011 6:58:45 PM GMT
print In Spring frameowork, Dependency Injection (DI) design pattern is used to define the object dependencies between each other. It exits in two major types :Setter InjectionConstructor Injection1. Setter Injection This is the most popular and simple DI method, it will injects the dependency via a setter method.Example A helper class with a setter method.packagecom.mkyong.output;   importcom.mkyong.output.IOutputGenerator;   publicclass OutputHelper { IOutputGenerator outputGenerator;   publicv... (more)
category: Spring | clicked: 10 | comment | | source: www.mkyong.com
tags: Spring
2
Pins

What features of Java have been dropped in Scala? - Java Code Geeks

published 982 days, 5 hours, 9 minutes ago posted by anujaanuja 987 days, 20 hours, 38 minutes ago
Monday, August 15, 2011 6:40:10 AM GMT Tuesday, August 09, 2011 3:11:28 PM GMT
Despite more complex and less intuitive syntax compared to Java, Scala actually drops several features of Java, sometimes for good, other times providing replacements on the standard library level. As you will see soon, Scala isn't a superset of Java (like Groovy) and actually removes a lot of noise. Below is a catalogue of the missing features. break and continue in loops Every time I see code like this: while(cond1) { work(); if(cond2) continue; rest(); } I feel as if it... (more)
category: JAVA | clicked: 7 | comment | | source: www.javacodegeeks.com
tags: Java, Scala
7
Pins

Factory Method design pattern in Java | Tech Samosa

published 981 days, 20 hours, 6 minutes ago posted by vinaykumarvinaykumar 988 days, 20 hours, 38 minutes ago
Monday, August 15, 2011 3:43:37 PM GMT Monday, August 08, 2011 3:12:03 PM GMT
The factory method pattern is an object-orienteddesign pattern to implement the concept of factories. Like other creational patterns, it deals with the problem of creating objects (products) without specifying the exact class of object that will be created. The creation of an object often requires complex processes not appropriate to include within a composing object. The object’s creation may lead to a significant duplication of code, may require information not accessible to the composing object, may n... (more)
category: Architecture | clicked: 12 | comment | | source: techsamosa.com
tags: Design Pattern
4
Pins

7 new cool features in Java 7 @ sellmic.com

published 983 days, 2 hours, 45 minutes ago posted by ankyanky 988 days, 19 hours, 33 minutes ago
Sunday, August 14, 2011 9:05:01 AM GMT Monday, August 08, 2011 4:16:29 PM GMT
The evolution of the Java language and VM continues! Mark Reinhold (Chief Architect of the Java Platform Group) announced yesterday that the first release candidate for Java 7 is available for download, he confirms that the final released date is planned for July 28. For a good overview of the new features and what’s coming next in Java 8, I recommend this video on the Oracle Media Network, which features Adam Messinger, Mark Reinhold, John Rose and Joe Darcy. I think Mark sums up Java 7 very well whe... (more)
category: JAVA | clicked: 12 | comment | | source: sellmic.com
tags: Java7
8
Pins

Lightbox Jar « harryjoy

published 975 days, 17 hours, 13 minutes ago posted by harryjoyharryjoy 984 days, 6 hours, 31 minutes ago
Sunday, August 21, 2011 6:36:54 PM GMT Saturday, August 13, 2011 5:18:34 AM GMT
LightBox.jar--- Jar that helps you providing light box like effect in your desktop  application built in swing. You may have seen light box effects on a website but very rarely have seen light box effect in a desktop application specifically in applications that are built in java swing.  This jar helps you put light box like effect into your swing application. So now you can also give same light box effect as on your website to your desktop application made in swing. (more)
category: JAVA | clicked: 35 | comment | | source: harryjoy.wordpress.com
9
Pins

Improved and Better Exception Handling from Java 7

published 979 days, 17 hours, 25 minutes ago posted by anujaanuja 984 days, 16 hours, 39 minutes ago
Wednesday, August 17, 2011 6:24:21 PM GMT Friday, August 12, 2011 7:10:32 PM GMT
So as a continuation of my previous post Features from Java-7 that you will love being a developer, today I am going to introduce the very new Improved Exception Handling in Java SE 7. I)Mutiple Exceptions handling Before the launch of Java SE 7 we were habitual of writing code with multiple catch statements associated with a try block. A very basic Example: try { // some instructions } catch(ATypeException e) {} catch(BTypeException e) { } catch(CTypeException e) { } ... (more)
category: JAVA | clicked: 25 | comment | | source: code-on.blogspot.com
tags: Exception, Java
6
Pins

Character counter in JavaScript « harryjoy

published 975 days, 23 hours, 59 minutes ago posted by anujaanuja 984 days, 2 hours, 3 minutes ago
Sunday, August 21, 2011 11:51:00 AM GMT Saturday, August 13, 2011 9:46:10 AM GMT
harryjoy1 Comment This is about creating a character counter for textarea and limit it accordingly. You may have seen this kinda stuff in some messaging site mostly in sites which provides SMS facilities. They limit us to enter only specified number of characters in text area. Also in some sites there are limitation on characters in comments. So this article will help you in building a similar thing which will look like below picture: Character counter for text area in JavaScript Step 1 create a text ... (more)
category: Ajax | clicked: 3 | comment | | source: harryjoy.wordpress.com
tags: Ajax, JavaScript
4
Pins

Some useful JavaScript functions « harryjoy

published 982 days, 6 minutes ago posted by anujaanuja 984 days, 2 hours, 4 minutes ago
Monday, August 15, 2011 11:44:01 AM GMT Saturday, August 13, 2011 9:45:15 AM GMT
harryjoyLeave a Comment Some JavaScript techniques and functions that will be helpful in web development. 1. Toggling visibility of a table or a div or any other element: function toggle(divid) { var el = document.getElementById(divid); if ( el.style.display == 'none' ) {  el.style.display = 'block';} else {el.style.display = 'none';} } Remove all child nodes of an element: var Parent = document.getElementById('elementId'); while(Parent.hasChildNodes()) { Parent.removeChi... (more)
category: Ajax | clicked: 10 | comment | | source: harryjoy.wordpress.com
tags: Ajax
Previous 1 2 Next