pankajsharma
Name: pankajsharma
Score: 16,519.01
Last Seen: 620 days, 7 hours, 35 minutes ago
Member Since: 13 August, 2011
JavaPins
atom rss
1
Pins

JSF - PrimeFaces Hello World Application

published 620 days, 2 hours, 27 minutes ago posted by pankajsharmapankajsharma 620 days, 7 hours, 43 minutes ago
Saturday, August 11, 2012 7:14:13 PM GMT Saturday, August 11, 2012 1:57:57 PM GMT
This article shows how to develop a JSF Hello World project by using PrimeFaces. A sample application is below : Used Technologies : JDK 1.6.0_21 Maven 3.0.2 JSF 2.0.3 PrimeFaces 2.2.1 Apache Tomcat 6.0 (more)
category: JSF | clicked: 10 | comment | | source: www.onlinetechvision.com
tags: JSF, primefaces
1
Pins

JSF – PrimeFaces & Hibernate Integration Project

published 620 days, 2 hours, 27 minutes ago posted by pankajsharmapankajsharma 620 days, 7 hours, 45 minutes ago
Saturday, August 11, 2012 7:14:13 PM GMT Saturday, August 11, 2012 1:56:13 PM GMT
This article shows how to develop a project by using JSF, PrimeFaces and Hibernate. A sample application is below : Used Technologies (more)
category: JAVA | clicked: 7 | comment | | source: www.onlinetechvision.com
tags: Hibernate, JSF, primefaces
1
Pins

Upload CSV file into MySql Database based on columns using Servlets and Java

published 620 days, 2 hours, 27 minutes ago posted by pankajsharmapankajsharma 620 days, 7 hours, 58 minutes ago
Saturday, August 11, 2012 7:14:13 PM GMT Saturday, August 11, 2012 1:43:11 PM GMT
The CSV file is having multiple values to insert in perticular columns and rows in mysql database. Basically these two are to upload the questions and answers into the examination portal to upload question papers and answer paper in (Merit Tracking System project). First we have to do the things are Uploaded file has to save in perticular folder and then they have to... (more)
category: JAVA | clicked: 4 | comment | | source: javabynataraj.blogspot.com
tags: CSV, Java, Servelet
1
Pins

Program for User defined Exception in java

published 620 days, 2 hours, 27 minutes ago posted by pankajsharmapankajsharma 620 days, 8 hours ago
Saturday, August 11, 2012 7:14:13 PM GMT Saturday, August 11, 2012 1:41:12 PM GMT
To create user defined exception first you should create a class by extending Exception class. class BadString extends RuntimeException{ } Create  another class  named as "UserExcep" to throw our own exception. public class UserExcep Write some logical conditions to throw your exception and the exception caught by catch block. package javabynataraj.exceptions; import java.io.BufferedReader; import java.io.InputStreamReader; class BadString extends RuntimeException{ } public class UserE... (more)
category: JAVA | clicked: 3 | comment | | source: javabynataraj.blogspot.com
tags: Exceptions, Java
1
Pins

Copying the data from one file to another file using java Streams.

published 620 days, 2 hours, 27 minutes ago posted by pankajsharmapankajsharma 620 days, 8 hours, 2 minutes ago
Saturday, August 11, 2012 7:14:13 PM GMT Saturday, August 11, 2012 1:39:30 PM GMT
Here the task is we have to understand  Copying the data from one file to another file.So the data should be serialized first and then by doing deserialization of same file and again serialize with different file name. (more)
category: JAVA | clicked: 4 | comment | | source: javabynataraj.blogspot.com
tags: File Copy, Java Streams
1
Pins

What is Deserialization in java ? Write a simple program using Deserialization?

published 620 days, 2 hours, 27 minutes ago posted by pankajsharmapankajsharma 620 days, 8 hours, 3 minutes ago
Saturday, August 11, 2012 7:14:13 PM GMT Saturday, August 11, 2012 1:38:11 PM GMT
Deserialization is a process of converting the data from files or database converting to Stream of bytes using class Objects. The Deserialization can be done after serializing the data only.Then we can read the data from the serialized files. Convert your Serialized file into file form. File fromFile = new File("Emp.ser"); By using the below two classes we can do the process of deserialization. A FileInputStream obtains input bytes fr... (more)
category: JAVA | clicked: 4 | comment | | source: javabynataraj.blogspot.com
tags: Deserialization
1
Pins

What is lazy loading in Hibernate?

published 620 days, 2 hours, 27 minutes ago posted by pankajsharmapankajsharma 620 days, 8 hours, 5 minutes ago
Saturday, August 11, 2012 7:14:13 PM GMT Saturday, August 11, 2012 1:36:38 PM GMT
Lazy setting decides whether to load child objects while loading the Parent Object.You need to do this setting respective hibernate mapping file of the parent class.lazy = true (means not to load child)By default the lazy loading of the child objects is true. This make sure that the child objects are not loaded unless they are explicitly invoked in the application by calling getChild() method on parent.In this case hibernate issues a fresh database call to load the child when getChild() is actully called... (more)
category: JAVA | clicked: 9 | comment | | source: javabynataraj.blogspot.in
tags: Hibernate, Lazy Loading
1
Pins

Storing username and password using Struts and Jdbc

published 620 days, 2 hours, 27 minutes ago posted by pankajsharmapankajsharma 620 days, 8 hours, 6 minutes ago
Saturday, August 11, 2012 7:14:13 PM GMT Saturday, August 11, 2012 1:34:58 PM GMT
Actually by using Struts configuring with database is done with Hibernate combination.very rare case the jdbc will use.This is for your understanding only. This is the application to persist the data into database from jsp pages using jdbc and struts. The required components to develop Struts with jdbc: (more)
category: JAVA | clicked: 6 | comment | | source: javabynataraj.blogspot.in
tags: JDBC, Passwords, Struts, Username
1
Pins

How to Copy properties from one Bean OtherBean

published 619 days, 10 hours, 22 minutes ago posted by pankajsharmapankajsharma 620 days, 8 hours, 8 minutes ago
Sunday, August 12, 2012 11:19:35 AM GMT Saturday, August 11, 2012 1:33:21 PM GMT
As we know the Bean class containing the variables with setters and getters methods. We can access through the getXxx and setXxx methods by different properties. To copy the properties form one bean to another they should have same datatypes. (more)
category: JAVA | clicked: 7 | comment | | source: javabynataraj.blogspot.in
tags: Bean, properties
1
Pins

Object Serialization and Deserialization

published 620 days, 2 hours, 27 minutes ago posted by pankajsharmapankajsharma 620 days, 8 hours, 9 minutes ago
Saturday, August 11, 2012 7:14:13 PM GMT Saturday, August 11, 2012 1:32:03 PM GMT
Working with ObjectOutputStream class and ObjectInputStream Classes When ever the object values need to be stored with in a file then ObjectOutputStream class is used.When ever the object values need to be retrieved from a file then ObjectInputStream class is used. When ever the object values need to be stored with in a file or need to be retrieved from a file then class corresponding to that object must implement the interface Serializable. (more)
category: JAVA | clicked: 4 | comment | | source: javabynataraj.blogspot.in
tags: Deserialization, Serialization
1
Pins

Re-routing JSF resource requests with RichFaces Resource Mapping

published 620 days, 2 hours, 27 minutes ago posted by pankajsharmapankajsharma 620 days, 8 hours, 13 minutes ago
Saturday, August 11, 2012 7:14:13 PM GMT Saturday, August 11, 2012 1:28:31 PM GMT
Note: The implementation contains issue, thus the samples from this blog needs to be slightly modified, details in this comment. The fix will be available with RichFaces 4.2.1.CR1. RichFaces resource mapping can save your life when you need to serve a different resource (JS, CSS, image) file than the one originally requested. It works in the stage of determination of the resource request path. Specifically in all following situations, it may be really handy: providing alternative versions of a res... (more)
category: JAVA | clicked: 6 | comment | | source: rik-ansikter.blogspot.cz
tags: JSF, Resource Mapping, richfaces
1
Pins

10 Application Performance Tuning Tips

published 619 days, 10 hours, 22 minutes ago posted by pankajsharmapankajsharma 620 days, 8 hours, 15 minutes ago
Sunday, August 12, 2012 11:19:35 AM GMT Saturday, August 11, 2012 1:26:15 PM GMT
As a consultant I have been doing performance analysis and optimization of enterprise applications (mainly Java) for more than a decade. In this time I have learned that there are some common “best practices” that everybody should follow, so that most of the problems I’ve seen during my troubleshooting assignments could have been avoided. As the following 10 rules only reflect my experience... (more)
category: JAVA | clicked: 28 | comment | | source: blog.codecentric.de
tags: Performance, Tuning
2
Pins

A ThreadLocal Memory Leak

published 618 days, 10 hours, 37 minutes ago posted by pankajsharmapankajsharma 620 days, 8 hours, 17 minutes ago
Monday, August 13, 2012 11:04:13 AM GMT Saturday, August 11, 2012 1:24:03 PM GMT
I’ve seen a lot of MemoryLeaks caused by wrong usage patterns of ThreadLocal variables. As I had this problem in one of our own applications yesterday, I want to blog about this case. ThreadLocal variables are used in Java to bind a variable to the current Thread - each thread will have its own, independend instance of that variable. These kind of variables are normally used to hold status informa... (more)
category: JAVA | clicked: 24 | comment | | source: blog.codecentric.de
tags: Memory Leak, threadLocal
1
Pins

Stateful persistence context propagation in JPA

published 630 days, 4 hours, 19 minutes ago posted by pankajsharmapankajsharma 631 days, 8 hours, 35 minutes ago
Wednesday, August 01, 2012 5:21:43 PM GMT Tuesday, July 31, 2012 1:06:02 PM GMT
Recently, as I was working on the new edition of Java Persistence with Hibernate, one of my favorite issues made it again to the top of the list: How components in Java EE can share (or not share) a JPA persistence context. Other names given to the same problem are persistence context propagation, inheritance, etc. The persistence context is the centerpiece of JPA, it's how a JPA service guarantees a scope of object identity: when loadedEntityInstance == loadedEntityInstance is true or not. You'd imagine... (more)
category: JAVA | clicked: 3 | comment | | source: 4thline.org
tags: Context Propagation, JPA
1
Pins

Why we need JTA 2.0

published 624 days, 10 hours, 48 minutes ago posted by pankajsharmapankajsharma 631 days, 8 hours, 36 minutes ago
Tuesday, August 07, 2012 10:52:41 AM GMT Tuesday, July 31, 2012 1:04:46 PM GMT
The JTA API, which was introduced back in 2002 hasn’t changed much in nearly a decade. What could be regarded as a good thing for a specification often referred to as mature, actually isn’t. At least, that’s my opinion (and not the one of any other person nor entity, like my current and previous employers, customers and so on) which I’m going to explain in details in this post. But what is so wrong about the... (more)
category: JAVA | clicked: 11 | comment | | source: blog.bitronix.be
tags: JTA 2.0
1
Pins

How to create a Loading Animation / Spinner using jQuery

published 624 days, 10 hours, 48 minutes ago posted by pankajsharmapankajsharma 631 days, 8 hours, 38 minutes ago
Tuesday, August 07, 2012 10:52:41 AM GMT Tuesday, July 31, 2012 1:02:56 PM GMT
Many web applications have some kind of loading animation (aka spinner). A loading animation is important to signal the user that the application is still doing something and the user should wait for an action to complete. This gets even more important when you use Ajax in your webapp. Using the Ajax library jQuery it is very easy to create a loading animation that will be shown whenever an Ajax ... (more)
category: JAVA | clicked: 2 | comment | | source: blog.oio.de
tags: jquery, Loading Animation, Spinner
1
Pins

JSF 2 Custom Scopes without 3rd party libraries

published 630 days, 4 hours, 19 minutes ago posted by pankajsharmapankajsharma 631 days, 8 hours, 39 minutes ago
Wednesday, August 01, 2012 5:21:43 PM GMT Tuesday, July 31, 2012 1:01:49 PM GMT
Almost every JSF application that I am aware of uses some mechanism to store values in a scope longer than the original “Request Scope” but shorter than “Session Scope”. “Wizards” are a common scenario. Unfortunately, JSF comes without something like a conversation scope, but there are some frameworks that offer this functionality:MyFaces OrchestraSeamSpringCDI So, while technical solutions exist, they require integration of at le... (more)
category: JAVA | clicked: 1 | comment | | source: blog.oio.de
tags: Custom Scope, JSF 2
1
Pins

5 Easy Java Optimization Tips

published 624 days, 10 hours, 48 minutes ago posted by pankajsharmapankajsharma 631 days, 8 hours, 43 minutes ago
Tuesday, August 07, 2012 10:52:41 AM GMT Tuesday, July 31, 2012 12:57:43 PM GMT
When writing Java code it can be easy to make simple mistakes that seem harmless on the surface but, as our applications grow larger, they can show themselves to be slow, resource intensive processes that could use a tune-up. Luckily there are some easy ways to optimize your Java code that you can begin using today. Here, we will introduce you to five of them.1. Avoid unnecessary casting Casting, for the new developer, is a way of converting between reference data types. ... (more)
category: JAVA | clicked: 27 | comment | | source: www.learncomputer.com
tags: Java, optimization, tips
1
Pins

Java Interview: Coding Questions and Answers

published 624 days, 10 hours, 48 minutes ago posted by pankajsharmapankajsharma 631 days, 8 hours, 45 minutes ago
Tuesday, August 07, 2012 10:52:41 AM GMT Tuesday, July 31, 2012 12:55:50 PM GMT
Interviewing for a job can be stressful, but if there is one thing that can add more complexity to the interview process, it would be the technical interview. Nothing strikes fear in the heart of developers faster than the thought of sweating hands and an interview’s stare as you struggle through a coding problem on a whiteboard. This is the stuff of nightmares. It is natural for you to fear this process since many programmers, new and veteran alike, have doubts about thei... (more)
category: JAVA | clicked: 11 | comment | | source: www.learncomputer.com
tags: Interview Question, Java
1
Pins

A Simple Java Introduction to Reflection

published 624 days, 10 hours, 48 minutes ago posted by pankajsharmapankajsharma 631 days, 8 hours, 47 minutes ago
Tuesday, August 07, 2012 10:52:41 AM GMT Tuesday, July 31, 2012 12:54:16 PM GMT
In computer science, reflection is the process by which a computer program can observe, do type introspection and modify its own structure and behavior at runtime. In many computer architectures, program instructions are stored as data; hence the distinction between instruction and data is merely a matter of how the information is treated by the computer and programming language. Reflection is most commonly used in high-level virtual machine programming languages like Smalltalk and scripting languages, ... (more)
category: JAVA | clicked: 13 | comment | | source: www.learncomputer.com
tags: Java, Reflection
Previous 1 2 3 4 5 6 7 8 9 10 ... 39 40 Next