tag:blogger.com,1999:blog-89366227734081266502024-03-13T07:15:07.522-07:00JAVAvenkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.comBlogger51125tag:blogger.com,1999:blog-8936622773408126650.post-980293463035933632012-05-18T13:19:00.001-07:002012-05-18T13:19:49.709-07:00Mockito Open Source Testing FrameworkBest reference guide for Mockito testing framework.
http://schuchert.wikispaces.com/Mockito.LoginServiceExamplevenkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-22956319388050730252011-12-14T12:49:00.001-08:002011-12-14T12:49:57.052-08:00User Guide to WSDL2JavaPlease refer :- http://ws.apache.org/axis/java/user-guide.htmlvenkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-21307990806440190092011-11-10T07:44:00.000-08:002011-11-10T07:46:23.233-08:00Java API To Access Microsoft Excel FormatHSSF is the POI Project's pure Java implementation of the Excel '97(-2007) file format. XSSF is the POI Project's pure Java implementation of the Excel 2007 OOXML (.xlsx) file format.
HSSF and XSSF provides ways to read spreadsheets create, modify, read and write XLS spreadsheets. They provide:
low level structures for those with special needs
an eventmodel api for efficient read-only access
a full usermodel api for creating, reading and modifying XLS files
Please Go to <b>http://poi.apache.org/spreadsheet/index.html</b>venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-72591916853450961862011-11-10T07:40:00.001-08:002011-11-10T07:41:26.902-08:00Eclipse upgrading Subversion to 1.7I found out this morning that the latest round of Eclipse upgrades includes an upgrade of the Subversion client (not sure if it’s Subclipse or Subversive) to use the Subversion 1.7 libraries. Installing this upgrade and using the new Subversion client on your working copy will render the working copy unable to be read by 1.6.x Subversion clients like the command-line svn or Tortoise. The symptom will be a popup, when trying to use e.g. Tortoise on your working copy, that “This working copy appears to have been created by a Subversion client version 1.7 or greater.”
IF AND ONLY IF you are experiencing this issue, I have placed the Subversion 1.7.1 command-line and TortoiseSVN installers in J:\WOL\svn_1.7 . If you are a TortoiseSVN user, I suggest one precaution before installing the new version. In Windows Explorer, browse to a Subversion working copy, right-click on a folder and choose “TortoiseSVN -> About”. Check the first line of the Version Information in the popup; it should say something like “TortoiseSVN 1.6.12….”. If the current version is 1.6.9 or less, then after upgrading with the 1.7.1 Tortoise installer, you will need to run the installer again and choose “Repair Install”. If you are already at Tortoise version 1.6.10 or later you don’t need to worry about repairing.
Note that IntelliJ IDEA will not support Subversion 1.7 until they release IDEA Version 11, so IDEA users definitely should NOT upgrade their Subversion clients at this time.
Make sure You restart the system.venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-547817008932551662011-11-03T11:25:00.000-07:002011-11-03T11:25:57.320-07:00Top 10 Eclipse PluginsPlease go to http://www.shankh.com/top-10-eclipse-plugins/venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-77673932497147273952011-08-04T15:37:00.000-07:002011-08-04T15:38:12.972-07:00How To Ace Your Job InterviewYou’ve finally got that job interview that you’ve been vying for.<br />How should you behave when you get there? What if you don’t have answers to all the questions? How do you make the right impression?<br />No matter how many years of work experience you have, it’s natural to have a million questions buzzing through your head. Here, some recruiters and managers share tips to help get you through that interview with flying colors.<br /><br />1. Do Your Homework<br /><br />The number one complaint that recruiters have is that people turn up for job interviews clueless about the company, its top officers, or the job. Even very senior people make this mistake.<br />“Understand the organization you are going to for an interview,” says Ramesh Vaswani, executive vice-chairman of computer accessory-maker Intex Technologies (India) Ltd. <br />Look up the names of the company’s top officers, like the chief executive and the chairman, and especially the person in charge of the department where you want to work. Study the company Web site. Google news articles on the company, and make a note of any recent acquisitions, new products launched, or new directions the company is taking. Where possible, read up on the company’s financial condition, and look at a recent annual report. <br />“If you can strategically drop some of these points [in conversation], that shows you’re very well read and clued in,” says E Balaji, head of Ma Foi Randstad, a human resource services company.<br /><br />2. Rehearse<br /><br />Ahead of the interview, think through the questions you might be asked about your current or past job, why you left your previous position, what you’re looking for in the new job, and what makes you so suitable for this position.<br />Don’t forget to prepare for this trick question that recruiters love to ask. <br />Write down your answers—that’ll help you remember them—and maybe even rehearse them aloud. You’ll be more confident at the actual interview. <br />If you don’t know the answer to a question, say so, politely. For instance, you can say: I’m afraid I don’t know, but I can get back to you on that. Trying to fake it usually doesn’t work because experienced interviewers can see through that.<br /><br />3. Be Specific<br /><br />When asked about a current or past job, interviewees “spend a lot of time talking about their organization,” says Mr. Vaswani. While it’s great if you have worked for a large or well-known company, what’s more important is what you did there.<br />“Talk about specific assignments you have handled,” he says. Instead of simply saying that you were the chief finance officer for your organization, talk about a target you helped achieve, such as raising millions of rupees of working capital.<br /><br />4. Turn the Tables<br /><br />Don’t be a passive interviewee. When you get the opportunity, ask questions. These can be about the company’s future plans, growth prospects, or about what is expected of you from the new job and what growth you can expect at the company.<br />These questions “convey that you’re seriously growth-oriented,” says Mr. Balaji.<br />Be careful, however, to not ask something that you could have found out on the company’s website.<br /><br />5. Go Gentle on a Current or Past Employer<br /><br />In general, you want to talk positively about your current or past employer. Badmouthing your previous employer could leave a bad impression on a potential new employer.<br />Find a neutral way to explain challenges you might have faced at the previous company, or reasons why your career growth required that you move on. If there was a disagreement with your previous manager, communicate it diplomatically. You could say “there were strategic differences in our approaches.” Don’t say you hated your manager.<br /><br />6. The Salary Equation<br /><br />Experts advise leaving the salary discussion to the very end of the interview process.<br />“As a rule, people shouldn’t portray that one is only driven by the money,” says Mr. Balaji.<br />Talk about salary only if the interviewer brings up the topic. Be truthful about what you earn currently, and be prepared to give some idea of what you expect in the new position.<br /><br />7. Manners Count<br /><br />Don’t overlook your basic etiquette.<br />“Arrive on time; not too early, not too late. Either way can send different kinds of signals,” says Nirmit Parekh, managing director and chief executive officer of international executive research firm 3P Consultants Pvt. Ltd. in Mumbai. <br />If you get there too early, it can show that you have a lot of time to kill. <br />Switch off your mobile phone before the interview. “Invariably, I’m standing for a minute because the person is completing a call,” says Mr. Parekh.<br /><br />8. What to Wear<br /><br />Dress appropriately—not too casual, but you needn’t be in a suit-and-tie either, especially if it’s hot outside. A clean shirt, tie and trousers are good enough for men. Women can wear a modest Indian outfit, or a collared shirt and pants.<br /><br />9. Body Language<br /><br />“Body posture, according to me, is extremely important when you are talking to and meeting a person,” says Mr. Parekh. It immediately gives away whether the person is confident—or overconfident. <br />If someone crosses their legs or leans back too casually, you know he’s not taking this meeting seriously, he adds. <br />A firm handshake leaves a good impression. Be sure you maintain eye contact during the interview. If there is more than one interviewer, don’t ignore anyone. <br />“A smile is always welcome,” he says.<br /><br />10. Follow-up<br /><br />Send a thank-you note or email to the person you met with. And ask when you should check back to find out the interview result.venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-7566235247559980232011-08-04T05:37:00.001-07:002011-08-04T05:37:52.671-07:00How to change Tomcat default port ?Please Refer <br /><br />http://www.mkyong.com/tomcat/how-to-change-tomcat-default-port/venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-28868847615539069082011-08-03T17:14:00.001-07:002011-08-03T17:17:07.494-07:00What is transient keyword in Java?<span style="font-weight:bold;">What is Serilization?</span><br /><br />If you want to understand what is transient, then first learn what is serilization concept in Java if you are not familiar with that. Serilization is the process of making the object's state persistent. That means the state of the object is converted into stream of bytes and stored in a file. In the same way we can use the de-serilization concept to bring back the object's state from bytes. This is one of the important concept in Java programming because thisserilization is mostly used in the networking programming. The object's which are needs to be transmitted through network has to be converted as bytes, for that purpose ever class or interface must implements Serilizationinterface. It is a marker interface without any methods.<br /><br /><span style="font-weight:bold;">What is Transient?</span><br /><br />By default all the variables in the object is converted into the persistent. In some cases, you may want to avoid persisting some variables because you don't have the necesscity to persist those varibale. So, you can declare those variables as transient. if the variable is declared as transient, then it will not be persisted. It is the main purpose of the transient keyword.venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-49137342773319030232011-08-03T16:58:00.000-07:002011-08-03T17:00:46.284-07:00A Simple JavaServer Faces ApplicationPlease refer this one for creating a sample web application by using JSF FrameWork.<br /><br /><br /><span style="font-weight:bold;">http://exadel.com/web/portal/jsftutorial-kickstart</span>venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-55474566906689957452011-07-21T22:44:00.001-07:002011-07-21T22:44:55.843-07:00Create Web Service in Java Using Apache Axis2 and Eclipsehttp://blog.sencide.com/2011/06/create-web-service-using-apache-axis2.htmlvenkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com2tag:blogger.com,1999:blog-8936622773408126650.post-47984566399862891872011-02-09T06:09:00.001-08:002011-02-09T06:09:51.266-08:00Love n marriage...A student asks a teacher, "What is love?"<br /><br />The teacher said, "in order to answer your question, go to the wheat field and choose the biggest wheat and come back.<br /><br />But the rule is: you can go through them only once and cannot turn back to pick."<br /><br />The student went to the field, go thru first row, he saw one big wheat, but he wonders....maybe there is a bigger one later.<br /><br />Then he saw another bigger one... But maybe there is an even bigger one waiting for him.<br /><br />Later, when he finished more than half of the wheat field, he start to realize that the wheat is not as big as the previous one he saw, he know he has missed the biggest one, and he regretted.<br /><br />So, he ended up went back to the teacher with empty hand.<br /><br />The teacher told him, "...this is love... You keep looking for a better one, but when later you realize, you have already miss the person...."<br /><br /> <br /><br />"What is marriage then?" the student asked.<br /><br /> The teacher said, "in order to answer your question, go to the corn field and choose the biggest corn and come back. But the rule is: you can go through them only once and cannot turn back to pick."<br /><br />The student went to the corn field, this time he is careful not to repeat the previous mistake, when he reach the middle of the field, he has picked one medium corn that he feel satisfy, and come back to the teacher.<br /><br />The teacher told him, "this time you bring back a corn.... You look for one that is just nice, and you have faith and believe this is the best one you get.... This is marriage.venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-47853485288663063092011-02-02T00:15:00.000-08:002011-02-02T00:16:33.117-08:00Commands in the MAVEN1. Maven is a intelligent project management, build and deployment tool provided by<br />Apache’s software foundation group. Maven deals with application development<br />lifecycle management.<br />2. Convention over configuration<br />3. Actually, for a long time there was a need to standardized project development<br />lifecycle management system and Maven has emerged as a perfect option that<br />meets the needs.<br />4. Project Object Model<br />A Project Object Model or POM is the fundamental unit of work in Maven. It is an<br />xml file that contains information about the<br />project and configuration details used by Maven to build the project. It contains<br />default values for most projects.<br />5. Repository<br />Another concept in Maven is that of a repository. The repository holds the artifacts<br />on which your project depends. There are two kinds of repository: local and remote.<br />6. Plugins Maven provides a plugin execution framework and all work is done by<br />plugins. Maven plugins are available to execute any specific task.<br />7. the build lifecycle<br />8. groupId It identifies your project as a whole (it will make more sense when you<br />start using multi-modules build) and should be unique. Maven enforces a naming<br />schema following the Java package name rules. Hence, the groupId has to start by<br />at least a domain name you control followed by any subgroups you want.<br />9. artifactId It identifies precisely the current project inside the group identified by<br />the groupId.<br />10. version: The version number allows you to distinguish your different project<br />releases. There are two kinds of versions depending of the release type it is<br />associated with:<br />◦ Official releases : 1.0, 2.2, ...<br />◦ Specific releases (nightly build or snapshots) : 1.0-SNAPSHOT,<br />2.1.2-SNAPSHOT<br />11. type: default jar<br />12. scope:<br />1. classpath management<br />2. Transitivity of a dependency<br />1. compile - this is the default scope and is transitive.<br />2. provided - jdk or container and is not transitive.<br />3. runtime - not required for compilation, but is for execution.<br />4. test -<br />5. system - The artifact is always available and is not looked up in a<br />repository.<br />13. Exclusions<br />1. The Standard Directory Layout<br />◦ For every new project, you need to learn a new way of structuring your files.<br />◦ You need to specify a lot of redundant configuration in order to make your<br />build tool work<br />2.<br />◦ src<br />▪ main<br />▪ java<br />▪ resources<br />▪ test<br />▪ java<br />▪ resources<br />◦ target<br />◦ pom.xml<br />3. The Build Lifecycle: Maven is based around the central concept of a build lifecycle.<br />What this means is that the process for building and distributing a particular artifact<br />is clearly defined.<br />4. Repositories: A repository in Maven is used to hold build artifacts and<br />dependencies of varying types. Repositories allow Maven to manage your project<br />dependencies and automatically share components between different projects.<br />5. local and remote.The local repository serves two purposes, it holds a cache of all<br />the different artifacts retrieved remotly and contains your installed projects. An<br />installed project is a project which has been built and that you want to be able to<br />use in some other local projects but you aren't ready to deploy it yet and makes it<br />available to other developers.<br />6. Remote repositories allow you to makes your project artifacts available to other<br />developers.<br />7. Maven can stores four kind of files associated to a project : the project artifact<br />archive, some project related content (javadoc archive, source archive), the<br />project pom file and key signature files so downloaded files integrity can be<br />verified.<br />8. Dependency Management: Dependency management is one of the features of<br />Maven that is best known to users and is one of the areas where Maven excels.<br />There is not much difficulty in managing dependencies for a single a project, but<br />when you start getting into dealing with multi-module projects and applications that<br />consist of tens or hundreds of modules this is where Maven can help you a great<br />deal in maintaining a high degree of control and stability.<br />9. transitive dependencies<br />10. mvn archetype:generate<br />mvn archetype: create<br />◦ the selection of the archetype,<br />◦ the configuration of that archetype,<br />◦ the effective creation of the project from the collected information.<br />11. Maven Eclipse Plugin<br />◦ eclipse:eclipse generates the Eclipse configuration files.(.project<br />and .classpath files,.setting)<br />◦ eclipse:clean is used to delete the files used by the Eclipse IDE.<br />• Maven Help Plugin<br />• help:active-profiles lists the profiles which are currently active for the<br />build.<br />• help:all-profiles lists the available profiles under the current project.<br />• help:describe describes the attributes of a Plugin and/or a Mojo (Maven<br />plain Old Java Object).<br />• help:effective-pom displays the effective POM as an XML for the current<br />build, with the active profiles factored in.<br />• help:effective-settings displays the calculated settings as an XML for the<br />project, given any profile enhancement and the inheritance of the global<br />settings into the user-level settings.<br />• help:system displays a list of the platform details like system properties<br />and environment variables.<br />• http://maven.apache.org/pom.html#What_is_the_POM<br />• versioning<br />• String are compared in lexicographical order, but wait, if one string starts with<br />and contains the other string, then the shorter string is returned as newer. So<br />where does this mess up? So 1.0-alpha1 > 1.0-alpha10venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-24104810213784455492011-01-06T01:38:00.000-08:002011-01-06T01:39:34.541-08:00Nice Tutorial On Spring AOP Example – AdviceThis will help us to create the diff Advices.<br />Please Read it . Its very easy to created the Advices in Spring<br /><br />http://www.mkyong.com/spring/spring-aop-examples-advice/venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-19229643308279256712011-01-06T01:22:00.000-08:002011-01-06T01:23:12.965-08:00It is easier to criticize…Nice story Please read it completely.. <br /><br /><br />Once upon a time there was a painter who had just completed his course under disciple hood of a great painter. This young artist decided to assess his skills. He decided to give his best strokes on the canvass. He took 3 days and painted beautiful scenery.<br />He wanted people's opinion about his caliber and painting skills.<br /><br />He put his creation at a busy street-crossing. And just down below a board which read-"Gentlemen, I have painted this piece. Since I'm new to this profession I might have committed some mistakes in my strokes etc. Please put a cross wherever you see a mistake."<br /><br />While he came back in the evening to collect his painting he was completely shattered to see that whole canvass was filled with Xs (crosses) and some people had even written their comments on the painting.<br /><br />Disheartened and broken completely he ran to his master's place and burst into tears. Sobbing and crying he told his master about what happened and showed the pathetic state of his creation which was filled with crosses and correction remarks.<br /><br />This young artist was breathing heavily and master heard him saying "I'm useless and if this is what I have learnt to paint I'm not worth becoming a painter. People have rejected me completely. I feel like dying"<br /><br />Master smiled and suggested "My Son, I will prove that you are a great artist and have learnt a flawless painting." Young disciple couldn't believe it and said "I have lost faith in me and I don't think I am good enough. Don't make false hopes..<br /><br />"Do as I say without questioning it. It WILL work." Master interrupted him.<br /><br />Young artist reluctantly agreed and two days later early morning he presented a replica of his earlier painting to his master. Master took that gracefully and smiled.<br /><br />"Come with me." master said.<br /><br />They reached the same street-square early morning and displayed the same painting exactly at the same place. Now master took out another board which read -"Gentlemen, I have painted this piece. Since I'm new to this profession I might have committed some mistakes in my strokes etc. I have put a box with colors and brushes just below. Please do a favor. If you see a mistake, kindly pick up the brush and correct it." Master and disciple walked back home.<br /><br />They both visited the place same evening. Young painter was surprised to see that actually there was not a single correction done so far. Next day again they visited and found painting remained untouched. They say the painting was kept there for a month for no correction came in!<br /><br />It is easier to criticize, but difficult to improve. If you want to help people improve their behavior it is worth investing your effort in learning how to help people change their behaviors, attitudes and skills. Also, always remember not to get carried away or judge yourself by someone else’s criticism and feel depressed. Take criticism in your stride; consider that which are genuine and implement those which you think is the best to improve you as a person!!venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com2tag:blogger.com,1999:blog-8936622773408126650.post-84539697343584498852011-01-05T22:50:00.000-08:002011-01-05T22:54:01.614-08:00Creating a connection pools in weblogic 8.1<!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:trackmoves/> <w:trackformatting/> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:donotpromoteqf/> <w:lidthemeother>EN-US</w:LidThemeOther> <w:lidthemeasian>X-NONE</w:LidThemeAsian> <w:lidthemecomplexscript>X-NONE</w:LidThemeComplexScript> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:splitpgbreakandparamark/> <w:dontvertaligncellwithsp/> <w:dontbreakconstrainedforcedtables/> <w:dontvertalignintxbx/> <w:word11kerningpairs/> <w:cachedcolbalance/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathpr> <m:mathfont val="Cambria Math"> <m:brkbin val="before"> <m:brkbinsub val="--"> <m:smallfrac val="off"> <m:dispdef/> <m:lmargin val="0"> <m:rmargin val="0"> <m:defjc val="centerGroup"> <m:wrapindent val="1440"> <m:intlim val="subSup"> <m:narylim val="undOvr"> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" defunhidewhenused="true" defsemihidden="true" defqformat="false" defpriority="99" latentstylecount="267"> <w:lsdexception locked="false" priority="0" semihidden="false" unhidewhenused="false" qformat="true" name="Normal"> <w:lsdexception locked="false" priority="9" semihidden="false" unhidewhenused="false" qformat="true" name="heading 1"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 2"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 3"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 4"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 5"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 6"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 7"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 8"> <w:lsdexception locked="false" priority="9" qformat="true" name="heading 9"> <w:lsdexception locked="false" priority="39" name="toc 1"> <w:lsdexception locked="false" priority="39" name="toc 2"> <w:lsdexception locked="false" priority="39" name="toc 3"> <w:lsdexception locked="false" priority="39" name="toc 4"> <w:lsdexception locked="false" priority="39" name="toc 5"> <w:lsdexception locked="false" priority="39" name="toc 6"> <w:lsdexception locked="false" priority="39" name="toc 7"> <w:lsdexception locked="false" priority="39" name="toc 8"> <w:lsdexception locked="false" priority="39" name="toc 9"> <w:lsdexception locked="false" priority="35" qformat="true" name="caption"> <w:lsdexception locked="false" priority="10" semihidden="false" unhidewhenused="false" qformat="true" name="Title"> <w:lsdexception locked="false" priority="1" name="Default Paragraph Font"> <w:lsdexception locked="false" priority="11" semihidden="false" unhidewhenused="false" qformat="true" name="Subtitle"> <w:lsdexception locked="false" priority="22" semihidden="false" unhidewhenused="false" qformat="true" name="Strong"> <w:lsdexception locked="false" priority="20" semihidden="false" unhidewhenused="false" qformat="true" name="Emphasis"> <w:lsdexception locked="false" priority="59" semihidden="false" unhidewhenused="false" name="Table Grid"> <w:lsdexception locked="false" unhidewhenused="false" name="Placeholder Text"> <w:lsdexception locked="false" priority="1" semihidden="false" unhidewhenused="false" qformat="true" name="No Spacing"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 1"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 1"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 1"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 1"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 1"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 1"> <w:lsdexception locked="false" unhidewhenused="false" name="Revision"> <w:lsdexception locked="false" priority="34" semihidden="false" unhidewhenused="false" qformat="true" name="List Paragraph"> <w:lsdexception locked="false" priority="29" semihidden="false" unhidewhenused="false" qformat="true" name="Quote"> <w:lsdexception locked="false" priority="30" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Quote"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 1"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 1"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 1"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 1"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 1"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 1"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 1"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 1"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 2"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 2"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 2"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 2"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 2"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 2"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 2"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 2"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 2"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 2"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 2"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 2"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 2"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 2"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 3"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 3"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 3"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 3"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 3"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 3"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 3"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 3"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 3"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 3"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 3"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 3"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 3"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 3"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 4"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 4"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 4"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 4"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 4"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 4"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 4"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 4"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 4"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 4"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 4"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 4"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 4"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 4"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 5"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 5"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 5"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 5"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 5"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 5"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 5"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 5"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 5"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 5"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 5"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 5"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 5"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 5"> <w:lsdexception locked="false" priority="60" semihidden="false" unhidewhenused="false" name="Light Shading Accent 6"> <w:lsdexception locked="false" priority="61" semihidden="false" unhidewhenused="false" name="Light List Accent 6"> <w:lsdexception locked="false" priority="62" semihidden="false" unhidewhenused="false" name="Light Grid Accent 6"> <w:lsdexception locked="false" priority="63" semihidden="false" unhidewhenused="false" name="Medium Shading 1 Accent 6"> <w:lsdexception locked="false" priority="64" semihidden="false" unhidewhenused="false" name="Medium Shading 2 Accent 6"> <w:lsdexception locked="false" priority="65" semihidden="false" unhidewhenused="false" name="Medium List 1 Accent 6"> <w:lsdexception locked="false" priority="66" semihidden="false" unhidewhenused="false" name="Medium List 2 Accent 6"> <w:lsdexception locked="false" priority="67" semihidden="false" unhidewhenused="false" name="Medium Grid 1 Accent 6"> <w:lsdexception locked="false" priority="68" semihidden="false" unhidewhenused="false" name="Medium Grid 2 Accent 6"> <w:lsdexception locked="false" priority="69" semihidden="false" unhidewhenused="false" name="Medium Grid 3 Accent 6"> <w:lsdexception locked="false" priority="70" semihidden="false" unhidewhenused="false" name="Dark List Accent 6"> <w:lsdexception locked="false" priority="71" semihidden="false" unhidewhenused="false" name="Colorful Shading Accent 6"> <w:lsdexception locked="false" priority="72" semihidden="false" unhidewhenused="false" name="Colorful List Accent 6"> <w:lsdexception locked="false" priority="73" semihidden="false" unhidewhenused="false" name="Colorful Grid Accent 6"> <w:lsdexception locked="false" priority="19" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Emphasis"> <w:lsdexception locked="false" priority="21" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Emphasis"> <w:lsdexception locked="false" priority="31" semihidden="false" unhidewhenused="false" qformat="true" name="Subtle Reference"> <w:lsdexception locked="false" priority="32" semihidden="false" unhidewhenused="false" qformat="true" name="Intense Reference"> <w:lsdexception locked="false" priority="33" semihidden="false" unhidewhenused="false" qformat="true" name="Book Title"> <w:lsdexception locked="false" priority="37" name="Bibliography"> <w:lsdexception locked="false" priority="39" qformat="true" name="TOC Heading"> </w:LatentStyles> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} </style> <![endif]--> <p class="MsoNormal" style="margin-left: 0.5in;">Follow the below steps for doing manually</p> <p class="MsoNormal" style="margin-left: 0.5in;">Go to <b style=""><u>C:\software\bea\weblogic\8.1\sp4\user_projects\domains\uprr_desktop\ config.xml</u></b></p> <p class="MsoNormal" style="margin-left: 0.5in;"><b style=""><u>Entry in the file:-</u></b></p> <p class="MsoNormal" style="margin-left: 0.5in;"><jdbctxdatasource jndiname="com.uprr.app.iee.iee_TeraPoolTXDS" style=""> </span>Name="iee_TeraPoolDS" PoolName="iee_TeraPool" Targets="desktop_server"/><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><jdbcconnectionpool drivername="com.ncr.teradata.TeraDriver" style=""> </span>MaxCapacity="1" Name="iee_TeraPool"<span style=""> </span>Password="?"<span style=""> </span>Properties="user=? " Targets="desktop_server" URL="jdbc:teradata://edwprdi0.edw.tla.uprr.com"/></p> <p class="MsoNormal" style="margin-left: 0.5in;">Note: - Password="?"<span style=""> </span>Properties="user=? " still we don’t know the username and password for teradata connection.</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span><jdbctxdatasource jndiname="com.uprr.app.iee.iee_OraclePoolTXDS" style=""> </span>Name="iee_PoolTXDS" PoolName="IEE Connection Pool" Targets="desktop_server"/><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><jdbcconnectionpool connleakprofilingenabled="true" style=""> </span>ConnProfilingEnabled="true"<span style=""> </span><span style=""> </span>DriverName="oracle.jdbc.driver.OracleDriver" MaxCapacity="2"<span style=""> </span>Name="IEE Connection Pool"<span style=""> </span>Password=" iee123 " Properties="user=DIEE999"<span style=""> </span>Targets="desktop_server" TestConnectionsOnCreate="true"<span style=""> </span>TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"<span style=""> </span>TestFrequencySeconds="5" TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:oracle:thin:@dev184.oracle.uprr.com:1521:dev184"/></p> <p class="MsoNormal" style="margin-left: 0.5in;">Also make sure that teradata home is present in the startWeblogic.cmd file if not follow the below steps</p> <p class="MsoNormal" style="margin-left: 0.5in;">Along with the above configuration we have to set the teradata home in startWeblogic.cmd file</p> <p class="MsoNormal" style="margin-left: 0.5in;">set TERADATA_HOME=%WL_HOME%\common\eval\teradata</p> <p class="MsoNormal" style="margin-left: 0.5in;">set TERADATA_CLASSPATH=%TERADATA_HOME%;%TERADATA_HOME%\lib\terajdbc4.jar;%TERADATA_HOME%\lib\tdgssjava.jar;%TERADATA_HOME%\TdgssUserConfigFile.xml</p> venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-12095275747398763922011-01-05T04:53:00.000-08:002011-01-05T04:54:07.496-08:00Good reference for spring examples<span class="z19Dle" id="col-z12ai3czjzqfwhcln22jhfvpotbzun40d"><span class="zo"><a href="http://www.springbyexample.org/" class="ot-anchor">http://www.springbye<wbr>xample.org/</a></span></span><span class="Ia dm2Ocf"></span>venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-90538059296884979802011-01-05T04:33:00.000-08:002011-01-05T04:41:16.759-08:00Command to see the effective pom of your projectLets say our project has no of master poms which we may not know or internal plug ins which we don't come across.<br /><br />Use this command to see all the details of your project<br /><br /> mvn clean help:effective-pom > effpom.xml<br /><br />Example:-<br /><br />C:\InterModel-work\messaging-equipment>mvn clean help:effective-pom > effpom.xml<br /><br />So my project name is messaging-equipment which is at InterModel-work of c directory.<br /><br />Go to your project directory and run the command.venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-26829268518599816842010-12-23T22:58:00.000-08:002010-12-23T22:59:08.229-08:00simple method to convert date to timestamp in javaprivate Timestamp convertDatetoTimestamp(Date date){<br /> Timestamp currentTimeStamp = new Timestamp(date.getTime());<br /> return currentTimeStamp;<br /> }venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com1tag:blogger.com,1999:blog-8936622773408126650.post-50854966700892696192010-11-22T21:37:00.000-08:002010-11-22T21:38:13.871-08:00PMD and CPD For Eclipse<h2><a name="PMDandCPD-PMD"></a>PMD</h2> <p>From <a class="external-link" href="http://pmd.sourceforge.net/" rel="nofollow">http://pmd.sourceforge.net/</a></p> <blockquote> <p>PMD scans Java source code and looks for potential problems like:</p> <ul><li>Possible bugs - empty try/catch/finally/switch statements </li><li>Dead code - unused local variables, parameters and private methods </li><li>Suboptimal code - wasteful String/StringBuffer usage </li><li>Oercomplicated expressions - unnecessary if statements, for loops that could be while loops </li><li>Duplicate code - copied/pasted code means copied/pasted bugs </li></ul></blockquote> <h2><a name="PMDandCPD-CPD"></a>CPD</h2> <p>From <a class="external-link" href="http://pmd.sourceforge.net/cpd.html" rel="nofollow">http://pmd.sourceforge.net/cpd.html</a></p> <blockquote> <p>Duplicate code can be hard to find, especially in a large project. But PMD's Copy/Paste Detector (CPD) can find it for you! CPD has been through three major incarnations:</p> <ul><li>First we wrote it using a variant of Michael Wise's Greedy String Tiling algorithm (our variant is described here) </li><li>Then it was completely rewritten by Brian Ewins using the Burrows-Wheeler transform </li><li>Finally, it was rewritten by Steve Hawkins to use the Karp-Rabin string matching algorithm</li></ul></blockquote>venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com1tag:blogger.com,1999:blog-8936622773408126650.post-17464639635582916612010-11-22T05:46:00.000-08:002010-11-22T05:52:30.444-08:00XmlToHtmlConverterimport java.io.FileOutputStream;<br /><br />import javax.xml.transform.Result;<br />import javax.xml.transform.Source;<br />import javax.xml.transform.Transformer;<br />import javax.xml.transform.TransformerFactory;<br />import javax.xml.transform.stream.StreamSource;<br />import javax.xml.transform.stream.StreamResult;<br /><br />public class XmlToHtmlConverter {<br /><br /> public static void main(String[] args) {<br /> try {<br /><br /> String xmlFile = "src/xml/xml.xml";<br /> String xsltFile = "src/xslt/xslt.xsl";<br /> String outFile = "src/html/html.html";<br /><br /> Source xmlSource = new StreamSource(xmlFile);<br /> Source xsltSource = new StreamSource(xsltFile);<br /> Result ouput = new StreamResult(new FileOutputStream(outFile));<br /><br /> TransformerFactory tFactory = TransformerFactory.newInstance();<br /> Transformer transformer = tFactory.newTransformer(xsltSource);<br /> transformer.transform(xmlSource, ouput);<br /> <br /> System.out.println("Html got generated");<br /> <br /> } catch (Exception e) {<br /> e.printStackTrace();<br /> }<br /> }<br />}<br /><br /><br />http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog<br /><br />from this URL download the xml and xsl and try to give input to the above java file..<br /><br />you will be getting the corresponding html.venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-69393567425858923652010-10-28T00:25:00.000-07:002010-10-28T00:26:13.239-07:00For all latest Jobshttp://durgajobs.com/venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-2493555768761486922010-10-27T08:58:00.000-07:002010-10-27T09:00:57.991-07:00Can we count Total Number of lines and packages in our eclipse projectYes we can do it by making use of this pluing in our eclipse..<br /><br />update your eclipse with the following url ....after doing this restart your eclipse..<br /><br />http://metrics.sourceforge.net/update<br /><br />For more information............checkout this....<br /><br />http://metrics.sourceforge.net/venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-89756570360824196162010-10-24T23:22:00.000-07:002010-10-24T23:30:16.800-07:00Error message(Could not validate document )while building the projectThis is because of shared libraries are not getting loaded properly while doing the build process..venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-45184245590806726512010-10-11T08:59:00.000-07:002010-10-11T09:06:24.514-07:00Syntax to run the batch file in UNIX BOXsh yourfilename.sh<br /><br />Lets say I have a file called startProcess.sh in my unix box.<br /><br />we should run the above file like sh startProcess.sh thats all our process is started.<br /><br />suppose some one has the file with the file name as stopProcess.fg in their unix box<br /><br />so he can run the above file like sh stopProcess.fg<br /><br /><br />along with this if you want to create a backup we have to use mv soucefile backupfilename thats allvenkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0tag:blogger.com,1999:blog-8936622773408126650.post-8994204556192064252010-10-08T02:42:00.000-07:002010-10-08T02:43:24.846-07:00AJAX Tutorial for Java ProgrammersThe prerequisites for this tutorial are: <ul><li>Java. You should be comfortable in the Java programming language. </li><li>HTML. You should know HTML, and be familiar with HTML attributes and styles. </li></ul><br />For More Details Check Out :- http://www.jaxtut.com/venkathttp://www.blogger.com/profile/02679544355388484525noreply@blogger.com0