Understanding Java Stack Traces and Generating or Producing or Capturing Full Java Thread Dump
The article is written for J2SE 6, and Eclipse IDE for Java EE Developers. Table Of Content Introduction and Generating Java Stack Traces System Requirements Generating or Producing or Capturing Full Java Thread Dump Manipulating Java Stack Traces Java Thread Dump Process Feedback Introduction and Generating Java Stack Traces A Java stack trace is a user-friendly snapshot of the threads and monitors in a Java1 Virtual Machine (JVM). Full Java Thread Dump is a complete list of active threads. A java thread dump is a way of finding out what each thread in the JVM is doing at a particular...
read moreSending Mail with Attachment over Secure Socket Layer (SSL) through SMTP using JavaMail
The article is written for J2SE 6, JavaMail 1.4.2, JAF 1.1.1 and Eclipse IDE for Java EE Developers. Table Of Content Introduction Mail Protocols System Requirements Setup JavaMail and JavaBeans Activation Framework Sending Messages Using the JavaMail API Resources Feedback Introduction The JavaMail API is an optional package (standard extension) for reading, composing, and sending electronic messages. The JavaMail API is designed to provide protocol-independent access for sending and receiving messages by dividing the API into two parts: The first part speaks on how to send and...
read moreLaunching Website in the Browser From Your Android Applications and BhaveshThaker.com Launcher APK
This article shows you how to launch the built-in Browser application in Android. Here, you will learn, how to launch the browser to a specific URL. Create an Android Application Begin by creating an Android project. Implement your Android application as normal. I created BTLauncher Android project in IntelliJ IDEA. Once you are done creating project, now you are ready to add code snipet. Creating launcher activity java class Create Java class BTLauncher.java under package com.bhaveshthaker.launcher. Override the onCreate() method. Create another method called...
read moreACT AGAINST CORRUPTION – Join campaign for a strong Lokpal law to make India corruption-free
Bill for a strong Lokpal needs a big push Way back in January, long before Anna Hazare or his campaign for an effective Lokpal became subjects of household discussion, The Times of India had started to push for a relevant and strong anti-corruption law. This was in the backdrop of a series of scams that had shaken the people’s faith in our ability to build a transparent, fair, and just society. We wanted to channel anger and frustration into positive energy for change. This is why, TOI was the first publication to have come out in support of the Bill drafted by Team Anna. The support,...
read moreIntroduction, Using, Developing Java Persistence API (JPA) 2.0 using EclipseLink, Derby, MySql and Eclipse
The article is written for/using J2SE 6, Java Persistence API (JPA) 2.0, EclipseLink 1.1.2, Derby 10.5.1.1, MySQL 5.1.37 GA, and Eclipse IDE for Java EE Developers [Ganymede]. Table of Content Introduction System Requirements Article Prerequisites JPA Specification New Features in JPA 2.0 Java Persistence API (JPA) Architecture ORM Frameworks JPA Annotations Persistence Units Setup JPA, EclipseLink and Database Creating JPA Entities, Persistence XML and Storing Data to DB Creating and Using Custom EntityManagerFactory Running JUnit TestCase for...
read more




